<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Packaging Apps - Enyo</title>
      <link>http://forums.enyojs.com/categories/packaging-apps/feed.rss</link>
      <pubDate>Thu, 23 May 2013 17:28:44 +0000</pubDate>
         <description>Packaging Apps - Enyo</description>
   <language>en-CA</language>
   <atom:link href="http://forums.enyojs.com/categories/packaging-apps/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>Ondeviceready being fired twice, Cordova (Phonegap) 2.6/2.7, Enyo 2.2</title>
      <link>http://forums.enyojs.com/discussion/1446/ondeviceready-being-fired-twice-cordova-phonegap-2-62-7-enyo-2-2</link>
      <pubDate>Tue, 21 May 2013 19:51:40 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>pmarsh</dc:creator>
      <guid isPermaLink="false">1446@/discussions</guid>
      <description><![CDATA[This is bubbled up off IRC where sugardave said he didn't see this issue with the sampler and Cordova (phonegap) 2.6. (I had been using Phonegap 2.7) I bundled up the sampler and 2.6 and still saw the event fire twice. I wanted to post and see if perhaps my implementation is out of date. <br /><br /><strong>Edit: Dave had to go deal with actual work, don't want to seem like I ignored him</strong><br /><br />We are not using the phonegap package from the extras as it seems that is now baked into enyo itself.<br /><br /><strong>index.html:</strong>
<pre><br /><br />enyo.dispatcher.listen(document, "deviceready");<br />new App().renderInto(document.body);<br /><br /></pre>
<strong>App.js</strong>
<pre><br />enyo.kind({<br />  name: "App",<br />  kind: "FittableRows",<br />  components [<br />    {kind: "Signals", ondeviceready: "deviceReady" }<br />  ],<br />  deviceReady: function() {<br />    //Appears twice in the logs<br />    //Using other calls like navigator.notification results in two as well<br />    enyo.log("device ready");<br />  }<br />});<br /></pre>
]]></description>
   </item>
   <item>
      <title>onecrayon.Database &amp; Select in webOS with enyo 2.2</title>
      <link>http://forums.enyojs.com/discussion/1405/onecrayon-database-select-in-webos-with-enyo-2-2</link>
      <pubDate>Fri, 10 May 2013 01:36:05 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>kayphoonstar</dc:creator>
      <guid isPermaLink="false">1405@/discussions</guid>
      <description><![CDATA[So, I've forged ahead with enyo 2.2 and have an app about ready to deploy in android.  It's a testament to the ease of use of enyo that I've gotten anywhere near this far and I'm very excited.  <br /><br />I've already deployed the app in enyo 1 on webOS and it works pretty well.  When I was exploring Enyo 2 last year, I had made some headway with enyo 2 and had the onecrayon.Database kind working fine but I ran into problems with the Select function in the webOS emulator and decided to drop back to get the app released on webOS.<br /><br />But now, using enyo 2.2 and phonegap 2.4, I'm humming along on an android version that is working really well. In fact, it took less than a week to update my enyo 1.0 app to enyo 2.2 and add some nifty features like tabpanels.<br /><br />Anyway, I can't figure out how to get the database to load in webOS.  If I install my enyo 1 app on the emulator first (or even install an enyo 2.0 build) and then install a 2.2 version built with the same appname and database name, the 2.2 version will see and use the database.  <br /><br />As I said, I'm having no problem using the oncrayon.Database kind in the Android build.<br /><br />I could use enyo 2.0 for the webOS version but I still have a "picker" problem: I don't seem to have any luck at all getting any <code>kind: &quot;Select&quot; </code> to take any input using any enyo 2.0 builds.  It works fine in Chrome and in android. With 2.2, I can just use the onyx.Picker or onyx.DatePicker, but then I'm back to the problem with the db.<br /><br />It's just any simple Select function such as:
<pre><code>{kind: &quot;Select&quot;, style: &quot;height: 35px;&quot;, value: &quot;&quot;, <br />name: &quot;newSuffix&quot;, components: [<br />{content: &quot;&quot;, value: &quot;&quot;}, <br />{content: &quot;Jr.&quot;, value: &quot;Jr.&quot;}, {content: &quot;Sr.&quot;, value: &quot;Sr.&quot;}, {content: &quot;II&quot;, value: &quot;II&quot;}, <br />{content: &quot;III&quot;, value: &quot;III&quot;}, {content: &quot;IV&quot;, value: &quot;IV&quot;}, <br />  ]},<br /></code> </pre>
or, alternatively,
<pre><code>{kind: &quot;Select&quot;, style: &quot;height: 35px;&quot;, value: &quot;0&quot;, <br /> name: &quot;newSuffix&quot;, components: [<br />{content: &quot;none&quot;, value: &quot;0&quot;},<br /> {content: &quot;Jr.&quot;, value: 1}, {content: &quot;2&quot;, value: 2}, {content: &quot;II&quot;, value: 3}, <br />{content: &quot;III&quot;, value: 4}, {content: &quot;IV&quot;, value: 5}, <br />  ]},<br /></code> </pre>
I've tried using phonegap versions 2.3 through 2.6 for webOS, and tried just building w/o phonegap but no luck - I don't know what I'm doing wrong . . .<br /><br />Any help, pointer or directions to important resources for - either/or -  would be very helpful!]]></description>
   </item>
   <item>
      <title>Issues with Deployment</title>
      <link>http://forums.enyojs.com/discussion/1328/issues-with-deployment</link>
      <pubDate>Fri, 05 Apr 2013 18:02:21 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>nicks451</dc:creator>
      <guid isPermaLink="false">1328@/discussions</guid>
      <description><![CDATA[I'm trying to deploy an application that I'm building and I keep getting an error
<pre><code><br />TypeError: Object function Walker(root) {<br />  if (!(this instanceof Walker)) return new Walker(root)<br />  EventEmitter.call(this)<br />  this._pending = 0<br />  this._filterDir = function() { return true }<br />  this.go(root)<br />} has no method 'init'<br />    at Object.&lt;anonymous&gt; (c:\projects\ph-forecasting-web\src\main\webapp\enyo\tools\minifier\minify.js:229:8)<br />    at Module._compile (module.js:456:26)<br />    at Object.Module._extensions..js (module.js:474:10)<br />    at Module.load (module.js:356:32)<br />    at Function.Module._load (module.js:312:12)<br />    at Function.Module.runMain (module.js:497:10)<br />    at startup (node.js:119:16)<br />    at node.js:901:3<br /><br />    at run (c:\projects\ph-forecasting-web\src\main\webapp\enyo\tools\deploy.js:154:9)<br />    at Object.&lt;anonymous&gt; (c:\projects\ph-forecasting-web\src\main\webapp\enyo\tools\deploy.js:168:1)<br />    at Module._compile (module.js:456:26)<br />    at Object.Module._extensions..js (module.js:474:10)<br />    at Module.load (module.js:356:32)<br />    at Function.Module._load (module.js:312:12)<br />    at Function.Module.runMain (module.js:497:10)<br />    at startup (node.js:119:16)<br />    at node.js:901:3<br /></code></pre>
I'm using the last version of node (0.10.3) and <a rel="nofollow" href="https://npmjs.org/package/walker">walker</a> though maybe it's not the correct package. <br /><br />If anyone has any ideas I would really appreciate it.]]></description>
   </item>
   <item>
      <title>Local Paths in deployed+minified app</title>
      <link>http://forums.enyojs.com/discussion/1320/local-paths-in-deployed-minified-app</link>
      <pubDate>Tue, 02 Apr 2013 19:52:33 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>crolex</dc:creator>
      <guid isPermaLink="false">1320@/discussions</guid>
      <description><![CDATA[After executing the bootplate .../tools/deploy.sh, the script .../enyo/tools/minifier/minify.js  adds local machine path information into the resulting files in two places: In the concatenated CSS as a comment and as series of enyo.addPath() calls.  My app is a served web app and I'm not interested in having any info about my local machine in the code. <br /><br />I deleted both of these from minify.js and all seems to execute fine. Since the directory structure of the target execution machine (as opposed to that of the build machine) will be different, do these enyo.addPath() calls in a deployed app do anything meaningful?]]></description>
   </item>
   <item>
      <title>Is https://developer.palm.com/ out of duty?</title>
      <link>http://forums.enyojs.com/discussion/1295/is-httpsdeveloper-palm-com-out-of-duty</link>
      <pubDate>Mon, 25 Mar 2013 10:44:44 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>chk5e</dc:creator>
      <guid isPermaLink="false">1295@/discussions</guid>
      <description><![CDATA[It seems that now that LG owns webOS, the webOS Developer Center is out of duty. At least there seems to be no activity in the app submission area. I'd like to submit an update but nothing goes forward there since weeks. Please, could one of the new LG employees jump in and tell what's on there? pdc@palm.com is as unresponsive as the webOSdev Twitter feed.<br /><br />TIA and best regards<br />Christian]]></description>
   </item>
   <item>
      <title>Windows Phone 7 - Disabling the default pinch/zoom &amp; scroll-snapback behavior</title>
      <link>http://forums.enyojs.com/discussion/353/windows-phone-7-disabling-the-default-pinchzoom-scroll-snapback-behavior</link>
      <pubDate>Fri, 04 May 2012 18:48:27 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>germboy</dc:creator>
      <guid isPermaLink="false">353@/discussions</guid>
      <description><![CDATA[I've been working through a few pain points when packaging Enyo apps for Windows Phone 7 using PhoneGap, and wanted to share this solution for one of the bigger issues on the platform.<br /><br />When you package an Enyo (or any HTML app) on WP7, the native WebBrowser control is used as the wrapper for your content. Like other platforms, you have the option of setting your viewport to control whether or not the user can pinch/zoom.<br /><br /><code>&lt;meta name=&quot;viewport&quot; content=&quot;user-scalable=no&quot;&gt;</code><br /><br /><br />Unlike other platforms however, the WP7 implementation still allows you to pinch/zoom - it just resets the content/viewport when you remove your finger from the screen. In addition, you are also able to scroll up/down the page, even though your app content doesn't extend past the viewport (like when using fit:true and/or enyo-fit). Like the pinch/zoom behavior, the scroller snaps back to its original position once you remove your finger from the screen. These quirks prevent you from being able to include certain events in your app (drag, mouseover/out, etc) and give you an undesired user experience - one that's immediately distinguishable from native apps.<br /><br />I found an article where someone found a solution for this: <a href="http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/" target="_blank" rel="nofollow">http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/</a> . This post includes a handful of other interesting tips, so it's worth looking at. That being said, they include a lot of other information/code that's not directly related to the issue I'm trying to fix. Even while using the code provided, I still had to make some changes to make it work, so I wanted to post a quick walk-through that you can easily reference here.<br /><br /><b>Note:</b> These instructions are assuming that your application's namespace is "App". Change this to match your own namespace.<br /><br /><br />-----------------<br /><br /><i>How-to:</i><br /><br />-----------------<br /><br /><br /><b>1) Add a folder named 'Util' to your PhoneGap's main project folder</b><br /><br />Your folder structure should now look something like this:
<pre><code>- App<br />    - Bin<br />    - GapLib<br />    - obj<br />    - Plugins<br />    - Properties<br />    - Service References<br />    - Util<br />    - www (your app contents)</code></pre>
<br /><br /><b>2) Add the following 2 files to the new 'Util' folder, and paste in their contents:</b><br /><br />LinqToVisualTree.cs - <a rel="nofollow" href="https://gist.github.com/2596707" target="_blank">View code on gist</a><br />WebBrowserHelper.cs - <a rel="nofollow" href="https://gist.github.com/2596720" target="_blank">View code on gist</a><br /><br />    <i>*Note*: After adding these files, be sure to select the "Include In Project" option for this folder/files in Visual Studio.</i><br /><br /><br /><br /><b>3) Now open your MainPage.xaml.cs file and include this line in your list of dependencies, in the top section:</b><br /><br /><code>using App.Util</code><br /><br /><br /><b>4) In the same file, go down to your namespace (directly under the line you just entered). You will need to change 3 things:</b><br />    - Add WebBrowserHelper declaration<br />    - Edit MainPage constructor<br />    - Add Browser_ScriptNotify function<br /><br />The contents of this file should now be similar to this: <a rel="nofollow" href="https://gist.github.com/2596814" target="_blank">View code on gist</a><br /><br /><br /><b>5) Lastly, open your app's index.html file and add this script in the &lt;head&gt;:</b>
<pre><code>&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;<br />	// ensure that this page does not scroll<br />	window.external.Notify(&quot;noScroll&quot;);<br />&lt;/script&gt;</code></pre>
<br />That should have your app looking and feeling a million times better.]]></description>
   </item>
   <item>
      <title>Windows Phone 8 apps</title>
      <link>http://forums.enyojs.com/discussion/1040/windows-phone-8-apps</link>
      <pubDate>Sun, 09 Dec 2012 03:02:53 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>rwatkins</dc:creator>
      <guid isPermaLink="false">1040@/discussions</guid>
      <description><![CDATA[I'm attempting to build an Enyo 2 app in Windows Phone 8 app container.<br /><br />I got one up and running in Visual Studio Express 2012 with the "Windows Phone HTML5 App" template, but cannot seem to resolve how to hook up the hardware back button to the webview so I can intercept it and handle it in my app, rather than watching my app just exit.  Attempts to handle it via the History API pushstate were also unsuccessful.  Any good way to hook backbutton up in the default HTML5 Windows Phone 8 container?<br /><br />Alternatively I attempted to get this running in a PhoneGap container.  But currently PhoneGap 2.2 creates a Windows Phone 7.1 app, not a Windows Phone 8 one.  This seems to have odd 'rubber band' of the window, and more importantly seems to force the viewport to 768x480 and I cant seem to get my 1280x768 app running scaled correctly, despite setting @-ms-viewport to those values.<br /><br />I also attempted to use the rc1 of PhoneGap 2.3 (and also with HEAD from github.com/apache/cordova-wp8), but after successfully building, the app always immediately crashes on launch - both on Emulator and Device (Lumia 920).<br /><br />Current instructions on how to get up and running in PhoneGap with Windows Phone also seem out of date:<br /><a href="http://docs.phonegap.com/en/2.2.0/guide_getting-started_windows-phone_index.md.html" target="_blank" rel="nofollow">http://docs.phonegap.com/en/2.2.0/guide_getting-started_windows-phone_index.md.html</a><br /><br />This doc refers to "CordovaStarter-x.x.x.zip" -- which doest exist in the current 2.2 download from Phonegap.com  So I've used the "standalone" template and directly modified the manifest template.<br /><br />And Building the Template intructs you to "Export Template ..." from Visual Studio -- but that feature doesnt exist in "Visual Studio Express 2012 for Windows Phone".<br /><br /><br />Suggestions?]]></description>
   </item>
   <item>
      <title>PhoneGap survey</title>
      <link>http://forums.enyojs.com/discussion/1232/phonegap-survey</link>
      <pubDate>Tue, 26 Feb 2013 22:25:04 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>rwatkins</dc:creator>
      <guid isPermaLink="false">1232@/discussions</guid>
      <description><![CDATA[In the latest PhoneGap newsletter they posted a survey to learn about who's using it.<br /><br />And they list Enyo as an option in their question about Frameworks, so thought it might be good to post about the survey here so Enyo developers using PhoneGap can be sure to provide their input.<br /><br />Survey:  <a href="https://docs.google.com/forms/d/1hOuaWBxYTmt6S2KDqbnbD1XAhLgxMf-Cd6wbEEG4hEw/viewform" target="_blank" rel="nofollow">https://docs.google.com/forms/d/1hOuaWBxYTmt6S2KDqbnbD1XAhLgxMf-Cd6wbEEG4hEw/viewform</a><br /><br />Here was what they posted in the Newsletter:
<blockquote><div>We want to learn more about you!<br /><br />Oh, the things that make PhoneGap great: awesome open source technology, the hardworking community, and delicious beers!<br /><br />In an effort to get to know our community better, we put together a short survey so we can learn more about you and your development workflow. What platforms are you targeting? What devices do you own? We want to get a more well-rounded picture of who you are and what you're looking for from PhoneGap.<br /><br />As thanks for filling out the survey, we're giving away 5 PhoneGap t-shirts to those who enter. Be sure to include your email address at the end.<br /><br />And yes, tell us about your favourite beer too. The PhoneGap team is currently enjoying Parallel 49's Gypsy Tears Ruby Ale in the keg. Cheers!<br /><br />Fill out the Survey<br /></div></blockquote>
]]></description>
   </item>
   <item>
      <title>2.1 and webOS</title>
      <link>http://forums.enyojs.com/discussion/923/2-1-and-webos</link>
      <pubDate>Tue, 30 Oct 2012 15:44:23 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>strider73</dc:creator>
      <guid isPermaLink="false">923@/discussions</guid>
      <description><![CDATA[What's the best way to get an enyo2 app on webOS with 2.1?  Is it still phonegap (what version?) and use webOSExt in the gallery for system calls?<br />]]></description>
   </item>
   <item>
      <title>PhoneGap/Cordova App for Android has a very long start time</title>
      <link>http://forums.enyojs.com/discussion/1156/phonegapcordova-app-for-android-has-a-very-long-start-time</link>
      <pubDate>Tue, 29 Jan 2013 22:43:48 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>bja</dc:creator>
      <guid isPermaLink="false">1156@/discussions</guid>
      <description><![CDATA[Hi Developers,<br /><br />I have packaged my Enyo2 webapp as Android app with Phonegap and I have published in the google play store. You can find the app <a rel="nofollow" href="https://play.google.com/store/apps/details?id=org.bja.mensa.chemnitz&amp;feature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5iamEubWVuc2EuY2hlbW5pdHoiXQ..">here</a>. I have used the Adobe Phonegap build service.<br /><br />A lot of users means that my app have a long start time. What I can do?<br /><br />At first I have setup a new local cordova android project. After that I have added the last deployed version of my enyo webapp into the folder assets/www.<br /><br />Here ist my new index.html:
<pre><code><br />&lt;!DOCTYPE html&gt;<br />&lt;html&gt;<br />	&lt;head&gt;<br />		&lt;title&gt;Mensa Chemnitz&lt;/title&gt;<br />		&lt;link rel=&quot;shortcut icon&quot; href=&quot;assets/favicon.ico&quot;&gt;<br />		&lt;!-- meta --&gt;<br />		&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf8&quot;&gt;<br />		&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot;&gt;<br />		&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no&quot;&gt;<br />		&lt;!-- css --&gt;<br />		&lt;link href=&quot;build/enyo.css&quot; rel=&quot;stylesheet&quot;&gt;<br />		&lt;link href=&quot;build/app.css&quot; rel=&quot;stylesheet&quot;&gt;<br />		&lt;!-- js --&gt;<br />		&lt;script src=&quot;build/enyo.js&quot;&gt;&lt;/script&gt;<br />		&lt;script src=&quot;build/app.js&quot; onerror=&quot;alert('No application build found, redirecting to debug.html.'), location='debug.html';&quot;&gt;&lt;/script&gt;<br />		&lt;script src=&quot;cordova-2.3.0.js&quot;&gt;&lt;/script&gt;<br />		&lt;!-- webfont --&gt;<br />		&lt;link href='<a href="http://fonts.googleapis.com/css?family=Courgette'" target="_blank" rel="nofollow">http://fonts.googleapis.com/css?family=Courgette'</a> rel='stylesheet' type='text/css'&gt;<br />		&lt;script&gt;<br />			function onBodyLoad() {<br />				document.addEventListener(&quot;deviceready&quot;, onDeviceReady, false);<br />			}<br />			<br />			// PhoneGap is loaded and it is now safe to make calls PhoneGap methods<br />			function onDeviceReady() {<br />				// tell enyo to listen for backbutton event<br />				enyo.dispatcher.listen(document, &quot;backbutton&quot;);<br />				new App().renderInto(document.body);<br />			}<br />		&lt;/script&gt;<br />	&lt;/head&gt;<br />	&lt;body onLoad=&quot;onBodyLoad();&quot; class=&quot;enyo-unselectable&quot;&gt;<br />	&lt;/body&gt;<br />&lt;/html&gt;<br /></code></pre>
<br />And the Android main java class:
<pre><code><br />public class MensaChemnitzAndroid extends DroidGap<br />{<br />    <a rel="nofollow" href="/profile/Override">@Override</a><br />    public void onCreate(Bundle savedInstanceState)<br />    {<br />        super.onCreate(savedInstanceState);<br />        super.setIntegerProperty(&quot;splashscreen&quot;, R.drawable.ic_launcher);<br />        super.loadUrl(&quot;file:///android_asset/www/index.html&quot;, 5000);<br />    }<br />}<br /></code></pre>
You can see I have added a splashscreen. The app works in the andoid emulator but the start time is very long.<br /><br />Splashscreen: 5 seconds<br />white screen: 10 seconds<br />app loaded<br /><br />I can say that the reason is not the google webfont.<br /><br />Thanks in advance,<br />Cheers Björn<br />]]></description>
   </item>
   <item>
      <title>Firebase, touchpad etc.</title>
      <link>http://forums.enyojs.com/discussion/1005/firebase-touchpad-etc</link>
      <pubDate>Tue, 27 Nov 2012 18:16:49 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>strider73</dc:creator>
      <guid isPermaLink="false">1005@/discussions</guid>
      <description><![CDATA[Working on packaging my enyo2 app for the touchpad &amp; webos.  It incorporates firebase.js and when I'm opening my app it is opening a browser page and navigating to a firebase page.  Any way I can keep that from happening?  It's obviously coming from the code in the firebase header you have to incorporate to make firebase work in your app.]]></description>
   </item>
   <item>
      <title>Enyo as native app.</title>
      <link>http://forums.enyojs.com/discussion/930/enyo-as-native-app</link>
      <pubDate>Wed, 31 Oct 2012 15:24:17 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>thstart</dc:creator>
      <guid isPermaLink="false">930@/discussions</guid>
      <description><![CDATA[I am exploring possibilities to generate native app from Enyo 2.0.<br /><br />What are the options? As I see Enyo developer team favors PhoneGap.<br />Are there specific reason for that? I see Phonegap generates theoretically<br />to 7 platforms but how realistic is it? I have a test phone with Android 2.2 -<br />HTC MyTouch Slide 3G and tried to load my web app in its browser. It is very<br />slow. I know Enyo 2.0 is supporting Android 2.3 and up but what difference <br />it would be? I don't think the speed will be much better. As I understand<br />PhoneGap is using a browser instance for his "native" code which is actually<br />hybrid not native. I think there would be not speed increase that way?<br /><br />What about iPhone AppStore. As I see I need mac for this - at least to generate<br />the certificates.]]></description>
   </item>
   <item>
      <title>Windows phone and 2.1</title>
      <link>http://forums.enyojs.com/discussion/914/windows-phone-and-2-1</link>
      <pubDate>Sat, 27 Oct 2012 16:32:28 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>strider73</dc:creator>
      <guid isPermaLink="false">914@/discussions</guid>
      <description><![CDATA[Any changes to get 2.1 to work with windows phone 7?  Cant seem to get mine to work. ]]></description>
   </item>
   <item>
      <title>setInterval is Fail on WebOS</title>
      <link>http://forums.enyojs.com/discussion/721/setinterval-is-fail-on-webos</link>
      <pubDate>Mon, 27 Aug 2012 14:57:20 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>RedMage</dc:creator>
      <guid isPermaLink="false">721@/discussions</guid>
      <description><![CDATA[Hi there fellow members of the cult of Enyo,<br /><br />setInterval works on my PC in browsers such as firefox and chromium.  When I package and deploy to HP Touchpad or Veer my <a rel="nofollow" href="https://github.com/RedMage/MightyTomato"> Pomodoro App</a> morphs from a Get Things Done app into a Rip My Own Hair Out app because of its sporadic ticking.  I set the tick method to occur every thousand milliseconds.<br /><br />Anybody have any ideas?  BTW, I will be at the boot camp at Groupon this week. Look for a tall and handsome guy who looks somewhat like Gerard Butler.]]></description>
   </item>
   <item>
      <title>Issue With Deployment</title>
      <link>http://forums.enyojs.com/discussion/552/issue-with-deployment</link>
      <pubDate>Sun, 01 Jul 2012 06:12:28 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>tkimmett</dc:creator>
      <guid isPermaLink="false">552@/discussions</guid>
      <description><![CDATA[I've encountered the following error when attempting to deploy my Enyo 2.0b5 web app via the deploy.sh script supplied with Bootplate:
<pre><code>==========<br />build step<br />==========<br />{ enyo: '/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/..',<br />  source: 'package.js',<br />  'no-alias': true,<br />  output: '../../build/enyo' }<br /><br /><br /><br />node.js:134<br />        throw e; // process.nextTick error, or 'error' event on first tick<br />        ^<br />TypeError: Bad argument<br />    at Object.mkdirSync (fs.js:360:18)<br />    at /home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/minify.js:137:6<br />    at Object.finish (/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:36:4)<br />    at Object.more (eval at &lt;anonymous&gt; (/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:11:10))<br />    at Object.more (eval at &lt;anonymous&gt; (/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:11:10))<br />    at Object.more (eval at &lt;anonymous&gt; (/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:11:10))<br />    at Object.load (eval at &lt;anonymous&gt; (/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:11:10))<br />    at Object.depends (/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:30:16)<br />    at eval at &lt;anonymous&gt; (/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:11:10)<br />    at /home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/minifier/node_modules/walker.js:11:2<br />{ enyo: '/home/taylor/Dropbox/Pandora_Stuff/jmtk-deploy/enyo/tools/..',<br />  source: 'package.js',<br />  output: '../build/app' }<br /></code></pre>
NodeJS is installed (v0.4.9) and I'm using Ubuntu 12.04. Any help is much appreciated.<br /><br />(On a side note, it might be good to say in the Bootplate wiki that nodejs is required for the deploy script. That was my initial problem until I installed nodejs and got this error.)]]></description>
   </item>
   <item>
      <title>handling Intents on PhoneGap - avoiding re-launch</title>
      <link>http://forums.enyojs.com/discussion/724/handling-intents-on-phonegap-avoiding-re-launch</link>
      <pubDate>Tue, 28 Aug 2012 18:57:47 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>rwatkins</dc:creator>
      <guid isPermaLink="false">724@/discussions</guid>
      <description><![CDATA[I would like to use Intents on Android for my PhoneGap based application, to register for an Intent and handle that event and its data in my Enyo application.<br /><br />I have used the WebIntents plugin.  I setup AndroidManifest.xml to successfully register for "myprotocol://host/path" and have that callback into the the app.<br /><br />But currently this appears to restart the application each time.  My app comes to the forground, but appears to start up from scratch and get url as the launch parameter in window.plugins.webintent.getUri().<br /><br />I'd like to be able to pass data to and already-running app via intents.  The goal here is a web page with a link to a URL that launches back to the app - brings it to the foreground and takes action based on the data passed back.<br /><br />Do I need to specify multiple activities somehow in AndroidManifest.xml?  <br />Or somehow setup the intent to not launch the Main activitity again?<br /><br />I currently have something like this in AndroidManifest.xml:
<pre><code>&lt;application android:icon=&quot;@drawable/icon&quot; android:label=&quot;@string/app_name&quot;<br />    android:debuggable=&quot;true&quot;&gt;<br /><br />    &lt;activity android:name=&quot;MyApp&quot; android:label=&quot;@string/app_name&quot; <br />              android:screenOrientation=&quot;portrait&quot;<br />              android:configChanges=&quot;orientation|keyboardHidden&quot;&gt;<br /><br />        &lt;intent-filter&gt;<br />            &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;<br />            &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;<br />        &lt;/intent-filter&gt;<br /><br />        &lt;intent-filter&gt;<br />          &lt;data android:scheme=&quot;myprotocol&quot; /&gt;<br />          &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;<br />          &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;<br />          &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;<br />        &lt;/intent-filter&gt;<br /><br />    &lt;/activity&gt;<br />&lt;/application&gt;<br /></code></pre>]]></description>
   </item>
   <item>
      <title>Android hardwareAcceleration setting</title>
      <link>http://forums.enyojs.com/discussion/626/android-hardwareacceleration-setting</link>
      <pubDate>Fri, 27 Jul 2012 23:30:04 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>ekdikeo</dc:creator>
      <guid isPermaLink="false">626@/discussions</guid>
      <description><![CDATA[In your AndroidManifest.xml, add android:hardwareAccelerated="true" to the application tag: <br />&lt;application android:hardwareAccelerated="true" ... &gt;<br /><br />seems to make a -huge- difference in Enyo 1 scrollers.  haven't tried much else yet.<br />]]></description>
   </item>
   <item>
      <title>Enyo2 vs Android Tablets</title>
      <link>http://forums.enyojs.com/discussion/664/enyo2-vs-android-tablets</link>
      <pubDate>Mon, 06 Aug 2012 21:07:07 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>bja</dc:creator>
      <guid isPermaLink="false">664@/discussions</guid>
      <description><![CDATA[Hey enyo developers,<br /><br />I use phonegap to deploy my enyo2 app on android. The android emulator 4.1 (Tablet) means, that my app not ready for tablets. What can I do to disable this behaviour?<br /><br />Regards<br />Björn]]></description>
   </item>
   <item>
      <title>about PhoneGap:build service</title>
      <link>http://forums.enyojs.com/discussion/516/about-phonegapbuild-service</link>
      <pubDate>Wed, 20 Jun 2012 05:59:06 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>hyuna</dc:creator>
      <guid isPermaLink="false">516@/discussions</guid>
      <description><![CDATA[I've been using PhoneGap:build service to package app based on Enyo 2.0.<br />Then, I have a problem.<br />I packaged a app named 'A'.<br />And, I packaged another app named 'B'.<br />I uploaded zip file included index.html, package.js. source files, enyo lib.<br />I installed these apps on android/webOS emulator.<br />After installing A app, I installed B app. Then, A app is replaced as B app, not another app.<br />How can I install both A app and B app?<br />Because the ID of appinfo.json file is unique, I can do to distinguish each other in Enyo 1.0. But Enyo 2.0 doesn't support appinfo.json file.]]></description>
   </item>
   <item>
      <title>InputDecorator Styling</title>
      <link>http://forums.enyojs.com/discussion/654/inputdecorator-styling</link>
      <pubDate>Fri, 03 Aug 2012 16:42:25 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>tkimmett</dc:creator>
      <guid isPermaLink="false">654@/discussions</guid>
      <description><![CDATA[The styling for unfocused inputs when inside onyx.InputDecorators makes it a bit hard to tell that it is an input at all. This is probably the reason that people often want the 'alwaysFocused' look. It would be great if an alwaysLookFocused property was available for InputDecorators, or the unfocused style did a better job of conveying the fact that it is an input.]]></description>
   </item>
   <item>
      <title>How to build a desktop application with AppJS (http://appjs.org/)</title>
      <link>http://forums.enyojs.com/discussion/651/how-to-build-a-desktop-application-with-appjs-httpappjs-org</link>
      <pubDate>Fri, 03 Aug 2012 13:04:38 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>chk5e</dc:creator>
      <guid isPermaLink="false">651@/discussions</guid>
      <description><![CDATA[<h2>It's easy!</h2>
<h3>Assumptions</h3> 
<ul><li>You got the binary distribution from <a rel="nofollow" href="http://dists.appjs.org">http://dists.appjs.org</a></li><li>I use the enyo.js bootplate from Github or from the enyo.js zip as an example app</li></ul>
<h3>Howto</h3>
<ol><li>Unpack the AppJS distribution to your hard diskinto an empty folder, say <b>appjs</b></li><li>Go to the tools folder of your bootplate app and run the deploy script</li><li>Replace the contents of <b>appjs/app/content</b> with the deploy version of your app, i.e. the contents of <b>yourapp/deploy/yourapp-&lt;timestamp&gt;/</b></li><li>Adapt <b>var window = app.createWindow({...</b> in <b>appjs/data/app.js</b> to match your requirements, i.e. screen width and heigth</li><li>Run <b>appjs/app.sh</b> or <b>appjs\app.exe</b></li><li>En<span>y</span>joy!</li></ol>
If you decide to use the whole development tree of the bootplate app then copy <b>debug.html</b> to <b>index.html</b>. I further suggest that you change the following in <b>appjs/data/app.js</b>:
<pre><code>window.on('ready', function(){<br />  console.log(&quot;Window Ready&quot;);<br />  window.require = require;<br />  window.process = process;<br />  window.module = module;<br />// add this for easy invocation of dev tools:<br />  window.addEventListener('keydown', function(e){<br />    if (e.keyIdentifier === 'F12') {<br />      window.frame.openDevTools();<br />    }<br />// end of addition<br />  });<br />});</code></pre>
Then you can invoke the development tools of the Chromium engine with F12.
<h3>Findings</h3>
<ul><li>I tried this with the enyo-sampler app. The 'deploy' version does not show the source. The pane just stays empty and the dev tools report a '500' server error. The 'debug' version does show the source.</li><li>Both versions are quite laggy. Esp. choosing from the menu pane on the left seems to depend on where the click goes to, text or empty space.</li></ul>
Hope this helps<br />Christian]]></description>
   </item>
   <item>
      <title>Enyo 2.0 on Android</title>
      <link>http://forums.enyojs.com/discussion/620/enyo-2-0-on-android</link>
      <pubDate>Fri, 27 Jul 2012 04:56:54 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>tkimmett</dc:creator>
      <guid isPermaLink="false">620@/discussions</guid>
      <description><![CDATA[Has anyone managed to use Phonegap to put their app on Android and have it run smoothly? In my recent attempts to do so I've encountered several UI issues, mainly laggy scrolling and other transitions like panels.]]></description>
   </item>
   <item>
      <title>Enyo 2.0 and phonegap 2.0 on WP7</title>
      <link>http://forums.enyojs.com/discussion/624/enyo-2-0-and-phonegap-2-0-on-wp7</link>
      <pubDate>Fri, 27 Jul 2012 16:15:58 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>strider73</dc:creator>
      <guid isPermaLink="false">624@/discussions</guid>
      <description><![CDATA[Anyone played around with phonegap 2.0 and WP7 yet?  They made some changes.  Looks like you need to take the display: table and display: table-cell out of their index.css and you're kind of back to normal.  Seems faster but event recognition is still somewhat slow.  I don't get why doubletaps work great and singletaps don't.  Also IconButtons work a whole lot better than regular buttons.]]></description>
   </item>
   <item>
      <title>Windows Phone 7</title>
      <link>http://forums.enyojs.com/discussion/283/windows-phone-7</link>
      <pubDate>Sun, 08 Apr 2012 03:36:11 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>rsanchez1</dc:creator>
      <guid isPermaLink="false">283@/discussions</guid>
      <description><![CDATA[Does anyone have any experience working with Enyo+PhoneGap on Windows Phone 7?]]></description>
   </item>
   <item>
      <title>webOS Deployment instructions</title>
      <link>http://forums.enyojs.com/discussion/604/webos-deployment-instructions</link>
      <pubDate>Tue, 24 Jul 2012 00:53:43 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>pempey</dc:creator>
      <guid isPermaLink="false">604@/discussions</guid>
      <description><![CDATA[I know that Enyo is designed as a cross platform framework and all but I was a little disappointed when there were not any webOS specific instructions on the <a rel="nofollow" href="https://github.com/enyojs/enyo/wiki/Platform-Specific-Deployment">Platform Specific Deployment</a> section of the Enyo github wiki found from the <a rel="nofollow" href="http://enyojs.com/docs/">enyojs.com/docs/</a>.  Having read these forums since inception I was able to figure it out through some old posts, but some instruction and guidance on the official wiki would be much appreciated.]]></description>
   </item>
   <item>
      <title>Packaging Your Enyo 2 Application for Windows Phone 7.5</title>
      <link>http://forums.enyojs.com/discussion/456/packaging-your-enyo-2-application-for-windows-phone-7-5</link>
      <pubDate>Wed, 30 May 2012 07:47:42 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>germboy</dc:creator>
      <guid isPermaLink="false">456@/discussions</guid>
      <description><![CDATA[<b><span>Getting Started</span></b><br />Packaging your Enyo application for Windows Phone (WP7) is a fairly straight-forward process, thanks to PhoneGap's support for the platform. For developers who are just getting started with PhoneGap/WP7, you will need to take the following steps:<br /><br />1)	<i>Download the Windows Phone SDK</i> - <a rel="nofollow" href="http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;id=27570" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;id=27570</a> <br />2)	<i>Download the latest PhoneGap build</i> - <a rel="nofollow" href="http://phonegap.com/download" target="_blank">http://phonegap.com/download</a> <br /><br />	The next step is optional for development, however it will be necessary for installing applications on your device &amp; submitting your application to the Marketplace<br /><br />3)	<i>Register as a developer on Microsoft's App Hub</i> - <a rel="nofollow" href="http://create.msdn.com/en-US/home/membership" target="_blank">http://create.msdn.com/en-US/home/membership</a> <br /><br />Head to PhoneGap's “Getting Started” page for WP7, for instructions and links to the most current SDK &amp; PhoneGap builds. <a rel="nofollow" href="http://phonegap.com/start#wp" target="_blank">http://phonegap.com/start#wp</a> <br /><br /><br />Important Note: It is worth noting that the PhoneGap project is a distribution of Apache Cordova. Starting with PhoneGap version 1.5.0, the references to the name “PhoneGap” in the PhoneGap project have been changed to “Cordova”. When referencing the PhoneGap website for instructions on setting up a new application project, they may tell you to look for a reference to the name PhoneGap, when you should really be looking for the name Cordova. With that in mind, I will reference the name Cordova for the remainder of this article.<br />Reference: <a rel="nofollow" href="http://phonegap.com/2012/03/19/phonegap-cordova-and-what%E2%80%99s-in-a-name/" target="_blank">http://phonegap.com/2012/03/19/phonegap-cordova-and-what%E2%80%99s-in-a-name/</a> <br /><br /><br /><b><span>Starting a New Project</span></b><br />After installing the WP7 SDK and Cordova, you are ready to create your first project.<br /><br />-	Open Visual Studio Express for Windows Phone and select <b>File</b> &gt; <b>New Project</b><br />-	Select <b>CordovaStarter</b><br />-	In the bottom area of the screen, you are able to name your project. For this article, we'll accept the default name CordovaStarter.<br /><br /><img src="http://www.variablelimit.com/enyo/screenshots/wp7_blog/new_project.png" alt="image" /><br /><br /><br /><br /><b><span>The Project Structure</span></b><br />When your project has been created, look at the “Solution Explorer” window on the right to view your project structure. If it is not visible by default, you can open it by selecting <b>View</b> &gt; <b>Other Windows</b> &gt; <b>Solution Explorer</b>.<br /><br />The “www” folder is the folder that will contain your Cordova resource and all of your application content (Enyo, CSS, images, etc).<br /><br /><img src="http://www.variablelimit.com/enyo/screenshots/wp7_blog/solution_explorer.png" alt="image" /><br /><br /><br /><br /><b><span>Adding Your Enyo Application to the Project</span></b><br />Copy your application files to the “www” folder of your project. Any required files or resources added here must be “included” into your project. Files not included in the project are not visible by default. You will have to click the <b>Show All Files</b> option in your Solution Explorer window.<br /><br /><img src="http://www.variablelimit.com/enyo/screenshots/wp7_blog/show_files.png" alt="image" /><br /><br />If your files/folders aren't included, you will see a white icon next to its name. Right-click and select <b>Include In Project</b>.<br /><br /><img src="http://www.variablelimit.com/enyo/screenshots/wp7_blog/include_in_project.png" alt="image" /><br /><br /><br />An important thing to understand is that all of your application content must be specified as “content” in Visual Studio. When importing your application into the project, most of your files will default to “content”, however images will not. If you tried to launch your application now, you would notice that your images would not be displayed. Take the following steps to make your images viewable.<br /><br /><br />1)	Select your image in the Solution Explorer window<br />2)	Make sure the image has been included in the project (as described above)<br />3)	In your Properties window (<b>View</b> &gt; <b>Other Windows</b> &gt; <b>Properties Window</b>), go to the <b>Build Action</b> drop-down list and select <b>Content</b><br /><br /><img src="http://www.variablelimit.com/enyo/screenshots/wp7_blog/image_as_content.png" alt="image" /><br /><br /><br /><br /><br /><b><span>Enyo &amp; Cordova</span></b><br />Now that your project is set up and your application has been included, it's important to understand the relationship between Enyo and Cordova.<br /><br />When your application is first launched, Codova will send a “deviceready” event to the document body. This event tells us that the application has been launched and Cordova has been loaded. It is at this point, where we can use Enyo to render our application. Fortunately, Enyo 2 has added native support for listening to this event.<br /><br />If you are using the latest Enyo 2 build in github ( <a rel="nofollow" href="https://github.com/enyojs/enyo" target="_blank">https://github.com/enyojs/enyo</a> ), you already have the needed file for this ability (enyo/source/dom/phonegap.js).<br /><br />If you are using the recent public release (Enyo 2.0 beta 4), you will need to download the support package, found in the enyojs/extra repo ( <a rel="nofollow" href="https://github.com/enyojs/extra" target="_blank">https://github.com/enyojs/extra</a> ). Then you will need to be sure to include that package in your application:
<pre><code>&lt;script src=&quot;lib/extra/phonegap/package.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</code></pre>
Enyo 2 uses its “enyo.Signals” kind, in order to listen for when Cordova is ready to render our application. To do this, we need to add an Enyo listener to our document body.
<pre><code>&lt;body&gt;<br />    &lt;script type=&quot;text/javascript&quot;&gt;<br />        // tell enyo to listen for deviceready event<br />        enyo.dispatcher.listen(document, &quot;deviceready&quot;);<br />        <br />        new App().renderInto(document.body);<br />    &lt;/script&gt;<br />&lt;/body&gt;<br /></code></pre>
* Note that we must use App().renderInto(document.body) instead of App.write().<br /><br /><br />In order to respond to the event we have a listener for, we must add a “enyo.Signals” kind to our application.
<pre><code>enyo.kind({<br />	name: &quot;App&quot;,<br />	components: [<br />		{kind: &quot;Signals&quot;, ondeviceready: &quot;deviceReady&quot;},<br />		{content: &quot;Hello world!&quot;}<br />	]<br />});<br /></code></pre>
<br /><br /><br /><b><span>Building and Deploying to the Emulator</span></b><br />Now that we have made the changes needed in our application, we are ready to build and deploy it to the emulator, for testing and debugging.<br /><br />1)	In Visual Studio, make sure the <b>Windows Phone Emulator</b> option is selected in the drop-down menu at the top of your screen.<br />2)	Click the green play button (or press F5), found directly to the left of the drop-down menu mentioned in step 1.<br /><br /><img src="http://www.variablelimit.com/enyo/screenshots/wp7_blog/deploy_to_emulator.png" alt="image" /><br /><br /><br />Your application should now successfully launch in the Windows Phone Emulator. Congrats!<br /><br /><img src="http://www.variablelimit.com/enyo/screenshots/wp7_blog/app_emulator.png" alt="image" /><br /><br /><br /><b><span>Quirks</span></b><br />When developing javascript applications for Windows Phone 7.5, there are certain pain-points that you will need work through. I address some of these issues on another forum thread: <a rel="nofollow" href="http://forums.enyojs.com/discussion/454/windows-phone-7-5-quirks" target="_blank">http://forums.enyojs.com/discussion/454/windows-phone-7-5-quirks</a>]]></description>
   </item>
   <item>
      <title>Chrome Packaged Apps &amp; Enyo</title>
      <link>http://forums.enyojs.com/discussion/602/chrome-packaged-apps-enyo</link>
      <pubDate>Mon, 23 Jul 2012 15:41:03 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>unwiredben</dc:creator>
      <guid isPermaLink="false">602@/discussions</guid>
      <description><![CDATA[Chrome 22 just went into beta and has a new feature called <a rel="nofollow" href="http://developer.chrome.com/trunk/apps/about_apps.html">Packaged Apps</a>.  They look like a really nice innovation, and we hope to fully support this model.<br /><br />However, the Chrome team has deprecated some web features for this platform.  <a href="http://developer.chrome.com/trunk/apps/app_deprecated.html" target="_blank" rel="nofollow">http://developer.chrome.com/trunk/apps/app_deprecated.html</a> has the list.  Looking at this list shows a few problems for the current enyo 2.0 code -- the package loader uses document.write, so a debug build of an Enyo-based app won't be able to start.  A minified version should be able to load into an app window, since that has all the dependencies turned into a couple of .js files you pull in with script tags.  We're working on rewriting this code to remove that dependency (<a href="https://enyojs.atlassian.net/browse/ENYO-580" target="_blank" rel="nofollow">https://enyojs.atlassian.net/browse/ENYO-580</a>).<br /><br />While Enyo 2 doesn't rely on localStorage, cookies, or synchronous XHR, note that these features are also disabled.  I suspect this was done to improve app performance, as all of these can block execution of code for some time due to external I/O.]]></description>
   </item>
   <item>
      <title>Issues with PhoneGap or PhoneGap:Build or build chain</title>
      <link>http://forums.enyojs.com/discussion/565/issues-with-phonegap-or-phonegapbuild-or-build-chain</link>
      <pubDate>Sun, 08 Jul 2012 23:38:56 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>rrix</dc:creator>
      <guid isPermaLink="false">565@/discussions</guid>
      <description><![CDATA[I am having an issue with <a rel="nofollow" href="http://github.com/rrix/spaceexplorer">application</a> I am writing as a weekend project; It's a frontend to <a rel="nofollow" href="https://github.com/spaceapi/spaceapi">the Hackerspaces.org SpaceAPI</a>. The application works mostly fine when I run it on a Node express server, barring a few endpoints that aren't setting Access-Control-Allow-Origin * on their ends (I just ignore them currently4)<br /><br />However, when I run my application through phonegap build, and install the webOS or Android builds, there are some strange things happening:<br /><br />- the minified app.js contains this addPath, which is obviously not going to work: enyo.path.addPaths({layout: "/home/rrix/dev/projects/webos/spaceexplorer/enyo/tools/../../lib/layout/", onyx: "/home/rrix/dev/projects/webos/spaceexplorer/enyo/tools/../../lib/onyx/", onyx: "/home/rrix/dev/projects/webos/spaceexplorer/enyo/tools/../../lib/onyx/source/", maps: "/home/rrix/dev/projects/webos/spaceexplorer/enyo/tools/../../lib/maps/"});<br />- webOS log output is void of anything besides failed gets to file://home/rrix..../stuff in the maps library<br />- Android log output only has "D/DroidGap(29223): Origin to allow: <a href="http://127.0.0.1*" target="_blank" rel="nofollow">http://127.0.0.1*</a>"<br /><br />When I run the application in Chrome or even the webOS browser or Android Chrome, there is a handmade scrim based on <a rel="nofollow" href="https://github.com/JMTK/canvas-spinner">jmtk's spinner</a>, and it is hidden when the last space is fetched, and the UI updates.<br /><br />This doesn't happen in the PhoneGap'd versions, the spinner takes about a minute to first appear (the scrim itself should only be onscreen for 15-30 seconds while the XHRs finish) and disappears a moment later, but the data never properly loads.<br /><br />With that all on the table, what would cause this to happen? If my XHRs are failing, it would keep it from going away, but not the issues I am having with the loads. Why would the XHRs fail on devices but not from a local express server? My code is up on gifhub <a rel="nofollow" href="https://github.com/rrix/spaceexplorer/blob/master/index.html">here</a> running tools/express.js in Node will spin up a server we can test on. There are PhoneGap:builds <a rel="nofollow" href="https://build.phonegap.com/apps/155496/share">here</a>.<br /><br />can anyone provide some insight and see what I am missing here?]]></description>
   </item>
   <item>
      <title>How to have the same webOS load behavior on Android</title>
      <link>http://forums.enyojs.com/discussion/29/how-to-have-the-same-webos-load-behavior-on-android</link>
      <pubDate>Fri, 27 Jan 2012 23:26:36 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>juliano_moraes</dc:creator>
      <guid isPermaLink="false">29@/discussions</guid>
      <description><![CDATA[Hey guys,<br /><br />perhaps it can be useful for the people that are trying to use Enyo apps on Android.<br />As you may know Android architecture makes all apps keep running in background even if you close them. <br />On webOS when you close a card the index.html will be reloaded next time you launch it. On Android it is not true.<br /><br />In order to have the same behavior on Android you can overwrite the resume method adding the following code to your phonegap main app java file:
<pre><code>protected void onResume()     {<br />       super.loadUrl(&quot;file:///android_asset/www/index.html&quot;);<br />       super.onResume();<br />    } </code></pre>
]]></description>
   </item>
   <item>
      <title>Getting an Enyo 1.0 App in Chrome Web Store</title>
      <link>http://forums.enyojs.com/discussion/12/getting-an-enyo-1-0-app-in-chrome-web-store</link>
      <pubDate>Thu, 26 Jan 2012 03:45:11 +0000</pubDate>
      <category>Packaging Apps</category>
      <dc:creator>erupnu</dc:creator>
      <guid isPermaLink="false">12@/discussions</guid>
      <description><![CDATA[This is a quick guide to getting your Enyo app up and running in the Chrome Web Store.<br /><br />So, you've likely been building your app in Chrome or Safari. Thankfully, the hard work is already done!<br /><br />Now, there are only three main things you need to consider:<br /><br />1.) If you use any device specific calls (such as Media Indexing, Cross App Launching, etc), this will not transition to Chrome App Store.<br />2.) If you use enyo.cookies, it will not work. Cookies require a browser param to work in your browser. Transition to localStorage, or my personal favorite: lawnChair. Both work great to store data in.<br />3.) If your app makes WebService calls, then you might have issues. See my later explanation to get rid of this browser param.<br /><br />If you want to build it as a "hosted web app" as I have done, the rest is really simple. For reference, you should read up on this:<br /><a href="http://code.google.com/chrome/webstore/articles/apps_vs_extensions.html" target="_blank" rel="nofollow">http://code.google.com/chrome/webstore/articles/apps_vs_extensions.html</a><br /><br />1.) Upload the full package to your site. This includes the Enyo framework.<br />2.) Test in browser without the browser params. Mine: <a href="http://api.flashcardstogo.com/webapp/" target="_blank" rel="nofollow">http://api.flashcardstogo.com/webapp/</a><br />3.) Build a manifest.json file. This is mine:
<pre><code>{<br />	&quot;name&quot;: &quot;FlashCards&quot;,<br />	&quot;description&quot;: &quot;The perfect Study Companion for mobile devices, now for your desktop.&quot;,<br />	&quot;version&quot;: &quot;2.6.8.8&quot;,<br />	&quot;app&quot;: {<br />		&quot;urls&quot;: [<br />			&quot;<a href="http://api.flashcardstogo.com/&quot;" target="_blank" rel="nofollow">http://api.flashcardstogo.com/&quot;</a>, <br />			&quot;<a href="http://www.flashcardstogo.com/&amp;quot" target="_blank" rel="nofollow">http://www.flashcardstogo.com/&amp;quot</a>;<br />		],<br />		&quot;launch&quot;: {<br />			&quot;web_url&quot;: &quot;<a href="http://api.flashcardstogo.com/webapp/&amp;quot" target="_blank" rel="nofollow">http://api.flashcardstogo.com/webapp/&amp;quot</a>;<br />		}<br />	},<br />	&quot;icons&quot;: {<br />		&quot;16&quot;: &quot;icon-16.png&quot;,<br />		&quot;48&quot;: &quot;icon-48.png&quot;,<br />		&quot;128&quot;: &quot;icon-128.png&quot;<br />	},<br />	&quot;permissions&quot;: [<br />		&quot;unlimitedStorage&quot;,<br />		&quot;notifications&quot;,<br />		&quot;clipboardRead&quot;,<br />		&quot;clipboardWrite&quot;<br />	]<br />}</code></pre>
4.) Get a 16px, 48px, and 128px app icon ready.<br />5.) Build a .zip file with the icons and manifest.json file.<br />6.) Login to the Chrome Web Store "Developer Dashboard" here: <a href="https://chrome.google.com/webstore/developer/dashboard" target="_blank" rel="nofollow">https://chrome.google.com/webstore/developer/dashboard</a><br />7.) Select "Add new item"<br />8.) You will need:<br />  a.) At least 1 1280x800 or 640x400 screenshot (png) of your app.<br />  b.) At least the Small tile - 440x280 Promotional Image.<br />  c.) The package.zip file created in step 5.<br />9.) Fill out the form and submit.<br /><br />It's that easy, just requires a little bit of work. Hopefully this jump starts you right away.<br /><br /><br />WORKING WITH WEBSERVICES IN HOSTED APP<del></del><br /><br />Depending on how you publish your Chrome app, WebService (aka XHR (aka HTTP Calls)) can be tricky with the "Same Origin Policy". Basically, a browser page can only make an HTTP call to the same domain from which it is using. It prevents XSS attacks (cross domain scripting attacks). Good security, bad for a web app using a 3rd party service.<br /><br />FlashCards for the moment calls <a href="http://api.flashcardstogo.com" target="_blank" rel="nofollow">http://api.flashcardstogo.com</a> for it's APIs. It is also a webapp. Therefore, the app had to reside on the <a href="http://api.flashcardstogo.com" target="_blank" rel="nofollow">http://api.flashcardstogo.com</a> domain (could not use <a href="http://www.flashcardstogo.com" target="_blank" rel="nofollow">http://www.flashcardstogo.com</a>) so that it could make those calls. Instantly, my issue was solved 90%. In cases where I needed Quizlet, FlashCard Exchange, or a 3rd party URL, I simply used a passthrough in my api. The call goes to my server, uses and XMLHTTP request on the 3rd party server (no same origin policy restriction there), and spits it back to the app. It's tricky, but there are ways around it.<br /><br />If you publish your Chrome Web Store as a "packaged app", then you can specify which domains get approved and thus work around the same origin policy.<br /><br />Read more on the Same Origin Policy: <a href="http://en.wikipedia.org/wiki/Same_origin_policy" target="_blank" rel="nofollow">http://en.wikipedia.org/wiki/Same_origin_policy</a>]]></description>
   </item>
   </channel>
</rss>