Susco Dev
Posts: 0
Joined: Fri Nov 21, 2014 4:28 pm

Android Tel: links aren't working

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Android Tel: links aren't working

Hello -

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

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

Android Tel: links aren't working

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

Susco Dev
Posts: 0
Joined: Fri Nov 21, 2014 4:28 pm

Android Tel: links aren't working

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

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

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

Android Tel: links aren't working

Is the iPhone ios10

Susco Dev
Posts: 0
Joined: Fri Nov 21, 2014 4:28 pm

Android Tel: links aren't working

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

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

Android Tel: links aren't working

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Android Tel: links aren't working

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

Susco Dev
Posts: 0
Joined: Fri Nov 21, 2014 4:28 pm

Android Tel: links aren't working

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

Susco Dev
Posts: 0
Joined: Fri Nov 21, 2014 4:28 pm

Android Tel: links aren't working

Thank you!

Return to “Issues”