-
-
Save skydoves/e953e1ba1035e5ab1ac176cf4e616588 to your computer and use it in GitHub Desktop.
my_service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyService: FirebaseMessagingService() { | |
| override fun onNewToken(token: String) { | |
| super.onNewToken(token) | |
| // If you want to send messages to this application instance or | |
| // manage this apps subscriptions on the server side, send the | |
| // FCM registration token to your app server. | |
| sendRegistrationToServer(token) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment