<?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 Anand A Santhosh on Medium]]></title>
        <description><![CDATA[Stories by Anand A Santhosh on Medium]]></description>
        <link>https://medium.com/@anand4t1?source=rss-cc2a861c87ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Anand A Santhosh on Medium</title>
            <link>https://medium.com/@anand4t1?source=rss-cc2a861c87ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:45:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anand4t1/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[Showing images in firebase push-notifications — flutter]]></title>
            <link>https://medium.com/@anand4t1/showing-images-in-firebase-push-notifications-flutter-caceb44a4035?source=rss-cc2a861c87ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/caceb44a4035</guid>
            <category><![CDATA[flutter-push-notification]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Anand A Santhosh]]></dc:creator>
            <pubDate>Wed, 29 Jun 2022 09:13:57 GMT</pubDate>
            <atom:updated>2022-06-29T09:13:57.533Z</atom:updated>
            <content:encoded><![CDATA[<h3>Showing images in firebase push-notifications — flutter</h3><p>This is followup for an earlier medium post i written on <a href="https://medium.com/@anand4t1/enabling-push-notification-on-flutter-using-firebase-dcdc35640618">firebase push-notification on flutter</a>. Please read that to continue.</p><p>In this post i will be showing how to show images on push notifications.</p><p>first you have to change firebase api body to</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db7c97e4ce1410b79074720d12ce2a2f/href">https://medium.com/media/db7c97e4ce1410b79074720d12ce2a2f/href</a></iframe><p>right we dont have to change anything for background messages it will be handled automatically. But for foreground message some changes are to be made.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a9c248ce2dc9f3778c9fc8538c86422c/href">https://medium.com/media/a9c248ce2dc9f3778c9fc8538c86422c/href</a></iframe><p>everything should be working correctly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caceb44a4035" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enabling Push notification on Flutter using Firebase]]></title>
            <link>https://medium.com/@anand4t1/enabling-push-notification-on-flutter-using-firebase-dcdc35640618?source=rss-cc2a861c87ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcdc35640618</guid>
            <category><![CDATA[firebasecloudmessaging]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Anand A Santhosh]]></dc:creator>
            <pubDate>Wed, 29 Jun 2022 06:17:08 GMT</pubDate>
            <atom:updated>2022-06-29T06:17:08.735Z</atom:updated>
            <content:encoded><![CDATA[<p>So you have decided you need to show notifications on your app. In this post i will show you how to add push notifications to your flutter app.</p><p>I will be showing new way of adding firebase to flutter app.</p><ol><li>Setting up Firebase.</li><li>Setting Firebase Cli.</li><li>Creating Project and adding firebase.</li></ol><h3><strong>Setting up Firebase</strong></h3><p>First of create a firebase project if it’s not already there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*IKr_H9Q1IC8v6BY9y4W-dA.png" /></figure><p>Give a name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vSKw10-aG-K_JrJNgs4KTA.png" /></figure><h3><strong>Setting Firbase Cli</strong></h3><p>Make sure you have installed nodejs on your computer. If you havent follow instructions from <a href="https://nodejs.org/en/">here</a>.</p><p>after that run the following command to install firebase cli.</p><p><em>npm install -g firebase-tools</em></p><p>you must authenticate your cli after installing it for that run.</p><p><em>firebase login</em></p><p>to activate firebase cli in dart run.</p><p><em>dart pub global activate flutterfire_cli</em></p><h3><strong>Creating Project and adding firebase</strong></h3><p>Create a flutter project using</p><p><em>flutter create project_name</em></p><p>Then run the following command to initilize Firebase in our project folder</p><p><em>fire configure — project=firebase project name</em></p><p>Yeay we have success fullly integrated firebase into our project. Now what’s left is to add Push notifications into our app. For that we need two packages <br>1. <a href="https://pub.dev/packages/firebase_messaging"><em>firebase_messaging</em></a></p><p>2. <a href="https://pub.dev/packages/flutter_local_notifications"><em>flutter_local_notifications</em></a></p><p>By default Firebase messaging will not show notifications while app is in foreground, for that we use flutter local notifications.</p><p>Start by adding both packages in your pubspec.yaml file and then creating a cloud messaging file that contains code for handling diffrent notifications and code for showing notification on foreground.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f00a7005bcaf1ac9c902aa5a8c75e02/href">https://medium.com/media/1f00a7005bcaf1ac9c902aa5a8c75e02/href</a></iframe><p>then add lines in main.dart</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd717839481c534cf4040d6daf9dea3f/href">https://medium.com/media/cd717839481c534cf4040d6daf9dea3f/href</a></iframe><h3><strong>Testing push notification</strong></h3><p>firebase provides an http api for testing firebase push notification.</p><p><a href="https://fcm.googleapis.com/fcm/send"><em>https://fcm.googleapis.com/fcm/send</em></a></p><p>add firebase notifications key in the header, which is available in firebase project settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hN35zSd1hGmEaysSp8l4tg.png" /></figure><p><em>Header:<br>Authorization:key=notification key <br>Content-Type:application/json</em></p><p>body:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe459080d870640e0c8c091a316f4d51/href">https://medium.com/media/fe459080d870640e0c8c091a316f4d51/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8FZjeHNtm4PcPtA1c1vWjw.png" /></figure><p>firebase messaging token will be printed when running app in debugmode use that token in body to send fcm notifications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcdc35640618" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>