Software Archive
Read-only legacy content
17061 Discussions

SIP Plugin Usage

akin_o_
Beginner
480 Views

Hello Everyone,

Can someone please help me how to use this plugin? "https://github.com/javray/SIP"

I dont know how to call prototype functions from main page. 

Best Regards.

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
480 Views

According to the plugin.xml file, the APIs will be within the namespace indicated on this line > https://github.com/javray/SIP/blob/master/plugin.xml#L6 < and the API calls are defined in here > https://github.com/javray/SIP/blob/master/www/SIP.js < so that should translate into something like:

cordova.plugins.SIP.isSupported()

etc. ...for example.

0 Kudos
akin_o_
Beginner
480 Views

Thanks for your answer Paul,

But I couldnt understand compleletely. 

i called cordova.plugins.SIP. isSupported() in alert, but I couldnt get any reaction.

0 Kudos
PaulF_IntelCorp
Employee
480 Views

You can only debug that plugin in a built app, it will not work in the Simulate tab or in App Preview (via the Test tab). It is a third-party plugin that is not part of the core Cordova plugins. Only the core Cordova plugins are supported in the Simulate and Test tabs. All other plugins can only be used in a built app. See this page for help debugging a built app > https://software.intel.com/en-us/xdk/docs/using-remote-chrome-devtools-to-debug-android-cordova-apps <

0 Kudos
Reply