Recently I needed a simple mobile app to test my simple push notifications service. In my case it was a Android app receiving notifications from Firebase Cloud Messaging.
In this article I’m going to share my experience with you. I’ll show you how you can create your own simple Ionic 4 Android app and integrate it with FCM service.
But first of all I’m going to start with disclaimers:
- Please remember that this is only simple starter example. To make sure your notifications behaving properly you have to store user subscriptions somewhere (for example in Firebase or local storage).
- This article doesn’t cover iOS platform but it’s possible to use FCM as your push notifications provider in iOS apps.
We’d like our app to have following features:
- store devices tokens in Firebase database
- overall push notifications receiving
- topic-based push notifications subscription / unsubscription