Page 1 of 1

Android Tel: links aren't working

Posted: Fri Jan 20, 2017 6:30 pm
by Susco Dev

We're having a problem getting a link to open the application dialer on android.

We've used the following two approaches:
1) On click of a button, run the following Javascript:
window.location.href="tel:+xxxxxxxxx;

2) On click of a button, navigate to link:
tel:+xxxxxxxxx

Permissions
We've set the CALL_PHONE permission to true.

We see the following behavior:
1) The button works as desired on iPhones.
2) When accessed in a browser using the Appery test button or via the Appery.io Tester application for Android, the link works as desired.
*****3) When we generate and install the APK, the button doesn't work. This is true whether we install the apk directly to the device or import it into HockeyApp and install it from there.

Can anybody provide insight into what might be behind this?


Android Tel: links aren't working

Posted: Sat Jan 21, 2017 6:04 am
by Illya Stepanov

Hello -

Please check out this discussion here, about 'tel' usage on Android devices: http://stackoverflow.com/questions/26...


Android Tel: links aren't working

Posted: Sun Jan 22, 2017 1:33 am
by Vinny B

When u say it works on iPhones. Are u installing it using the IPA or Xcode? Or you using the appery tester app?


Android Tel: links aren't working

Posted: Mon Jan 23, 2017 2:54 pm
by Susco Dev

@Illya Stepanov: Yes, how do I do that within appery?

@Vinny B: On iPhone, We upload to testflight and install through that.


Android Tel: links aren't working

Posted: Mon Jan 23, 2017 3:44 pm
by Vinny B

Is the iPhone ios10


Android Tel: links aren't working

Posted: Mon Jan 23, 2017 3:53 pm
by Susco Dev

It's 9.5.3, but, again, iOS works fine. It's android where we have a problem.


Android Tel: links aren't working

Posted: Mon Jan 23, 2017 4:19 pm
by Vinny B

If someone from APPERY has a solutions that would be great too.

Hello

I was asking about the IOS issue because there is no code that will work on IOS10 devices. If you install your current app on a IOS 10 device it will not work.

Currently Appery does not support IOS 10 but there suppose to in a week or so.

Code: Select all

Bellow is the code I use to in my app that works great on ANDROID and IOS devices below IOS 10 

window.open("tel:" + localStorage.getItem('companyphone'), '_system');

hope it helps.


Android Tel: links aren't working

Posted: Tue Jan 24, 2017 1:44 pm
by Illya Stepanov

Just add this Cordova plugin: https://github.com/apache/cordova-plu...
to your project as a Custom plugin.


Android Tel: links aren't working

Posted: Thu Jan 26, 2017 8:22 pm
by Susco Dev

Hi Ilya, can you see my followup comment. How do I update config.xml from within appery?


Android Tel: links aren't working

Posted: Thu Jan 26, 2017 8:31 pm
by Susco Dev

Thank you!