kankamuso kankamuso - 3 months ago 24
iOS Question

Equivalence in iOS to Javascript interface in Android?

I am developing the iOS equivalent of an already running Android App. Both apps are basically a browser receiving data from a server. This includes javascript thar checks the server for changes and issues local notifications when needed. In Android this is easily done using Interfaces. Nevertheless, I cannot find an equivalent and straightforward solution for iOS (currently using Swift). Have you got any proposals on this regard? (methods or workarounds to properly do this).

Thanks in advance,



Have you looked into WebKit? WKWebView, WKScriptMessage and APIs like that may be what you're looking for.