apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

What technology does Cordova use to enable JavaScript to call Android or iOS native methods?Is that JSBridge #1679

Closed EmptyPages closed 6 months ago

EmptyPages commented 6 months ago

What technology does Cordova use to enable JavaScript to call Android or iOS native methods?Is that JSBridge

jcesarmobile commented 6 months ago

You can ask questions on the discussions section of cordova repository https://github.com/apache/cordova/discussions

You can also check the cordova-android code in this repository since it’s public and open source.

both Apple and Google provide APIs for doing that, in example android uses JavascriptInterface

https://developer.android.com/reference/android/webkit/JavascriptInterface