cordova (ex phonegap) tel: links in <a href> not working in ios5 - ios5

I've checked everywhere here in stackoverflow, google, phonegap and other websites but I cannot find a solution, but if I did miss the right link, please post me to it, because I'm lost.
1: I'm using Cordova + JQmobi to write my apps.
2: the only link that doesn't work is the TEL: in a tag links.
3: they work in Safari for ios (any version I've found from ios4 to ios5.1)
4: ONLY in ios5 the link to TEL: won't work in native apps
Here the codes I've tried:
Link to the tel
Link to the tel
Link to the tel
Link to the tel
For the format of the telephone number I've used:
tel:+39000000 (+39 is for italy)
tel:123456 (I've tried any kind of real telephone numbers but I have no #, * or spaces)
tel://+39123456
When I check on the xCode simulator for a SMS: link i get this error:
AppDelegate::shouldStartLoadWithRequest: Received Unhandled URL sms:+39123456
And that's correct because the simulator doesn't have the SMS app, but then when I try the TEL: link:
Failed to load webpage with error: The URL can’t be shown
That for what I know is something that happens if you write a non legal url that you want to open with a browser.
I've read that jqmobi (as much as other framework such as jqtouch) could prevent the default behavior of a link but that if you explicitly invoke it.
What is really changed in the ios5? Because all my links work on the ios4.3
Anyone out there please help me and many other I saw couldn't find a real solution for this new update of Apple.
Thanks for all

My solution is: there is no solution. But a plugin:
https://github.com/mchristie/PhoneGap-ios-PhoneDialer/
If you use cordova be sure to check the 4 lines you have to change (cordova instead of phonegap)

Actually there is a solution to this, or at least there was for me, here it is:
In the HTML:
<input type="button" href="tel:+1-800-555-1234“ class="phone-number" value="1-800-555-1234"/>
In the Javascript:
$(‘.phone-number’).bind(click, function(e) {
e.preventDefault()
var phoneLink = $(e.currentTarget).attr('href');
window.open(phoneLink, '_system', 'location=yes’);
}
Addendum... Someone suggested an edit where i change ‘.phone-number’ to '.phone' and remove the 'location=yes’. I don't know what affect that would have on this code because I am no longer working on this project and the code is in a repo that I own, but I can tell you for certain changing .phone-number to just .phone would definitely not work because that is not what i called the class in the input field. As for the location=yes being removed, again I have no idea what affect that would have since I don't have the code anymore. They did however point out that I used the incorrect left and right quotes. That was probably just a cut-paste mistake on my part but who knows.

Have you tried removing the '+'?
Link to the tel
Link to the tel
Link to the tel
Link to the tel
as from their spec it sounds like they don't fully support all special characters:
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html

Related

Sygic Custom URL IOS

i have been using an url launch that open sygic and drives to coordinates n my website.
It looks like this: com.sygic.aura://coordinate|15.06591|47.73341|drive
After the last Sygic update this url launch does not work anymore, it fires up Sygic but no route is calculated any longer.
Does anybody have som ideas to overcome this?
Is there anyone else that hava this problem and found a solution for it?
This is what i tested with iPad Air 12.5.3, Sygic Version 20.4.5
All of Sygics custom url: https://www.sygic.com/developers/professional-navigation-sdk/ios/custom-url
I contacted the Sygic Support. Here is their answer:
Thank you for contacting Sygic.
We apologize for the inconvenience. You're using the legacy format which is no longer supported in the latest release. Instead of this format, universal links can be used.
For your use case, you can use:
https://go.sygic.com/directions?to=latitude,longitude

MagnificPopup won´t work with Typo3

I would like to use magnific popup for a site which is still in development, but unfortunately nothing happens after the installation and adding the static content in my template.
No matter what i try no popup comes up.
If someone would like to help me i will provide access to the site.
Thanks a lot!
First thing to do:
look at your source code: does the 'link' show any sign of 'magnific popup' code?
Added classes? id?
Second: do you see any extra javascript and/or stylesheet that is added by the extension?
If you answer negative to 1 of these, the extension does not output anything. Sounds logic, but it is the first step. Is it a solution? Nope, it means your live just got a bit more worse, but hang in there !
If it does show any code from the ext: look at your console, are there any js errors occurred ? (if you don't know what console is, or (even worse) you work with IE) please read about chrome console of at least install Firefox with firebug.
My best beth would be a JS error...
Can it be possible that the ext itself does not work?
Does your php error logs tell you that the extension is behaving badly?
Do you see errors in the typoscript analyser (or whatever it's called to analyse the css_styled_content and other TS spaghetti )
If not, then no, it is not the ext.
Again, i'm betting my wive, three horses and a barrel of beer on JS erros.
Good luck mate !
ps: IF i'm wrong, i'm not sending you my wife by postal service. Loads of trouble last time. Nor the horses, same shizzle ..

How to find Itune software is installed in a client browser side?

I have a anchor tag with the url "itms://itunes.apple.com/us/app/movietickets-com-showtimes/id402114309?mt=8".If the client system doen't have the Itune software, then the browser is not opening the page.
Is there any way to know the whether the user installed Itune software or not.
Thanks in advance.
Note:
If you go to
https://itunes.apple.com/us/app/movietickets-com-showtimes/id402114309?mt=8
Here you can find or inspect "view in itune" button.There you can see
some javascript to detect that.But i dont know what there are doing!
Apple already has code to detect if iTunes is installed, you can find their code here: http://ax.itunes.apple.com/detection/itmsCheck.js
Finally i got a solution,
From the following site https://itunes.apple.com/us/app/movietickets.com-showtimes/id402114309?mt=8
You need to take two js files. (It contains some extra javascript and jquery - you can remove those if you know that it is no longer needed)
https://itunes.apple.com/htmlResources/99EF/web-storefront-base.js
https://itunes.apple.com/htmlResources/99EF/web-storefront-preview.js
And you need to add the below code to your page html,
""
Finally, Whenever you want to check the plugin, just call
if (its.detect.itunesDetected())
{
//Your code if plugin installed
}
else
{
//Your code if plugin not installed
}

Issues in using facebook api for ios sdk

I have downloaded the source project from
sourcecode.
I came across many issues over there, then I changed the source header path then changed the compiler version in the project settings, then all those were solved, now there is no errors, it runs, when I click FBLoginButton ,Facebook Login Dialog appeared but it looks empty,
I dont know why, The app key and app secret key were placed correctly.
I tried with device,if there would probm with simulator, still looks same.
what Im doing wrong, I had searched a lot, not found any solution, any ideas pls tell me
I have the same problem.
I have opened a bug here : https://developers.facebook.com/bugs/279606225487338
You can also vote for it, so that FB may take a look at it. Let's hope they solve it.
We had two apps in the app store which used this old api of facebook for login and they also g=have stopped working... So most probably Facebook has stopped support for this but I couldn't fond anything official. I guess we will have to incorporate the new Api.. :/ If I find something I will post here...

Invalid or missing URL scheme hackbook

I am trying to use facebook ios sdk but when I run the Hackbook example it gives me the error message "Invalid or missing URL scheme. You cannot run the app unti you set up a valid URL scheme in your .plist" Where do I make the changes for this?
Since one of the answers mentioned it, I will say that I have already modified the plist to have fb[my_app_id] in the URLSchemes.
This tutorial walks you through the process step by step, search for "Modify the app property list file".
I figured it out. There was another instance in the code where the ID needed to be replaced. What's odd is that it's not specifically called out as far as I can tell. I did a search for it.
you have to add like this
100% works and solved crash