Firebase Cloud messaging A primer

Slides:



Advertisements
Similar presentations
Module: 201 Create and Manage Your Agent Account.
Advertisements

Staying in Sync with Cloud 2 Device Messaging. About Me Chris Risner Twitter: chrisrisner.
Attie Naude 14 May 2013 Windows Azure Mobile Services.
W alkie Doggie is a web application that allows dog owners to help each other with their dog walks. It’s main feature is the walkies, which are the user’s.
Two Factor Authentication (TFA) is a 100% Open Source, free to use security system for your Joomla site’s backend. Two Factor Authentication works in.
Multi-criteria infrastructure for location-based applications Shortly known as: Localization Platform Ronen Abraham Ido Cohen Yuval Efrati Tomer Sole'
PHP Implementation. Requirements Must run on all platforms (Windows, Mac, Linux). Must be compatible with all common browsers. Must be user friendly.
School location collector
Cross Platform Mobile Backend with Mobile Services James
Google Cloud Messaging for Android (GCM) is a free service that helps developers send data from servers to their Android.
HOW-TO guide This tutorial has sound.
Montcalm Area Intermediate School District Tom Staten – Billy Willis – October 13, 2011 MAEDS Session 8D.
Cosc 5/4730 Broadcast Receiver. Broadcast receiver A broadcast receiver (short receiver) – is an Android component which allows you to register for system.
1 Tradedoubler & Mobile Mobile web & app tracking technical overview.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
DATA NOTIFICATIONS AUTH SERVER LOGIC LOGGING DIAGNOSTICS PLATFORMS: SCHEDULER SCALE.
Welcome to Azure App Services! Amie Seisay
SafeTracks Theme: Women’s Safety. Background In the last few decades, there has been an increase in women professionals in India. Globalised businesses.
Google Plus (+) Instant Upload In this section you will learn: How to Enable or Disable the Instant Upload feature for your mobile phone How to manage.
FCM Workflow using GCM.
1 Twitter Tutorial: How to create an account. New Hampshire Afterschool Network Twitter Tutorial Create a Twitter account 2 Click on your phone’s Web.
Cosc 5/4730 Android Maps v2 Blackberry Maps. Android.
Server-Side Solutions Steve Perry
Welcome to Azure App Services! Amie Seisay
Cosc 4735 Primer: Marshmallow Changes and new APIs in android 6.0 (api 23)
Intro to APACHE, MySQL, and PHP & freely available (hackable) Packages Aonghus Sugrue 04 Oct 2012.
Creating a Google Doc A Quick Photo Tutorial. Sign in to Google Docs If you don’t already have an account, sign up for one, it’s FREE.
Unit-6 Handling Sessions and Cookies. Concept of Session Session values are store in server side not in user’s machine. A session is available as long.
Gmail Password Recovery Process Find Gmail technical support for Gmail password recovery, recover Gmail password, reset Gmail password, change Gmail password,
How to configure webmail with gmail- Step by Step guide provided by web hosting company in India Call us
Windows Azure and iOS Chris Risner Windows Azure Technical Evangelist Microsoft
/16 Final Project Report By Facializer Team Final Project Report Eagle, Leo, Bessie, Five, Evan Dan, Kyle, Ben, Caleb.
Capstone Design Camera for Security App - Final Report Kim Sang Min Jeon Byeong Yong.
Training Deck Microsoft Corporation Store, sync, and share your work files.
How to Use an Android Tablet Well Come To You few Steps For How to Use an Android Tablet?
Building Azure Mobile Apps
Mobile Application Solution
Cosc 4735 Nougat API 24+ additions.
ArchPass Duo Presentation
ICE Integrated Cloud Environment Cloud Scanning and Mobile Printing
Randy Dalrymple HillyRoad, LLC
North Attleboro High School
Introduction for Families
How to use IoT in Bluemix
 Gmail is a free webmail service, developed by Google.  Gmail also supports advertising.  Users can access Gmail on the desktop, laptop or through.
REST APIs and Android Presented by: James Simshaw
Azure Mobile Services + Windows Phone 8
Outline Introduction Standards Project General Idea
Cosc 5/4730 REST services.
Two-factor authentication
Notifications and Services
Mobile Application Solution
Cloud Storage Services
An Introduction to Online Timetabling
Automated Notifications
This presentation has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational purposes.
September 2017 Example instruction slide for using web voting.
A few tricks to take you beyond the basics
Angular 2 & Firebase App TraversyMedia.com.
Send action to ARTIK device
Lesson 12.
Cosc 5/4735 Firebase.
Add to the Coffee Ordering App
Technical Integration Guide
Google Cloud Messaging (sort of)
Multi-Factor Authentication
Sessions about to start – Get your rig on!
Building Windows Store Apps with Windows Azure Mobile Services
Parent Introduction.
Notifications Lucas Simmons. Notifications Lucas Simmons.
Presentation transcript:

Firebase Cloud messaging A primer Cosc 4735 Firebase Cloud messaging A primer

Push "notifications" The basic idea here is this: We don't want the app to poll a server or other device for new messages. It's wastes time and resources (think about thousands of apps polling a server!) Wastes battery on the phones as well. Push "notifications" are sent to the phone. No polling necessary.

Basics. Register the project with firebase cloud messaging. The app will get a "token", which individual for each phone/device You then send a specific "message" to that one token or all tokens Ie one phone or all phones You can also setup groups (not covered) and send to a set of phones. You need a backend server. Can be can be Google Cloud Platform or you own REST services.

Cloud Platform. A note, we could complete the backend using Google's cloud backend (similar to what was in the google cloud messaging). https://cloud.google.com/tools/android-studio/quickstart We'll going to use our own webserver and php instead, so it's clear how the rest services are working.

First Create a project. Two ways this can be done, but both end up integrating the same thing: Via the web OR studio:

Via the web Create the project. Put you app name and country (likely already selected)

Via the Web (2) Click the add android one

either

Note We need to add more the apply just the app.

Setup First we need to get the token (and save it) Create a FirebaseInstance Service

Setup (2) We messaging service to receive the messages Where sendNotification either creates a notification or some way for the app to get the message.

The Rest The rest involves getting the devices Token, so you can send messages to them. Or sending to all. For that we need rest service to hold the "name" and token. And we can use the rest service to send the messages to the cloud as well.

Project ID To do this, we need the project ID from the cloud messaging:

Project ID (2)

The Code https://github.com/JimSeker/googleplayAPI FirebaseMessageDemo We take a look at the server side code Which is all php And then send message code for android as well.

Reference https://firebase.google.com/docs/cloud-messaging/ All the documentation and some howtos. https://www.simplifiedcoding.net/firebase-cloud-messaging-tutorial-android/ Basic howto receive a cloud message. https://www.simplifiedcoding.net/firebase-cloud-messaging-android/ Send and receive individual messages https://www.androidtutorialpoint.com/firebase/firebase-cloud-messaging-tutorial/ Sending a message again. This site has a lot more on firebase usage, including database, analysis, and authentication. https://www.androidtutorialpoint.com/firebase/firebase-android-tutorial-getting-started/ (authentication). https://cloud.google.com/tools/android-studio/quickstart Backend google cloud module, which is not covered in this lecture. But maybe useful to you.

Q A &