JSBridge callback in kotlin #80
Replies: 4 comments 3 replies
-
@farhazulMullick Hi, do you mean you want to make a call to Kotlin when a Button in the JS is clicked? If so, you can refer to this for example. |
Beta Was this translation helpful? Give feedback.
-
For example: I want to get callback when this "Call Us" button is clicked.
|
Beta Was this translation helpful? Give feedback.
-
Hey @KevinnZou thanks for informing. After digging the library code later i came to know that to use this lib's jsBrigde feature one has to call the window.kmpJsBridge.callNative("openDialer","") on the Frontend side. But challege is our front-end web is deployed on production used by native andorid/ios (bridge is different)and along with this we are developing a new kmm app. So. i think i have to fork the project and do my own implementations. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@KevinnZou |
Beta Was this translation helpful? Give feedback.
-
How can a JsNative call kotlin methods with the JSBridge provided?
ex: If i wanted to call a method let's say
hello()
on button click in website, how i am going to get its callback in kotlin?Beta Was this translation helpful? Give feedback.
All reactions