<?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 Robin Singh on Medium]]></title>
        <description><![CDATA[Stories by Robin Singh on Medium]]></description>
        <link>https://medium.com/@rs728?source=rss-ae23a3076937------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nGYWnSbpfH9I2Y1uQor-fQ.jpeg</url>
            <title>Stories by Robin Singh on Medium</title>
            <link>https://medium.com/@rs728?source=rss-ae23a3076937------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 03:15:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rs728/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[Send Device-to-Device Push Notification using Firebase Cloud Messaging without using external…]]></title>
            <link>https://medium.com/mindorks/send-device-to-device-push-notification-using-firebase-cloud-messaging-without-using-external-769476c79ffd?source=rss-ae23a3076937------2</link>
            <guid isPermaLink="false">https://medium.com/p/769476c79ffd</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[firebasecloudmessaging]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Robin Singh]]></dc:creator>
            <pubDate>Sun, 21 Jul 2019 12:56:58 GMT</pubDate>
            <atom:updated>2019-07-21T12:56:58.384Z</atom:updated>
            <content:encoded><![CDATA[<h3>Send Device-to-Device Push Notification using Firebase Cloud Messaging without using external server</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Mk7mwwIHqjxs3JsFWrw0g.jpeg" /></figure><p>Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost. It allows you to send push notification directly from Firebase console or with an app server or some trusted server where the logic runs. This article will tell you how to send push notification between devices like most of the chat apps without using any external server.</p><h3>Step 1 : Create a new Android Studio Project and add the necessary dependencies</h3><p>First, we need to create a new Android Studio project and add the relevant dependencies to it.</p><p>The first is a simple one — set up Firebase in your project. You can find a good tutorial <a href="https://firebase.google.com/docs/android/setup?source=post_page---------------------------">here</a>. In order to use FCM, you’ll need to add the following dependency to your app:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9eaecd0496c823b0734178f53abfaa10/href">https://medium.com/media/9eaecd0496c823b0734178f53abfaa10/href</a></iframe><h3>Step 2: Create Firebase Service</h3><p>Now we need to create a Firebase service: MyFirebaseMessagingService. This service will used to receive and display the notifications. Services do not have any visual interface and are used for background running operations. To create a service, right click on the app folder and select New -&gt; Service -&gt; Service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WibuWiWEH6x56N7D2uMlHw.png" /><figcaption>New Service</figcaption></figure><p>Type in your service name and click <strong>Finish </strong>button to create the service<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*PpvXW9uJrtg6cz-tQKT6Aw.png" /></figure><p>Go to the AndroidManifest.xml file and update your service declarations under the application tag. Also, add INTERNET<strong> </strong>and CLOUD TO DEVICE MESSAGING permissions so your app can interact with FCM server.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c01326ae6bddd80022eebf991b8d70c/href">https://medium.com/media/3c01326ae6bddd80022eebf991b8d70c/href</a></iframe><h3>Step 3: Setting up the service</h3><p>MyFirebaseMessagingService extends FirebaseMessagingService class in order to receive messages from the FCM server. This service handles the reception and display of notifications. OverrideOnMessageReceived() function within the service so that it will be called whenever a new notification message is received.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc2a1a81882b42d384a4df46a3f5d0a3/href">https://medium.com/media/cc2a1a81882b42d384a4df46a3f5d0a3/href</a></iframe><h3>Step 4: Implementing notification sending logic</h3><p>First you need to get your <strong>Server Key </strong>from Firebase console using the following steps:-</p><ul><li>Click the gear icon beside <strong>Project Overview</strong>, and then click on <strong>Project settings</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*Jh84mm84AD9w3XnAFuYKHw.png" /></figure><ul><li>Click on <strong>Cloud Messaging</strong> tab, and copy your <strong>Server key</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6eFw6zYiNSm6OAzLdGIA0A.png" /></figure><p><strong>Implement the Sending Logic</strong></p><p>Sending push notification requires just an HTTP post request to FCM server with the following request properties:</p><p><strong>Method Type:</strong> POST</p><p><strong>URL:</strong> https://fcm.googleapis.com/fcm/send</p><p><strong>Headers:</strong></p><pre>Authorization: key=&quot;<strong>Firebase server key&quot;<br></strong>Content-Type: application/json</pre><p><strong>Body:</strong></p><pre>{<br>  &quot;to&quot;: &quot;/topics/topic_name&quot;,<br>  &quot;data&quot;: {<br>    &quot;title&quot;: &quot;Notification title&quot;,<br>    &quot;message&quot;: &quot;Notification message&quot;,<br>    &quot;key1&quot; : &quot;value1&quot;,<br>    &quot;key2&quot; : &quot;value2&quot; //additional data you want to pass<br>   }<br>}</pre><p>Keeping in mind the above structure, you will first create a JsonObject of the notification body within your activity class. This object will contain the receiver’s topic, notification title, notification message, and other key/value pairs you wish to add.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb7687f6fb34095ae89a9c7d63258501/href">https://medium.com/media/eb7687f6fb34095ae89a9c7d63258501/href</a></iframe><p>We will be using volley library to make a network request to FCM server, then the server will use the request parameters to route the notification to the targeted device.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b92a058858142f1a7b9d5d7880a9afff/href">https://medium.com/media/b92a058858142f1a7b9d5d7880a9afff/href</a></iframe><p>With that, you have completed building your app. You can start sending push notifications between devices without using any external server. Always ensure that you get the topic of the recipient correct else the notification will not be delivered. If you did everything right, you will have a similar result to this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JtFNj_2DbXAPUBbDXIDvzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VObPc8DtUIJHfWF6s9dWww.png" /></figure><h3>The code for the sample app above can be found over here, feel free to fork it and follow along :</h3><p><a href="https://github.com/rob729/Notification">rob729/Notification</a></p><p><em>Thanks for reading! If you enjoyed this story, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below.</em></p><p><em>Let’s connect on </em><a href="https://twitter.com/Rob_729"><em>Twitter</em></a><em>, </em><a href="https://www.linkedin.com/in/rob729/"><em>LinkedIn</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=769476c79ffd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindorks/send-device-to-device-push-notification-using-firebase-cloud-messaging-without-using-external-769476c79ffd">Send Device-to-Device Push Notification using Firebase Cloud Messaging without using external…</a> was originally published in <a href="https://medium.com/mindorks">MindOrks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My GSSoC’ 19 Experience]]></title>
            <link>https://medium.com/@rs728/my-gssoc-19-experience-dec92b17726?source=rss-ae23a3076937------2</link>
            <guid isPermaLink="false">https://medium.com/p/dec92b17726</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[gssoc]]></category>
            <category><![CDATA[open-source-contribution]]></category>
            <dc:creator><![CDATA[Robin Singh]]></dc:creator>
            <pubDate>Wed, 22 May 2019 13:43:34 GMT</pubDate>
            <atom:updated>2019-05-22T13:43:34.042Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HA_8jQcyx8Ot8cZq5PWvTQ.png" /><figcaption><a href="https://www.gssoc.tech/index.html">https://www.gssoc.tech/index.html</a></figcaption></figure><p>GSSoC’ 19 is coming to an end and I thought it would be nice to look back at the 3-month long journey and talk about why should anyone participate in GSSoC.</p><p>It’s been a few months since I started learning Android. I was fairly experienced with Open Source and knew how it works before I came to know about GSSoC. I had already tried my hands on Hacktoberfest for the past two years, participated in open source contribution programs like KWoC and NWoC and just started contributing to FOSSASIA organizations. This summer, I was looking for an opportunity to contribute to open source and that’s when I came across the <strong>GirlScript Summer of Code 2019</strong>.</p><p>GirlScript Summer of Code is a 3 month long Open Source program during summers conducted by GirlScript Foundation, started in 2018, with an aim to help beginners get started with Open Source Development while encouraging diversity. Throughout the program, participants contribute to different projects under the guidance of experienced mentors.</p><p>There were a lot of distinct projects — for beginners and professionals alike — covering a wide range of technical skills — <strong>Python</strong>, <strong>JavaScript</strong>, <strong>C++</strong>, <strong>Django</strong>, <strong>Java</strong> <strong>,Flutter </strong>and many other.</p><p>Out of the 24 projects, there were 3 Android-related(Java) projects — <strong>Images-to-PDF</strong> , <strong>TravelMate</strong> and <strong>OpenCI</strong>. I initially decided to contribute to <a href="https://github.com/brijeshshah13/OpenCI">OpenCI</a> but later switched to <a href="https://github.com/Swati4star/Images-to-PDF">Images-to-PDF</a> as OpenCI was dropped from GSSoC due to inactivity of project admin.</p><p>The admins and mentors for the project had created a number of issues each marked with labels indicating the different levels of difficulty —<strong>beginner</strong>, <strong>easy</strong>, <strong>medium</strong> and <strong>hard</strong>. Each level had a certain number of points assigned to it that you would earn if your pull request was merged.</p><p>If you are wondering about any prizes on actively participating in the program then yes, there are many rewards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*4amY15LYqZcjFaXokfvwIg.png" /><figcaption>Prizes for top performers.</figcaption></figure><p>After the registration period gets over, acceptance mails are sent to the participants which tell them how to get started and utilize the community bonding period in one can interact with fellow participants and mentors of the project to which they want to contribute.</p><p>On 1st March the coding period started and I started looking out for the issues in the projects. I started with the OpenCI project and solved 5 issues of the project. Later I switched to the Images-to-PDF projects. Initially, it was a little challenging to understand the code-base of the project but I never lost the hope. I picked up a easy issue from the project which was a bug related to watermark implementation in the PDF.</p><p>My mentors —<a href="https://github.com/vyankatesh24"> Vyankatesh Berde</a> and <a href="https://github.com/Swati4star">Swati Garg</a> were very friendly and helpful. Whenever I was stuck on some issue they always guided me and solved my queries. Also, Pull requests were reviewed by them and any changes expected were explained in detail to help us understand why they were needed.</p><p>If you’re one of those who are somewhat not confident or scared of contributing to the open-source projects, then GSSoC is the perfect program to start your open source journey. It’s open to all — beginners to experienced — students to working professionals, you will find issues that will be challenging enough for you to work on. Also, there will be a wide variety of projects to choose from. No matter what your technical skills are, you will find your place in the program.</p><p>To know more about GSSoC , visit: <a href="https://www.gssoc.tech/index.html">https://www.gssoc.tech/index.html</a></p><p><em>Thanks for reading! If you enjoyed this story, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dec92b17726" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kharagpur Winter of Code: My start to open source contributions]]></title>
            <link>https://medium.com/@rs728/kharagpur-winter-of-code-my-start-to-open-source-contributions-ff8dc78d9b7c?source=rss-ae23a3076937------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff8dc78d9b7c</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[kwoc]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Robin Singh]]></dc:creator>
            <pubDate>Sun, 13 Jan 2019 19:42:49 GMT</pubDate>
            <atom:updated>2019-06-01T07:26:22.850Z</atom:updated>
            <content:encoded><![CDATA[<h3>KWoC 2018: My start to open source contributions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yr5Fp__cOLJMfPKG4DxCHw.png" /><figcaption>KWoC organized by IIT Kharagpur’s Open Source Society</figcaption></figure><p><a href="https://kwoc.kossiitkgp.in/">Kharagpur Winter of Code(KWOC)</a> is a 5-week online program organized annually by IIT Kharagpur’s Open Source Society for students of various colleges, who are new to open source software development.</p><p>I came across KWoC during the month of October on Facebook. I was a bit aware of Open Source and heard about Google Summer of code, therefore I opened the link and read about KWoC. I have never contributed to open source projects and it was a great experience to start off with KWoC projects.</p><h3>Choosing the Project:</h3><p>I went through all the projects mentioned on the website for the android app development. I decided to stick only to one project and hence contributed to <a href="https://github.com/sridharjajoo/NewsApp">NewsApp</a>. My mentor for this project was <a href="https://github.com/sridharjajoo">Sridhar Jajoo</a> and I learned a lot under his guidance.</p><h3>Progress:</h3><p><strong>Pull request 1: 6 Dec 2018</strong></p><p>I add the functionality of showing the keyboard automatically on the click of search icon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*zoAhlx4lwNCy7MuZC-d8vQ.png" /></figure><p><strong>Pull request 2: 7 Dec 2018</strong></p><p>I added the pull to refresh functionality to the app in headlines section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*up09SW6VFGwghEU6MtblFQ.png" /></figure><p><strong>Pull request 3: 9 Dec 2018</strong></p><p>I added the app icon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*02LGkq86_fo4j3pPU_EWzw.png" /></figure><p><strong>Pull request 4&amp;5: 11–12 Dec 2018</strong></p><p>I added the app screenshots and information about the MVVM pattern in the readme file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*m-H4t4oi3zDfphXulmj7Hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*9nGdJZSgxgKTVpsiH57nUw.png" /></figure><p><strong>Pull request 6: 14 Dec 2018</strong></p><p>I added the network check in the search fragment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*0Oe_og0AOMktlZ6DCUyK8w.png" /></figure><p><strong>Pull request 7: 15 Dec 2018</strong></p><p>I added the splash screen to the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*cBLCptQHXf10B2xaKFHzFA.png" /></figure><p><strong>Pull request 8: 16 Dec 2018</strong></p><p>I added the “No search results” placeholder in the search fragment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*3AZfttytsZC3hp4eZiyFjQ.png" /></figure><p><strong>Pull request 9: 18 Dec 2018</strong></p><p>I replaced Butterknife with Data Binding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*3lmgG5_7VYLw82lVcbDU4Q.png" /></figure><p><strong>Pull request 10: 21 Dec 2018</strong></p><p>I implemented the news share function in search and favorite fragment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*PFH890PYNC071dbDXDZcDQ.png" /></figure><p><strong>Pull request 11: 5 Jan 2019</strong></p><p>I fixed the navigation to home from search fragment bug.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*3SiwCk5A59OvWTaIXlXsZw.png" /></figure><p><strong>Pull request 12 &amp; 13: 6 Jan 2019</strong></p><p>I changed the theme of the search bar in search fragment and added the functionality to hide the keyboard automatically when performs the search operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*xJYQHNO6sX_3CTPwpShUOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*7Yx9WLJaBJgKQSd7eYErnw.png" /></figure><p><strong>Pull request 14: 10 Jan 2018</strong></p><p>This PR solved one of the most challenging issue of this app. Initially the issue was to add a viewpager in the search fragment and show the news of different categories. But on implementing this, search fragment has certain issue due to which an entire different option was supposed to be added in the bottom navigation bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*jkQtBNqJJ8L4ibD9UOCoFw.png" /></figure><h3>Conclusion:</h3><p>Special credits to my mentor <a href="https://github.com/sridharjajoo">Sridhar Jajoo</a> who guided me through all this by providing valuable feedback on my PR’s and solving my queries. He was really good and was actively involved in the project. Also thanks to IIT Kharagpur, KOSS for hosting this beginner friendly program to guide beginners to open source contribution. I would certainly recommend beginners to try out KWoC, to get started to open source software development.</p><p>Thanks for reading. GitHub handle: @<a href="https://github.com/rob729">rob729</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff8dc78d9b7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>