<?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 Luke Smetham on Medium]]></title>
        <description><![CDATA[Stories by Luke Smetham on Medium]]></description>
        <link>https://medium.com/@lukesmetham?source=rss-e4b6f29f4b83------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*y_gV1qzUX_Xo5mMpB27b5w@2x.jpeg</url>
            <title>Stories by Luke Smetham on Medium</title>
            <link>https://medium.com/@lukesmetham?source=rss-e4b6f29f4b83------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:39:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lukesmetham/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[Announcing Stream’s New Dashboard Experience]]></title>
            <link>https://medium.com/getstream-io/announcing-streams-new-dashboard-experience-95f9198c01e0?source=rss-e4b6f29f4b83------2</link>
            <guid isPermaLink="false">https://medium.com/p/95f9198c01e0</guid>
            <category><![CDATA[moderation]]></category>
            <category><![CDATA[chat]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[feeds]]></category>
            <dc:creator><![CDATA[Luke Smetham]]></dc:creator>
            <pubDate>Mon, 26 Oct 2020 16:35:52 GMT</pubDate>
            <atom:updated>2020-10-26T16:35:52.136Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ifjW1oPJG8PD43JMBYKAXQ.png" /></figure><p>Our initial dashboard was built for Stream’s initial product, <a href="https://getstream.io/activity-feeds/">Feeds</a>. As you may know, we now offer <a href="https://getstream.io/chat/">Chat</a> — a robust real-time API for building messaging applications. With the tremendous growth since the initial launch of our second product, we are working to ensure that every user experience is the same level of quality.</p><p>Today, we’re very excited to announce the dawn of a new dashboard experience here at Stream. Starting now, you will see a new banner at the top of your Stream Dashboard with a button to opt-in to the v2 beta! 🎉</p><p>Naturally, since we first created the dashboard, we’ve also seen considerable changes to the front-end development landscape. New patterns are becoming increasingly viable and accessible, and the JavaScript ecosystem continues to boom, giving us new ways to create performant and engaging experiences on the web.</p><p>Throughout this period, our dashboard has primarily remained the same. We added a new area of the dashboard for Chat — including manual and automated moderation tools and configuration for webhooks and push notifications, to name just a few. However, other than some select views and components, the current dashboard is still primarily built on an old-school tech stack.</p><p>Anyone switching to the v2 beta release during this period can also provide feedback on the fly, from the dashboard itself (there’s a “Give Us Feedback” link to the right of the announcement banner.) We encourage you to let us know your thoughts and ideas or if something is missing or out of sorts compared to the original.</p><blockquote><em>Until we reach a full-release, you will always be able to toggle between the two versions, so you can change back to the original dashboard to use a specific feature in the meantime should something arise.</em></blockquote><p>With this initial update, the dashboard will remain the same for the most part. However, you will notice a much faster UI, improved loading times, seamless switching between apps, and improvements to the Chat Moderation and Data Explorer screens.</p><p>Our initial goal is to achieve full feature-parity with the existing dashboard, having rebuilt everything from the ground up using React. This improvement allows the team to develop and iterate new features much faster than before, based on your feedback. We’re already lining up some exciting new additions!</p><p>We’re super excited to get the new dashboard in your hands and begin to shape the future of the <a href="https://getstream.io/">Stream</a> Dashboard experience together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95f9198c01e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/getstream-io/announcing-streams-new-dashboard-experience-95f9198c01e0">Announcing Stream’s New Dashboard Experience</a> was originally published in <a href="https://medium.com/getstream-io">Stream</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android & iOS Push Notifications with Stream Chat and React Native]]></title>
            <link>https://medium.com/@lukesmetham/android-ios-push-notifications-with-stream-chat-and-react-native-90150df00107?source=rss-e4b6f29f4b83------2</link>
            <guid isPermaLink="false">https://medium.com/p/90150df00107</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[push-notification]]></category>
            <dc:creator><![CDATA[Luke Smetham]]></dc:creator>
            <pubDate>Fri, 19 Apr 2019 16:18:00 GMT</pubDate>
            <atom:updated>2019-04-24T16:50:48.762Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3wyWdvMbzM-zPwA0qHOHOQ.png" /></figure><p>The <a href="https://getstream.io/chat">Stream Chat</a> API allows you to quickly and easily build powerful chat based applications and features — from a simple one to one messenger to building a full-scale Slack-like community. Stream Chat also supports Push Notifications out of the box and implementing them into your own React Native app is a breeze. In this tutorial, we will show you how to create a sample React Native application from scratch with native push notifications that work on both Android and iOS devices.</p><p><strong><em>Note:</em></strong><em> This tutorial is not supported in Expo applications. We need access to the native code to get the device tokens required to send push notifications for Stream Chat. If you are hoping to integrate this into an existing Expo application, you will need to eject.</em></p><p><em>If you would like to see the code for this tutorial — or even clone and follow along yourself, you can find it in this repo: </em><a href="https://github.com/GetStream/react-native-chat-example-push">https://github.com/GetStream/react-native-chat-example-push</a></p><p>First things first, make sure you’ve created an account with <a href="https://getstream.io/">Stream</a> and created an app within the dashboard.</p><p>To make things easier, we are going to disable auth so that we can easily test push messages. Please note that this only suitable for test/dev environments. While in development mode, you can go to the <strong>Chat </strong>tab in the dashboard for your app, scroll down to <strong>Chat Events </strong>and enable the toggle for <strong>Disable Auth Checks. </strong>This means<strong> </strong>we don’t need to send a valid user token — usually, we need to generate a valid user token from a server); You can find more details on generating a valid token for a production application using Stream <a href="https://getstream.io/chat/docs/#init_and_users">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*jZXOdAjIzApbzsaNoOyNPg.png" /></figure><p>Once you’re all set up, make sure you have your API key and secret in a safe spot for use later on this tutorial.</p><p>Next, initialize your new project with the <strong>react-native init chat-push-example </strong>command in your terminal. You can rename <strong>chat-push-example </strong>to whatever you would like.</p><p><strong><em>Note</em></strong><em>: if you are adding this to an existing React Native project created with Expo or CRNA, you will need to </em><a href="https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md"><em>eject</em></a><em>. Please note that this ejecting is irreversible; however, it is required to access native iOS and Android capabilities.</em></p><p>We’ll start by installing all the dependencies we need:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8417c8c08d0d493aaa39505866c3f0c/href">https://medium.com/media/d8417c8c08d0d493aaa39505866c3f0c/href</a></iframe><h3>iOS setup</h3><p>For iOS, we will be using Apple’s APN service to power the push functionality, rather than Expo or Firebase Cloud Messaging.</p><p>You also need to link <a href="https://facebook.github.io/react-native/docs/pushnotificationios">PushNotificationIOS</a> which is exported from React Native. Open <strong>Xcode</strong> and in the sidebar on the left, make sure you’re in the <strong>Project Navigator</strong> tab (the folder icon). Right click on the <strong>Libraries</strong> directory within your project name and select <strong>Add files to &lt;Project_Name_Here&gt;</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TL6Cro3TelNAcCvMZjgaQA.png" /></figure><p>A file dialog will pop-up. Navigate to the root of your project, then to your <strong>node_modules</strong> directory and to the path as shown below. Click <strong>Add.</strong></p><pre><strong><em>./node_modules/react-native/Libraries/PushNotificationsIOS/RCTPushNotification.xcodeproj</em></strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zhRvMiUHxpZIXBvzm8aWQ.png" /></figure><p>Now, click the root of your applications <strong>Xcode</strong> project in the navigator sidebar and click <strong>Build Phases</strong> in the tabs at the top of the middle pane. On the next screen, there are five dropdowns. Find the dropdown labeled <strong>Link Binaries with Libraries</strong>, expand it, and click the plus icon in the bottom left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lruW4n3WD2rdBL_JTY0HA.png" /></figure><p>Then, focus on the search box and type <strong>RCTPushNotification</strong>. You should see a file named <strong>libRCTPushNotification.a</strong> in the list. Select it and click <strong>Add</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1EbJwyV95Q4dMMgiwK6rg.png" /></figure><p>Last, add the following snippet to the bottom of your <strong>AppDelegate.m</strong> file which can be found here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*Uwzkk5sS8AMl3hqelru19w.png" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05453b1f4fb25e04adc2a111d0918f7d/href">https://medium.com/media/05453b1f4fb25e04adc2a111d0918f7d/href</a></iframe><p><strong><em>Note</em></strong><em>: This code hooks up your iOS application to React Native’s </em><a href="https://facebook.github.io/react-native/docs/pushnotificationios"><strong><em>RCTPushNotificationMananager</em></strong></a><em>, allowing us to retrieve the device token and handle push notifications in our JavaScript code.</em></p><h3>Running on Your Device</h3><p>Unfortunately, push notifications do not work in the iOS simulator, so you’re going to need a physical iOS device to be able to see the fruits of your labor. If you want to run your React Native application on a device, you’re going to have to edit the XCode project to include code signing and push capabilities.</p><p>Open up <strong>XCode</strong> and from the navigation bar on the left make sure your project is selected. Navigate to the <strong>General tab</strong> and under <strong>Signing</strong>, make sure you are logged in with your Apple Developer Account. Once logged in, select your development team and be sure to check <strong>Automatically Manage Signing</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uHb9P1RhMwqY9eeX78FWQ.png" /></figure><p>In the <strong>Genera</strong>l tab, under <strong>Identity</strong>, make sure your <strong>Bundle Identifier</strong> matches the one you used to configure push notifications with Stream. If you haven’t done this yet, please head on over to <a href="https://getstream.io/chat/docs/#push_ios">https://getstream.io/chat/docs/#push_ios</a> and then return to this tutorial.</p><p>Lastly, navigate to the <strong>Capabilities</strong> tab and make sure <strong>Push Notifications</strong> are enabled:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKIwNtfXNjSg0_j2rxVORA.png" /></figure><p>You’re all set! Plug in your iOS device, select it from the run menu in XCode and press Run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*FbXYek-bAUP0oKSeryJiPA.png" /></figure><h3>Android Setup</h3><p>For Android, we’ll be using <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> to power push notifications. So first up, you’ll need to go to the <a href="http://console.firebase.google.com/">Firebase Console</a>, create a new application OR select an existing project. Then, go to <strong>Project Settings</strong> and under the <strong>General</strong> tab. Click on <strong>Your Apps</strong>, add an Android application and download your <strong>google-services.json</strong> file — you need to put this in the root of your projects android directory.</p><p>Now make sure <strong>google-services.json </strong>file is included in your Android project’s dependencies by navigating to your project level <strong>build.gradle</strong> file (<strong>./android/build.gradle</strong>), opening it, and copying the following code into your dependencies like so:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/022bf1b166110bbde3033f4e4933e64b/href">https://medium.com/media/022bf1b166110bbde3033f4e4933e64b/href</a></iframe><p>Then, in the same directory, find the <strong>settings.gradle</strong> file and copy the following file if it isn’t already there.</p><p>Note: When you previously ran <strong>react-native link</strong>, it should have added the necessary files; however, it’s best to always double check. Linking can be temperamental at times.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/434831281f890007db09fbd307e3354d/href">https://medium.com/media/434831281f890007db09fbd307e3354d/href</a></iframe><p>Next, navigate to <strong>./android/app/src</strong> and check you have the <strong>res </strong>folder. If not, create it and inside create another folder <strong>values.</strong> Then create a new file name <strong>colours.xml</strong> whose content is the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/733a31cccb668473dc12819707595881/href">https://medium.com/media/733a31cccb668473dc12819707595881/href</a></iframe><p>Linking may have also taken care of the next step, but once again, navigate to <strong>MainApplication.java</strong> in your projects android directory within <strong>android/app/src/main</strong>.</p><p>And check it has these two parts, as highlighted with comments:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab4b9d8172ee0dcf89637be9d9e261a7/href">https://medium.com/media/ab4b9d8172ee0dcf89637be9d9e261a7/href</a></iframe><p>And last but most certainly not least — go to <strong>android/app/src/main/AndroidManifest.xml</strong> and copy the following (the comments below will help guide you for your particular setup):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df6791690a4938eeec2aff68c18742f7/href">https://medium.com/media/df6791690a4938eeec2aff68c18742f7/href</a></iframe><p>And that’s it! We’re ready to start writing some plain old React Native and booting up our Stream Chat client prepared to send Push Notifications.</p><p>Now is a good time to boot your application on your preferred platform, if you haven’t already, to check everything is going to plan without any dreaded red screens.</p><h3>Sending Push Notifications</h3><p>Thanks to <a href="https://www.npmjs.com/package/react-native-push-notifications">react-native-push-notifications</a>, we are provided a platform agnostic experience while still using native push on each platform! So first, before we send a notification, we’ll quickly hook up the Stream client.</p><p>Open your <strong>App.js</strong> file in the root of your project. Check that <strong>componentDidMount </strong>exists<strong>. </strong>If the file does not exist add an async <strong>componentDidMount</strong> method to the class.</p><p><strong><em>Note: </em></strong><em>This is where you’ll need your Stream application key from earlier. You’ll also want to generate a user token at this step if you’re not in development mode. If you are in production, see </em><a href="https://getstream.io/chat/docs/#init_and_users"><em>here</em></a>:</p><p><em>If you went with development mode, check the note in the code below, uncomment the call to </em><strong><em>changeAppSettings</em></strong><em>, and then you can pass any string value as the token.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a04c0a09ba5e678f2c9d2351c1046824/href">https://medium.com/media/a04c0a09ba5e678f2c9d2351c1046824/href</a></iframe><p>For the sake of this tutorial, we created a <strong>.env</strong> file to store these values and grab them using <a href="https://www.npmjs.com/package/react-native-dotenv">react-native-dotenv</a> as shown above — a good idea for your <strong>API_KEY</strong> in any case, but your <strong>USER_ID</strong> and <strong>USER_TOKEN</strong> will likely come from elsewhere in a real-world setting, depending on your use-case.</p><p>Now all that’s left is to hook up <a href="https://github.com/zo0r/react-native-push-notification">react-native-push-notifications</a>.</p><p>Below your <strong>client.setUser</strong> call in <strong>componentDidMount</strong>, add the following config (and remember to<strong> import PushNotification from ‘react-native-push-notification’;</strong> at the top).</p><p>Below are the iOS and Android parts respectively, however, you can use both at the same time if your application is cross-platform:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/14303324e7a0157459f1221dfa37fbb4/href">https://medium.com/media/14303324e7a0157459f1221dfa37fbb4/href</a></iframe><p>This is the bare minimum configuration to get <a href="https://www.npmjs.com/package/react-native-push-notification">react-native-push-notification</a> handling push notifications within your application. You should have a look at their <a href="https://github.com/zo0r/react-native-push-notification#readme">GitHub repo</a> for a full reference to configuration options and settings.</p><h3>Try It Out</h3><p>For this section, if your building for iOS you’ll need to plug in a real iOS device — push notifications won’t work within the simulator. However, the Android emulator <em>does</em> support push notifications — just make sure you use an emulator with Google Play Services install (shown by the Play Store Icon in the AVD Manager)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNYh7D0I5aD71o9lBj3_Fw.png" /></figure><p>If you enable the <strong>Remote JS Debugging</strong> when you boot your application, you should see the <strong>registered device with token &lt;token&gt;</strong> log appear in the console once you accept the permissions to allow notifications.</p><p>Once your device is registered, ensure sure you have the <a href="https://github.com/getstream/stream-cli">getstream-cli</a> installed and configured with your API key and secret (along with the other required arguments):</p><p><strong>$ stream config:set</strong></p><p>After the configuration is complete, you can safely run the following command in your terminal:</p><p><strong>$ stream chat:push:test</strong></p><p>First, the CLI will prompt you for the ID of the user you want to send notifications to (you can find this in your <strong>.env</strong> — or wherever you stored it from earlier) — you then leave each remaining step blank to send a default notification to the devices registered to said user. For details information on the push CLI options, see <a href="https://github.com/GetStream/stream-cli/blob/master/docs/chat.md#stream-chatpushapn">here</a>.</p><p>If all is well, you just heard a ding or a chime of some sort, and you’re notification appeared on your device. Congrats! 😎</p><p>Should you have any questions or comments about this process, please leave them in the comments below!</p><figure><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_image"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2IVAl0TbsfES9cFGYr40g.png" /></a></figure><p>📝 Read this story later in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_read_later_text">Journal</a>.</p><p>🗞 Wake up every Sunday morning to the week’s most noteworthy Tech stories, opinions, and news waiting in your inbox: <a href="https://usejournal.com/newsletter/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_text">Get the noteworthy newsletter &gt;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90150df00107" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>