- Forums
- >
- API Platform
- >
- Re: SMS sample in Sencha as native iPhone app
- Thread RSS
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Favorite
- Subscribe
SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.26.2012 04:13 PM
Am trying to put the SMS sample app (Sencha)
with Phonegap(Cordova) as native app on iPhone.
Configured config.js with '/att/javaapi'
and AttProvider.js this.apiBasePath as http://myserver:8080
But when I run app in iPhone device or Simulator
and click "Send Message" button or any button
An ERROR box is immediately returned on App UI
{"xhrError":{ "status":0, "statusText":"" }}
The request is not getting sent to server from native app.
How can I fix this?
There is no documentation for configuring Sample app for remote native client.
thanks
Gokul
Re: SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.27.2012 10:38 AM
Are you changing the apiBasePath in config.js and in AttProvider? You will have to change apiBasePath in config.js alone.
Thanks,
Jayant K Kenjale
Re: SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.27.2012 11:19 AM
Hi Jayant,
what should i set it to
set it to http://myserver:8080/att/javaapi
and now it returns xhrError status 401 statusText Unauthorized
thanks
Gokul
Re: SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.27.2012 11:39 AM
Log says ERROR whitelist rejection url='http://myserver:8080/att/direct-router'
Re: SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.27.2012 11:45 AM
Thanks for sharing the error message. Are you running this app in simulater/emulator? or on device? is your myserver visible? Which server side implementation are you using?
Thanks,
Jayant K Kenjale
Re: SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.27.2012 11:59 AM
Hi Jayant,'
Am running on device and simulator.
Same error on both
Yes. myserver is visible and running java standalone version
of attapi server on port 8080. Can access the server URL and send SMS.
thanks
Gokul
Re: SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.27.2012 12:18 PM
Looks like the error you are facing is related to PhoneGap. Looks like there is external host with PhoneGap.plist.
Please read more here -
http://stackoverflow.com/questions/8045478/phonega
Thanks,
Jayant K Kenjale
Re: SMS sample in Sencha as native iPhone app
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.27.2012 02:34 PM
Hi Jayant,
thanks for solution.
Adding ExternalHosts key with a value of * to phonegap.plist worked
thanks
Gokul
-
-
- of 1
-
-
