Skip to content

Instantly share code, notes, and snippets.

@aditrioka
Created August 9, 2019 09:10
Show Gist options
  • Save aditrioka/40cab37bdb8033cef91a894caa74e986 to your computer and use it in GitHub Desktop.
Save aditrioka/40cab37bdb8033cef91a894caa74e986 to your computer and use it in GitHub Desktop.
token received listener class
// we created this class to listen to token received
class TokenReceivedListener(private val context: Context): PushManager.OnTokenReceivedListener {
private val TAG = TokenReceivedListener::class.java.simpleName
override fun onTokenReceived(token: String?) {
token?.let {
// future implementation
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment