I’m sad

window.location.href no longer working on Android

I have some buttons in my app that when clicked will call a number, or send an sms, etc.

This has been working for a few years in my app where I have an "on click" action calling the following javascript:

window.location.href = 'sms:18885551234';

This code no longer works on Android since I've updated my app to the latest Appery editor and library. Nothing happens when you click the button. In the web test, the console doesn't report any errors and the browser responds to the click. But if you test it in the Android tester app, nothing happens when you click. We also found the released Android app doesn't work either.

We changed the code to:

window.open('sms:18885551234', '_self', false);

and it works on Android, but it also launches a browser window prior to launching the sms program on the phone.

Is there a way to get the window.location.href working again on Android devices? We did find that the window.location.href does still work on iOS devices.

Any help is greatly appreciated
1 person has
this question
+1
This topic is no longer open for comments or replies.