<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 8, 2012, at 4:38 AM, Christos Vasilakis &lt;<a href="mailto:cvasilak@gmail.com">cvasilak@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>took a minute today and test the Cordova examples under both iOS and Android (using cordova v2.1.0). Both worked fluently.</div><div><br></div></div></blockquote><div>thanks for testing</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Some suggestions on the iOS doc side of things:</div><div><br></div><div>on the README.md we need to update step 2 in the section "Import the Quickstart Code". &nbsp;In particular the statement &nbsp;"Right click on&nbsp;KitchensinkCordova.xcodeproj&nbsp;and select&nbsp;Open With Xcode" doesn't work cause if you open it there is a missing Cordova dependency. </div></div></blockquote><div><br></div><div>i just tried this and it worked ok.</div><div><br></div><div>I think there are 2 topics here:</div><div><br></div><div>1. the quick start</div><div>2. The HTML5 To Cordova guide</div><div><br></div><div>For the quick start,&nbsp;&nbsp;all the stuff below is already done for the user. &nbsp; That stuff is how to convert existing code to Cordova, but&nbsp;I agree that the guide on Converting needs to be updated too. &nbsp;i'll update that and send a PR&nbsp;</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>As suggested in the guide[1] we need to&nbsp;change into the kitchensink-cordova directory, delete the existing ios directory and recreate with</div><div><br></div><div><div class="literalblock" style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; background-color: rgb(255, 255, 255); "><div class="content monospaced"><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 10px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: rgb(245, 245, 245); border: 1px solid rgba(0, 0, 0, 0.148438); position: static; z-index: auto; ">$CORDOVA_HOME/lib/ios/bin/create ios org.jboss.as.quickstarts.kitchensinkcordova KitchensinkCordova</pre></div></div><div class="paragraph" style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; background-color: rgb(255, 255, 255); "></div></div><div>Then we need to&nbsp;</div><div><div class="sect3" style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; background-color: rgb(255, 255, 255); "><div class="literalblock"><div class="content monospaced"><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 10px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: rgb(245, 245, 245); border: 1px solid rgba(0, 0, 0, 0.148438); position: static; z-index: auto; ">cd ios
rm -rf www
ln -s ../../shared/www www</pre></div></div></div><div class="sect3" style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; background-color: rgb(255, 255, 255); "></div></div><div>and then open the&nbsp;KitchensinkCordova.xcodeproj project.&nbsp;</div><div><br></div></div></blockquote><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Further, if we try to run the project, we get an error in the console:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><b>2012-11-08 11:24:47.675 KitchensinkCordova[741:2703] ERROR whitelist rejection: url='<a href="http://html5-aerogear.rhcloud.com/rest/members?_=1352366687671'">http://html5-aerogear.rhcloud.com/rest/members?_=1352366687671'</a></b></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><br></div><div><div><div>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.&nbsp;</div><div><br></div><div>Thinking something like that:</div><div>"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-&gt;Cordova.plist and add an entry in the ExternalHosts key pointing to "<a href="http://html5-aerogear.rhcloud.com/">html5-aerogear.rhcloud.com</a>".</div><div><br></div><div>Thanks,</div><div>Christos</div><div><br></div><div><br></div><div>[1]&nbsp;<a href="http://aerogear.org/docs/guides/HTML5ToHybridWithCordova/">http://aerogear.org/docs/guides/HTML5ToHybridWithCordova/</a></div><div><br></div><div><br></div><div>On Nov 7, 2012, at 8:17 PM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com">lholmqui@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I updated our Cordova quick start example to 2.1.0, &nbsp;seems to work fine on my machine, &nbsp;just wanted to get some different eyes on it for testing.</div><div><br></div><div>It's in a branch in my repo currently</div><div><br></div><a href="https://github.com/lholmquist/as-quickstarts/tree/AEROGEAR-580">https://github.com/lholmquist/as-quickstarts/tree/AEROGEAR-580</a><div><br></div><div>If i don't hear anything by tuesday next week, &nbsp;i'll merge this into master</div><div><br></div><div><br></div><div>-Luke</div><div><br></div><div>2.2.0 just came out, &nbsp;wonder if i should upgrade to that instead of 2.1.0?</div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev<br></blockquote></div><br></body></html>