search

Home  >  Q&A  >  body text

javascript - In App's webview, an ordinary html page calls the cordova.exec method, what should be done?

Because I need to call some native methods, the client told me to use cordova and call the cordova.exec method:

cordova.exec(<successFunction>, <failFunction>, <service>, <action>, [<args>]);

But what file should be imported to call this method to interact with native? The document tells me how to use it, but it does not say how to start. I hope the gods can save me.

phpcn_u1582phpcn_u15822793 days ago442

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-19 10:11:00

    First of all, in the first step, you need to see how to create a cordova project, then learn how to use the cordova plug-in, and finally interact with the native. Step by step, I recommend an article I wrote: /a/11...

    reply
    0
  • Cancelreply