Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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,

Jose

like image 631
kankamuso Avatar asked Jul 23 '26 00:07

kankamuso


1 Answers

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

like image 86
Remover Avatar answered Jul 25 '26 15:07

Remover



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!