FirebaseMessagingService
method onNewToken
:getDeviceID()
is your method to obtain the Android ID which will be your unique identifier. Pay attention to the changes Oreo makes to this data, refer to this documentation. Now your device is ready to receive push messages with your FirebaseMessagingService
method onMessageReceived
, but if you need to differentiate push groups you may need to use topics.