Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ionic Cookbook

You're reading from   Ionic Cookbook Recipes to create cutting-edge, real-time hybrid mobile apps with Ionic

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher
ISBN-13 9781788623230
Length 390 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Indermohan Singh Indermohan Singh
Author Profile Icon Indermohan Singh
Indermohan Singh
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Creating Our First App with Ionic 2. Adding Ionic Components FREE CHAPTER 3. Extending Ionic with Angular Building Blocks 4. Validating Forms and Making HTTP Requests 5. Adding Animation 6. User Authentication and Push Notifications 7. Supporting Device Functionalities Using Ionic Native 8. Theming the App 9. Advanced Topics 10. Publishing the App for Different Platforms 11. Other Books You May Enjoy

Building an Android app to receive push notifications

A push notification works in the same way as iOS for Google; however, instead of using the Apple Notification Service, you will be working through the FCM server, which is a new replacement for Google Cloud Messaging (GCM). However, OneSignal abstracts this process so that you don't have to code using a different API. You will be using the same push object as for the iOS app.

For more information about the differences between FCM and GCM, visit the FAQs at https://firebase.google.com/support/faq.

In this section, you will learn how to do the following things:

  • Set up OneSignal for Android push notification
  • Configure the Firebase project for the push API
  • Write code to receive push notifications on Android

You will be using the same code base as your iOS push notification example. The main difference is the process to set...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime