<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chynna Sevilleno on Medium]]></title>
        <description><![CDATA[Stories by Chynna Sevilleno on Medium]]></description>
        <link>https://medium.com/@chynnasevilleno?source=rss-111e77921e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L5y3LdyRXlwoLYCUeYLNOw.jpeg</url>
            <title>Stories by Chynna Sevilleno on Medium</title>
            <link>https://medium.com/@chynnasevilleno?source=rss-111e77921e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 02:07:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chynnasevilleno/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building Hybrid applications using PhoneGap + Framework7]]></title>
            <link>https://medium.com/@chynnasevilleno/building-hybrid-applications-using-phonegap-framework7-617d9a598650?source=rss-111e77921e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/617d9a598650</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[phonegap]]></category>
            <dc:creator><![CDATA[Chynna Sevilleno]]></dc:creator>
            <pubDate>Sat, 09 Feb 2019 14:12:00 GMT</pubDate>
            <atom:updated>2019-02-09T14:56:10.873Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*9575U108rJAlUOFpiuXTTQ@2x.png" /></figure><p>Mobile development has been influential in the tech market for the past decade. Smartphones have grown smarter and for some of us, it’s the ideal platform to launch a product. 🚀</p><p>Since I’ve been dwelling a lot in Mobile Development recently, I thought that giving a tutorial on PhoneGap and Framework7 could help the people starting out in Mobile Development on their own, since I’ve also noticed that there’s a scarcity of PhoneGap and Framework7 docs on the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*8Pli4_hSkkEI8QtI353jwg.gif" /><figcaption>PhoneGap’s cross-platform development feature</figcaption></figure><p>Framework7 works similarly like Bootstrap, Foundation, or Semantic UI, but with UI components tailored specifically for mobile development.</p><p>Developing iOS and Android applications in XCode and Android Studio, respectively, tend to be tedious and costly for developers building a simple application and prefer to launch a cross-platform application in a shorter span of time.</p><p>PhoneGap can be especially useful for designers that don’t usually code heavily but would want to put functionality into their mobile designs using HTML/CSS/JS.</p><p>Let’s start!</p><h3>Step 1: Installing PhoneGap</h3><p>You can install PhoneGap depending on your OS. There’s an available download for <a href="https://github.com/phonegap/phonegap-app-desktop/releases/download/0.4.5/PhoneGapDesktop.dmg">Mac</a> and <a href="https://github.com/phonegap/phonegap-app-desktop/releases/download/0.4.5/PhoneGapSetup-win32.exe">Windows</a>. The download should start automatically once the link is clicked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ryLBTQof-q-1Cxt7kx-D7Q.png" /></figure><p>Install the PhoneGap file and once the installation has finished, open PhoneGap.</p><p>To start off, click on the Plus (+) sign on the left menu to create a new PhoneGap project. Select the <strong>Blank </strong>template and click next. (Note: As of writing, PhoneGap’s Framework 7 option is lagging behind updates, so let’s disregard that option.)</p><p>You will then be prompted to enter the application’s Local Path, Name, and ID. After this is filled out, you can click on<strong> Create project</strong>.</p><p>The project should now be up and running on your server which can be found in the bottom part of your PhoneGap window (ie. <a href="http://192.168.X.X:XXXX)">http://192.168.X.X:XXXX)</a></p><p>Note: Close your PhoneGap application. It goes haywire when you edit the base file sometimes.</p><h3>Step 2: Integrating Framework7 into PhoneGap</h3><p>For this tutorial, we’ll be using Framework7 version 4.0.1 (You can download it here: <a href="https://github.com/framework7io/framework7/releases/tag/v4.0.1">https://github.com/framework7io/framework7/releases/tag/v4.0.1</a>)</p><p>We won’t be using VueJS nor React for this tutorial so download <a href="https://github.com/framework7io/framework7/archive/v4.0.1.zip"><strong>Source code(zip)</strong></a><strong> </strong>from the Assets list.</p><p>So now, we need to manually copy some of the downloaded contents into the PhoneGap application’s folder.</p><p>Go to<strong> framework7–4.0.1 &gt; packages &gt; core</strong> and copy all the contents inside from components down to utils (note: only copy the contents of the folder).</p><p>Open your app’s local file and do the following:</p><ol><li>Select the ‘www’ folder and create a folder inside it, name the folder lib. The www folder should now have index.html and www/lib</li><li>Create another folder inside www/lib and name it framework7. It should now be www/lib/framework7</li><li>Paste all the copied content into the framework7 folder</li><li>Create a css and js folder inside www. You can place your custom css and js files on these folders.</li></ol><p>It should now look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2g1NOvWtjcqF-TgM6ogdYg.png" /></figure><h3>Step 3: Dealing with code</h3><p>Time to brush up on HTML/CSS/JS boys, girls, and everyone in between, it’s time to open your favorite editor! (Personal favorite: <a href="https://code.visualstudio.com/">Visual Studio Code</a>. But <a href="https://atom.io/">Atom</a> or <a href="https://www.sublimetext.com/">Sublime</a> is good too.)</p><ol><li>Open your index.html using any editor and go to <a href="https://framework7.io/docs/app-layout.html">Framework7’s starter template</a>. Copy the code block into index.html.</li></ol><p>2. Add Framework7 to index.html. This part’s quite messy so bear with me :)</p><p>(CSS) Replace <strong>line 13 </strong>with</p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;lib/framework7/css/framework7.bundle.min.css&quot;&gt;</pre><p>(JS) Replace <strong>line 54</strong> with</p><pre>&lt;script type=&quot;text/javascript&quot; src=&quot;lib/framework7/js/framework7.bundle.min.js&quot;&gt;&lt;/script&gt;</pre><p>3. Create a <strong>my-app.css</strong> file in your www/css folder and a <strong>my-app.js </strong>file in your www/js folder.</p><p>(CSS) Replace <strong>line 15</strong> on index.html with</p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;css/my-app.css&quot;&gt;</pre><p>(JS) Replace<strong> line 56</strong> with</p><pre>&lt;script type=&quot;text/javascript&quot; src=&quot;js/my-app.js&quot;&gt;&lt;/script&gt;</pre><p>4. Copy the following code into your www/js/my-app.js</p><pre><em>var</em> app = new <strong>Framework7</strong>({</pre><pre>// App root element</pre><pre>root: &#39;#app&#39;,</pre><pre>// App Name</pre><pre>name: &#39;My App&#39;,</pre><pre>// App id</pre><pre>id: &#39;com.myapp.test&#39;,</pre><pre>// Enable swipe panel</pre><pre>panel: {</pre><pre>swipe: &#39;left&#39;,</pre><pre>},</pre><pre>// Add default routes</pre><pre>routes: [</pre><pre>{</pre><pre>path: &#39;/about/&#39;,</pre><pre>url: &#39;about.html&#39;,</pre><pre>},</pre><pre>],</pre><pre>// ... other parameters</pre><pre>});</pre><pre><em>var</em> mainView = app.views.create(&#39;.view-main&#39;);</pre><p>To learn more about the parameters of this code, check<a href="https://framework7.io/docs/app.html"> this</a> out!</p><h3>Step 4: Preview your app</h3><p>Open PhoneGap and click on the server where your application is running. Once the link has opened in your browser, use the Inspect Element feature. Or press <strong>⌘ +</strong> <strong>Shift</strong> <strong>+ C</strong> on Mac / <strong>F12 or Ctrl+ Shift + C </strong>on Windows.</p><p>This is what you should see on the browser. On the left, a preview of the app on iPhone X and on the right, a preview on Pixel 2 XL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*5NEbk1QXps_73pEBcmGahQ@2x.png" /></figure><p>Optionally, you can opt to preview your application using your mobile phone. There’s an existing <a href="https://play.google.com/store/apps/details?id=com.adobe.phonegap.app&amp;hl=en_US">PhoneGap Developer app </a>on Android that you can test it on (Sorry iPhone folks, apparently the PhoneGap Developer App has violated Apple’s rules so there’s none for now, but check out Jesse’s <a href="https://blog.phonegap.com/update-on-the-phonegap-developer-app-ios-99e07e3309dd">article</a> for an alternative.)</p><p>Personally, I prefer to test the application using my browser because I felt that the Android one’s permission requests were a tad bit much, but that’s just me!</p><p>Another method is to use Genymotion and download the Android apk file <a href="https://www.apkmonk.com/app/com.adobe.phonegap.app/">here</a>. Install the apk on any Genymotion Android device and you’re all set!</p><h3>Step 5: What’s next?</h3><p>Get creative and build your own PhoneGap applications using the help of Framework7. Their <a href="https://framework7.io/docs/">documentation</a> will be your best buddy during the development. That’s all, folks!</p><p>🤔 If you have any questions about the article, leave a comment and I’ll get back as soon as I can. Thanks for reading! Let’s get coding!</p><p><strong>References</strong></p><p>PhoneGap: <a href="http://phonegap.com/getstarted">http://phonegap.com/getstarted</a></p><p>Framework7: <a href="https://framework7.io/">https://framework7.io/</a></p><p>Special thanks to my Android Dev professor, Mr. Paasa. You are the source of all this, and now I’ll share this to anyone who needs it. 🤓</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=617d9a598650" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>