Notifications are important! I can’t recall using an app that didn’t have notifications excluding, of course, those apps that don’t serve a purpose like these. Notifications play a vital role in your app success. They give you a platform to reach out to your users, interact with them, give them updates, update the app data and much more. While notification is an important part of the whole app development process, it somehow is typical to integrate as compared to the normal android apis. The reason? Well, while normal apis need configuration inside the app only, notifications need more than that — outside configuration like handling user tokens, and sending notifications using those tokens.
String token = FirebaseInstanceId.getInstance().getToken();