PDA

View Full Version : openURL always return error



jaami
4 Aug 2013, 12:04 AM
TypeError: 'undefined' is not an object (evaluating 'Ext.device.Device.openURL')
my launch function contains just 1 line

Ext.device.Device.openURL('theLinkHere');


The Require includes following
requires: [
'Ext.MessageBox',
'Ext.dataview.List',
'Ext.data.proxy.JsonP',
'Ext.device.device.Sencha'
],

working code example for device API if somebody like to paste here.

fmoseley
5 Aug 2013, 8:48 PM
Have you packaged your app? Are you running it on a device?
Ext.device class family is for device API access only

jaami
6 Aug 2013, 2:30 AM
Used the build.phonegap.com and its not first time i used that cloud service of phonegap. I am sure that works fine. Thanks to phonegap for that free service.

Yes, i am running my app on device but really i dont know how to debug app on ipad. The error message is displayed in console in safari. I have dell with windows.

jaami
2 Sep 2013, 3:22 AM
The code i pasted above always shows a blank page.(white blank) on ipad when installed.

most important point is the sample code. A working code example will be A great favor if someone like to share.
answering question means you want to help or you want just another plus point in total posts.

if i want to help someone i would sure give a sample code or at least a link to find more details otherwise really doubt about usefulness of Q&A.

fmoseley
4 Sep 2013, 3:04 PM
I apologize this must have gotten lost in my inbox. I have seen this error before when I used phonegap 3.0 with Touch. There is a bug filed for this issue.
http://www.sencha.com/forum/showthread.php?271137

I have been having problems with phonegap build apps made with phonegap 2.9. Here is the only way I got it to work:
http://www.sencha.com/forum/showthread.php?271136-Sencha-Touch2-app-Phonegap-Build-Cloud-Service-Facebook-Login-dialogue-not-working&p=994309&viewfull=1#post994309