rohfosho / CordovaCallNumberPlugin

Call a number directly from your cordova application.
MIT License
185 stars 151 forks source link

Android permission to call #13

Closed hackerunet closed 8 years ago

hackerunet commented 8 years ago

Hello, I'm building a cordova application, I need to enable android permissions to allow make a phone call, please tell me what would be the xml structure to enable this, for example here is a list of xml params I need to send sms and enable geolocation:

<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
    <feature name="SmsPlugin">
        <param name="android-package" value="org.apache.cordova.plugin.SmsPlugin"/>
    </feature>
    <feature name="geolocation">
       <param name="android-package" value="org.apache.cordova.geolocation"/>
    </feature>
ux-leap commented 8 years ago

Based on this article: http://rickluna.com/wp/2012/02/making-a-phone-call-from-within-phonegap-in-android-and-ios/

<access origin="tel:*" launch-external="yes" /> <uses-permission android:autoLink="phone" />

Should do the job.