Hello,
took a minute today and test the Cordova examples under both iOS and Android (using
cordova v2.1.0). Both worked fluently.
Some suggestions on the iOS doc side of things:
on the README.md we need to update step 2 in the section "Import the Quickstart
Code". In particular the statement "Right click on
KitchensinkCordova.xcodeproj and select Open With Xcode" doesn't work cause if
you open it there is a missing Cordova dependency. As suggested in the guide[1] we need to
change into the kitchensink-cordova directory, delete the existing ios directory and
recreate with
$CORDOVA_HOME/lib/ios/bin/create ios org.jboss.as.quickstarts.kitchensinkcordova
KitchensinkCordova
Then we need to
cd ios
rm -rf www
ln -s ../../shared/www www
and then open the KitchensinkCordova.xcodeproj project.
Further, if we try to run the project, we get an error in the console:
2012-11-08 11:24:47.675 KitchensinkCordova[741:2703] ERROR whitelist rejection:
url='http://html5-aerogear.rhcloud.com/rest/members?_=1352366687671'
Unless we don't explicitly allow it, cordova blocks external url access. We need to
update the guide to include a section explaining ours users how to do that. Otherwise they
left wonder.
Thinking something like that:
"You must add an exception in Cordova to allow it to access external urls. Failing to
do so will result in the application not able to connect and access the remote server
application. Please modify Resources->Cordova.plist and add an entry in the
ExternalHosts key pointing to "html5-aerogear.rhcloud.com".
Thanks,
Christos
[1]
http://aerogear.org/docs/guides/HTML5ToHybridWithCordova/
On Nov 7, 2012, at 8:17 PM, Lucas Holmquist <lholmqui(a)redhat.com> wrote:
I updated our Cordova quick start example to 2.1.0, seems to work
fine on my machine, just wanted to get some different eyes on it for testing.
It's in a branch in my repo currently
https://github.com/lholmquist/as-quickstarts/tree/AEROGEAR-580
If i don't hear anything by tuesday next week, i'll merge this into master
-Luke
2.2.0 just came out, wonder if i should upgrade to that instead of 2.1.0?
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev