26 Jul 2012 5:38 AM #1
Unanswered: Using device phone/browser
I am trying to make buttons to
- call a phone number
- send an email
- open a web page in the device's browser
So far I have tried this (each in a respective button handler)
... window.location.href = 'tel:9999999999'; ... window.location.href = 'mailto:firstname.lastname@example.org'; ... window.location.href = 'http://google.com' ...
... window.location = 'tel:9999999999'; ... window.location = 'mailto:email@example.com'; ... window.location = 'http://google.com' ...
... window.open('tel:9999999999'); ... window.open('mailto:firstname.lastname@example.org'); ... window.open('http://google.com'); ...
28 Jul 2012 6:04 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
This is up to the native packager to allow or support. We are doing some work currently with URI schemas for our native packager.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
8 Nov 2012 9:09 AM #3
with Cordova (PhoneGap), document.location.href = 'tel:+phoneNumber' works on Android. It might not work on iOS5 but from a little searching, i found that there is a plugin available for it.
8 Nov 2012 9:56 AM #4
Hi, to open external link in Phonegap use the chidlBrowser plugin (for both iOS and Android):
The Phonegap Plugin for iOS to dial a number (works for me):