-
26 Jul 2012 5:38 AM #1
Unanswered: Using device phone/browser
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)
Then I tried it without the .hrefCode:... window.location.href = 'tel:9999999999'; ... window.location.href = 'mailto:test@me.com'; ... window.location.href = 'http://google.com' ...
Finally I tried using window.openCode:... window.location = 'tel:9999999999'; ... window.location = 'mailto:test@me.com'; ... window.location = 'http://google.com' ...
But all of these produced the same 'page cannot be displayed' result. How are you supposed to send emails, make phone calls and open webpages in Sencha?Code:... window.open('tel:9999999999'); ... window.open('mailto:test@me.com'); ... window.open('http://google.com'); ...
-
28 Jul 2012 6:04 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
- Answers
- 3113
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 Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost 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):
https://github.com/phonegap/phonegap-plugins
The Phonegap Plugin for iOS to dial a number (works for me):
https://github.com/j-mcnally/PhoneGap-ios-PhoneDialer


Reply With Quote