PhoneGap CLI project dialer/sms/email won't work. No error messages

20 views
Skip to first unread message

Derek Hobbs

unread,
Apr 27, 2016, 9:19:21 PM4/27/16
to phonegap
We are trying to have the app dial a phone number, send a text message, and open default email for selected contacts. It simply will not open any of them and no error messages are being returned. Our code is as follows:


CSP Meta - 


<meta http-equiv="Content-Security-Policy"
content="default-src *;
style-src 'self' 'unsafe-inline' 'unsafe-eval';
script-src 'self' 'unsafe-inline' 'unsafe-eval';">


js code - 


document.location.href = 'tel:1-913-484-9948';
window.plugins.CallNumber.callNumber(onSuccess, onError, number, 1);


config.xml 

<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="tel:*" launch-external="yes"/>
<access origin="sms:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
<access origin="geo:*" launch-external="yes" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />

<platform name="android">
<allow-intent href="market:*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<preference name="Orientation" value="portrait" />
<engine name="android" spec="~4.1.1" />
<preference name="android-minSdkVersion" value="14" />
<engine name="ios" spec="~3.9.2" />
</widget>

Jesse Monroy

unread,
Apr 28, 2016, 4:48:33 PM4/28/16
to phonegap
Re-Post: http://community.phonegap.com/nitobi/topics/phonegap-phone-number-to-dialer-sms

This developer spent toooo many days in the wrong forum on this.
Can someone lend a hand on this?

TIA
Jesse

Kerri Shotts

unread,
Apr 28, 2016, 7:56:04 PM4/28/16
to phonegap
Also posted on https://forums.adobe.com/thread/2146758

I've responded there.

On Thursday, April 28, 2016 at 3:48:33 PM UTC-5, Jesse Monroy wrote:
...

Jesse Monroy

unread,
Apr 29, 2016, 3:31:47 PM4/29/16
to phonegap
Thanks.
Reply all
Reply to author
Forward
0 new messages