<?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[codesundar - Medium]]></title>
        <description><![CDATA[Learn Hybrid Mobile App development for free - Medium]]></description>
        <link>https://medium.com/codesundar?source=rss----a54857c7ce79---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>codesundar - Medium</title>
            <link>https://medium.com/codesundar?source=rss----a54857c7ce79---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 18 May 2026 09:20:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/codesundar" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Barcode Scanner using PhoneGap]]></title>
            <link>https://medium.com/codesundar/barcode-scanner-using-phonegap-94e2f72f792d?source=rss----a54857c7ce79---4</link>
            <guid isPermaLink="false">https://medium.com/p/94e2f72f792d</guid>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[phonegap]]></category>
            <category><![CDATA[apache-cordova]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Sundaravel]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 04:49:24 GMT</pubDate>
            <atom:updated>2017-04-19T05:56:38.853Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is about working with barcode scanner in PhoneGap based application.</p><p><strong>Step1: Create a Cordova Project</strong></p><pre>cordova create BarCodeScanner com.phonegappro.barcodescanner BarCodeScanner</pre><p><strong>Step 2: Change your working directory</strong></p><pre>cd BarCodeScanner</pre><p><strong>Step 3: Add Platform (Android / iOS)</strong></p><pre>cordova platform add android</pre><p><strong>Step 4: Add Plugin</strong></p><pre>cordova plugin add phonegap-plugin-barcodescanner</pre><p>Full Source code (<a href="http://phonegappro.com/tutorials/phonegap-bar-code-scanner-example/">http://codesundar.com/tutorials/phonegap-bar-code-scanner-example/</a>)</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br> &lt;meta charset=&quot;UTF-8&quot;&gt;<br> &lt;title&gt;BarCode Scanner - PhoneGapPro.com&lt;/title&gt;<br> &lt;script type=&quot;text/javascript&quot; src=&quot;cordova.js&quot;&gt;&lt;/script&gt;<br> &lt;script type=&quot;text/javascript&quot;&gt;<br> function scan(){<br> console.log(&quot;clicked&quot;);<br> cordova.plugins.barcodeScanner.scan(function(result){<br> //success callback<br> alert(JSON.stringify(result));<br><br> },function(error){<br> //error callback<br> alert(JSON.stringify(error));<br><br> });<br> }<br> &lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;h3&gt;BAR CODE SCANNER&lt;/h3&gt;<br> &lt;button onclick=&quot;scan()&quot;&gt;SCAN&lt;/button&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94e2f72f792d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codesundar/barcode-scanner-using-phonegap-94e2f72f792d">Barcode Scanner using PhoneGap</a> was originally published in <a href="https://medium.com/codesundar">codesundar</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ionic Chat app using Firebase]]></title>
            <link>https://medium.com/codesundar/ionic-chat-app-using-firebase-7d8d02e0efef?source=rss----a54857c7ce79---4</link>
            <guid isPermaLink="false">https://medium.com/p/7d8d02e0efef</guid>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[phonegap]]></category>
            <category><![CDATA[ionic2]]></category>
            <dc:creator><![CDATA[Sundaravel]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 04:48:03 GMT</pubDate>
            <atom:updated>2019-11-13T07:47:57.426Z</atom:updated>
            <content:encoded><![CDATA[<p>This article, I’m going to explain how to create realtime chat application using Firebase Backend ( A Simple Group Chat)</p><p><strong><em>Download Source: </em></strong><a href="https://github.com/codesundar/ionic2-chat-with-firebase"><strong><em>https://github.com/codesundar/ionic2-chat-with-firebase</em></strong></a></p><p><strong>Technologies used:</strong></p><ul><li>Ionic Framework (v3)</li><li>Firebase JS SDK(we’re not going to use AngularFire)</li></ul><h3>Creating new project in Firebase</h3><p>First, we need to create new project in firebase</p><p><strong>Step 1:</strong> Login with your Firebase (<a href="https://firebase.google.com">https://firebase.google.com</a>) &amp; create new project</p><p><strong>step 2:</strong> Click <strong>“add firebase to your web app” </strong>&amp; get keys</p><p><strong>step 3:</strong> Add Rules with your database</p><pre>{<br> “rules”: {<br> “.read”: “auth == null”,<br> “.write”: “auth == null”<br> }<br>}</pre><p><strong><em>Note:</em></strong><em> we changed authentication to null; so anyone can access to your database</em></p><h3><strong>Creating Ionic Project</strong></h3><p>Once we created project from firebase, we can setup new ionic project for our chat application</p><p><strong>Create new Ionic project</strong></p><pre>ionic start ionicfirechat blank</pre><p><strong>Change your working directory</strong></p><pre>cd ionicfirechat</pre><p><strong>Add your platform (if required)</strong></p><pre>ionic platform add android</pre><pre>ionic platform add ios</pre><h3>Installing &amp; Setup Firebase (app.component.ts)</h3><p>Add firebase node_modules to your project</p><pre>npm install firebase --save</pre><p>import firbase in <strong><em>app.component.ts</em></strong></p><pre>import * as firebase from ‘firebase’;</pre><p>Add configuration to <strong><em>app.component.ts;</em></strong> Replace with your Firebase Configuration</p><pre>let config = {<br> apiKey: “YOUR_APIKEY”,<br> authDomain: “YOUR_AUTH_DOMAIN”,<br> databaseURL: “<a href="https://codesundar-ionic-chat.firebaseio.com">Y</a>OUR_DATABASE_URL&quot;,<br> projectId: “YOUR_PROJECT_ID”,<br> storageBucket: “YOUR_STORAGE_BUCKET”,<br> };<br>firebase.initializeApp(config);</pre><h3>Creating UI for chat (home.html)</h3><pre>&lt;ion-header&gt;<br>  &lt;ion-navbar&gt;<br>    &lt;ion-title&gt;<br>      Ionic 2 Firebase Chat<br>    &lt;/ion-title&gt;<br>  &lt;/ion-navbar&gt;<br>&lt;/ion-header&gt;</pre><pre>&lt;ion-content padding&gt;<br> &lt;ion-list no-lines&gt;<br>  &lt;ion-item *ngFor=&quot;let message of messagesList&quot;&gt;<br>   &lt;h3&gt;{{message.name}}&lt;/h3&gt;<br>   &lt;p&gt;{{message.message}}&lt;/p&gt;<br>  &lt;/ion-item&gt;<br> &lt;/ion-list&gt;<br>&lt;/ion-content&gt;<br>&lt;ion-footer&gt;<br> &lt;ion-item&gt;<br>  &lt;ion-input type=&quot;text&quot; placeholder=&quot;type here...&quot; [(ngModel)]=&quot;newmessage&quot;&gt;&lt;/ion-input&gt;<br>  &lt;button ion-button clear item-right (click)=&quot;send()&quot;&gt;Send&lt;/button&gt;<br> &lt;/ion-item&gt;<br>&lt;/ion-footer&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*BjVl8m1A8nLEtj3gyPa5tw.png" /><figcaption>Chat screen</figcaption></figure><p>Here, we need to create a prompt for getting username;</p><pre>this.alert.create({<br>  title: &#39;Username&#39;,<br>  inputs:[{<br>    name: &#39;username&#39;,<br>    placeholder: &#39;username&#39;<br>  }],<br>  buttons:[{<br>    text: &#39;Continue&#39;,<br>    handler: username =&gt;{<br>      this.name = username<br>   }<br>  }]<br> }).present();</pre><h3>Sending Messages to Firebase</h3><p>When user clicks send button we need to call send() to insert messages in to firebase &amp; clear existing messages</p><pre>send(){<br> this.ref.push({<br>    name: this.name.username,<br>    message: this.newmessage<br> });<br>}</pre><h3>Reading Messages from Firebase</h3><p>When user created new message, we need to display inside <strong><em>&lt;ion-content&gt;</em></strong></p><pre>this.ref.on(&#39;value&#39;,data =&gt; {<br>    let tmp = [];<br>    data.forEach( data =&gt; {<br>     tmp.push({<br>      key: data.key,<br>      name: data.val().name,<br>      message: data.val().message<br>     })<br>    });<br>    this.messagesList = tmp;<br> });</pre><h3><strong>Our Premium Products:</strong></h3><p>Save your development time with premium starter apps</p><p><strong>Ionic firebase Realtime chat: </strong><a href="https://mythemebox.com/template/ionic-chat-app/">https://mythemebox.com/template/ionic-chat-app/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlJ5Ajy9J5CxTcnR1yk71Q.png" /></figure><p><strong>Ionic Firebase Taxi booking script:</strong> <a href="https://mythemebox.com/template/ionic-taxi-booking-starter/">https://mythemebox.com/template/ionic-taxi-booking-starter/</a></p><p>Explore more: <a href="https://mythemebox.com/category/ionic/"><strong>Ionic Themes &amp; Starters</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDgAxAUmEpvdaOCIdUCiFQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d8d02e0efef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codesundar/ionic-chat-app-using-firebase-7d8d02e0efef">Ionic Chat app using Firebase</a> was originally published in <a href="https://medium.com/codesundar">codesundar</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrate Facebook login with Ionic 2 / 3]]></title>
            <link>https://medium.com/codesundar/integrate-facebook-login-with-ionic-edafcf902170?source=rss----a54857c7ce79---4</link>
            <guid isPermaLink="false">https://medium.com/p/edafcf902170</guid>
            <category><![CDATA[phonegap]]></category>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[cordova]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[facebook-login]]></category>
            <dc:creator><![CDATA[Sundaravel]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 04:47:10 GMT</pubDate>
            <atom:updated>2018-08-19T04:47:27.858Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="https://codesundar.com/ionic-login-with-facebook/">https://codesundar.com/ionic-login-with-facebook/</a><em> on March 17, 2017.</em></p><p>This lesson (<strong>ionic login with facebook</strong>), we’re going to learn how to integrate <strong>facebook login for ionic</strong> application and fetch user’s information from facebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KO1kN9lFEELw0wwm" /></figure><h3>Ionic login with Facebook Video Lesson</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUZf9VeLpVdA%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUZf9VeLpVdA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUZf9VeLpVdA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/72cc1a277ea4493008ac82e5d167be75/href">https://medium.com/media/72cc1a277ea4493008ac82e5d167be75/href</a></iframe><p>First we need to create new project then we need to add platform</p><pre>ionic start fblogin blank<br>cd fblogin<br>ionic cordova platform add android</pre><p>To add a facebook plugin (<a href="https://github.com/jeduan/cordova-plugin-facebook4"><strong>cordova-plugin-facebook4</strong></a>) we need to create APP_ID and APP_NAME.If you don’t know, how to create APP_ID and APP_NAME, please visit <a href="https://codesundar.com/create-facebook-application/">https://codesundar.com/create-facebook-application/</a></p><pre>ionic plugin add cordova-plugin-facebook4 --variable APP_ID=&quot;YOUR_APP_ID&quot; --variable APP_NAME=&quot;YOUR_APP_NAME&quot;</pre><pre>npm install --save @ionic-native/facebook</pre><p>Now we have to import modules on app.module.ts page then we can write a code for home pages</p><p>home.html</p><pre>&lt;ion-content padding&gt;<br> &lt;div *ngIf=&quot;isUserLoggedIn&quot; style=&quot;text-align:center&quot;&gt;<br> &lt;img src=&quot;{{userInfo.picture.data.url}}&quot;&gt;<br> &lt;h3&gt;{{userInfo.first_name}}&lt;/h3&gt;<br> &lt;p&gt;{{userInfo.email}}&lt;/p&gt;<br> &lt;button ion-button clear (click)=&quot;logout()&quot;&gt;Logout&lt;/button&gt;<br> &lt;/div&gt;<br>&lt;/ion-content&gt;<br>&lt;ion-footer *ngIf=&quot;!isUserLoggedIn&quot;&gt;<br> &lt;button ion-button block (click)=&quot;loginWithFB()&quot;&gt;Login with Facebook&lt;/button&gt;<br>&lt;/ion-footer&gt;</pre><p><strong>Explanation:</strong> We’ve created two buttons for login and logout; we also display images, name, and email address</p><p>home.ts</p><pre>loginWithFB(){<br>    this.fb.login([&quot;public_profile&quot;,&quot;email&quot;]).then( loginRes =&gt; {<br>      this.fb.api(&#39;me/?fields=id,email,first_name,picture&#39;,[&quot;public_profile&quot;,&quot;email&quot;]).then( apiRes =&gt; {<br>        <br>        this.userInfo = apiRes;<br>        this.isUserLoggedIn = true;<br><br>      }).catch( apiErr =&gt; console.log(apiErr));<br><br>    }).catch( loginErr =&gt; console.log(loginErr) )<br>  }<br><br>  logout(){<br>    this.fb.logout().then( logoutRes =&gt; <br>      this.isUserLoggedIn = false<br>    ).catch(logoutErr =&gt; <br>      console.log(logoutErr)<br>    );<br>  }</pre><p><strong>Explanation: </strong>we need to import {Facebook} from &#39;@ionic-native/facebook&#39; then we need to create an object. By using that created object we can call this.fb.login() for login, also we have used this.fb.api() to get user’s information</p><p><em>Originally published at </em><a href="https://codesundar.com/ionic-login-with-facebook/">https://codesundar.com/ionic-login-with-facebook/</a> <em>on March 17, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edafcf902170" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codesundar/integrate-facebook-login-with-ionic-edafcf902170">Integrate Facebook login with Ionic 2 / 3</a> was originally published in <a href="https://medium.com/codesundar">codesundar</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>