diff --git a/src/hooks/urlhook.cpp b/src/hooks/urlhook.cpp
index 5fe21401cc3142a031e15505ac8bc2d0157ebb40..1cd18fb5035464cec0be827d1060596e3520b2e0 100644
--- a/src/hooks/urlhook.cpp
+++ b/src/hooks/urlhook.cpp
@@ -28,10 +28,11 @@ int UrlHook::runAction(const std::string &command, const std::string &args)
     //FIXME : use fork and execve, so no need to escape shell arguments
     const std::string cmd = command + (args.empty() ? "" : " ") +
                             "\"" + args + "\" &";
-#ifndef RING_UWP
-    return system(cmd.c_str());
-#else
-    return 0;
+
+#if defined(RING_UWP) || defined(TARGET_OS_IOS)
+    return 0;
+#else
+    return system(cmd.c_str());
 #endif
 }