SMS Link Not Working for Hangouts on Android - javascript

The following SMS link does not seem to work on a Nexus in Hangouts, but works fine in the default Messaging app on a Samsung phone.
Link
I even tried adding a number before the URL, but no luck:
Link
Any idea how I can fix this?

It should be ? instead of & since it's the first parameter. Tested it over my nexus and it worked correctly after this fix (I'm using Google Messenger App).
Link
UPDATE:
Another problem that you may have is that Hangouts doesn't support pre-populated sms message links.
Also, looks like you should use & for iOS devices.
How to pre-populate the sms body text via an html link

Related

WebView Navigation Not Working

I’m trying to add navigation links to a WebView in my Android app but WebView.canGoBack() always returns false. I’ve read a few posts on SO that said it’s a bug and have tried different suggestions including shouldOverrideUrlLoading() to no avail. So I decided that it just doesn’t work and added navigation links to my web page instead:
<i class="fa fa-arrow-left"></i>
<i class="fa fa-arrow-right"></i>
I also have JavaScript enabled:
webView.getSettings().setJavaScriptEnabled(true);
The links work fine when the pages are opened in a browser such as Firefox on the device however, they fail to work when the page is viewed in the WebVeiw.
Any help would be appreciated.
Update - I tried targeting and compiling with API 28. Same results.
Looks like its a bug in WebView. I'm running Chrome v67.
https://groups.google.com/a/chromium.org/forum/#!topic/android-webview-dev/YYxyjl2WZTA
WebView's history and associated canGoBack() and goBack() methods do not work properly when Google Chrome version 63.0.3239.111 is installed on the device. Uninstalling or disabling Google Chrome and its webview implementation solves the issue.
This issue ist tested and confirmed on Android versions 6.0.1, 7.1.2 and 8.1.0.
Issue description:
Saving the webview history does not work properly, when Chrome is installed. When you use webView.goBack() to navigate back to the page visited before, sometimes this page is skipped and the webView goes back to the first visited webpage. Other times the history is simply empty resulting in webView.canGoBack() returning false, although you had visited a page just before.
Workaround solution:
Uninstall chrome from device or disable it by using the System Developer Option 'WebView implementation'.
Google, please provide a Chrome update which solves this issue permanently. Our users are very confused by this inconsistent behavior. If this is not the right forum for developer topics, please advise in which forum or Google Group this issue should be posted and tracked.
Thank you very much in advance.

Is it possible to programmatically call a telephone number in JS?

So basically right now I can create a button with an A tag that has an href="tel:XXXXXXXXXXX" and if a user clicks / taps on that it will bring them into their phone application. However I am trying to do this programmatically on gesture recognition (swipe). The gesture is working, so far I have tried window.location = "tel:XXXXXXXXXX";
window.open('tel:XXXXXXXXXX', '_top');
neither of which have worked yet. Any idea? Ionic / Angular 1
Note** It appears to only happen on iOS, Android seems to be working fine.
If you want to do it through html, then you just have to place a tag like this:
Call me!
similarly if you wanna do it through javascript, you can do:
document.location.href = "tel:XXXXXXXXXX";
For this you will require to add this in the config.xml first
<access origin="tel:*" launch-external="yes" />
then call it like:
document.location.href = "tel:XXXXXXXXXX";
Whitelist Guide
You probably just can't, when your APP is running from mobile browser. You'll need to wrap your app as cordova app or similar. Then you can for example use PhoneGap-PhoneDialer
You can try with below one,
window.location.href = "tel:+91123456789";
But, for IOS it may not work because of some permission issues. In that case you can try like below,
window.open('tel:+91123456789', '_system');
Try it on a real device.
None of these methods worked on the IOS emulator. It only worked on a physical device. That tripped me up for a while.

Google place api dropdown touch not working in mobile (Meteor framework)

I'm facing really weird issue on a meteor App. I used google maps api for location dropdown autocomplete. It works perfectly on pc & android mobile.
But can't select the dropdown listed location on windows phone & iphone.
I've searched about this and found many solutions on stack-overflow but none works for me.
You can check it here : http://dev.urbanchefs.ae/
I have solved my problem. I just removed "fastclick" from the meteor package list. Now it's working.

When checking the website on an IPAD AngularJS

I have developed a web application using AngularJS & PHP, it works fine on chrome & firefox but have issues loading on IE due to number of JS files, i will have to reduce them to make it work on IE.
When checking the website on an IPAD, all my "angular tags" are displayed like it is
"{{item}}" , "{{d.bar}}" , "{{d.lol}}", {{title}}, {{description}}, {{ratings}} etc.
can anyone have any thoughts why it would display like that
It could be, that there is some JavaScript issue on iPad, which prevents angular from doing its work. If there is some Developer Console on the iPad which displays javascript errors, you can try to fix them.

sms IPhone html link not working

Note this is for mobile site is using jqtjs http://jqtjs.com/
I have tested the following on two different IPhone 4 models 1 running 6.1.3(updated) and 5.1.1(old jailbroken)
I tested using both Safari(up to date) and Chrome (up to date)
I used various methods:
sms:
smsto:
sms://
The following work here on the fiddle page when put on my mobile site im trying to get working I get nothing.
works: http://jsfiddle.net/gSPEe/
not working :http://redwirelogic.com/help/ (sorry for the page link but idk how else to describe this)
test1<br>
test2<br>
test3<br>
test4<br>
test5<br>
test6<br>
test7<br>
test8<br>
test9<br>
Nothing is working! Id love some help figuring this out.
To test if something was wrong i confirmed that the tel and mailto work for calling and email.
I found the link below and well yea so it is documented to work right?
Ios development library-Text Link
Switch to Jquery Mobile (http://jquerymobile.com/). JQTouch is basically abandonware and is no longer maintained. Can't find any way to stop it from disabling sms: links.

Categories

Resources