Skip to content

How To Get Current FCM Token? #895

Discussion options

You must be logged in to vote

Please try to look at the source code before asking questions like this. You don't have to dig far at all to get this answer.

var pushManager = ShinyHost.Resolve<IPushManager>();
var result = await pushManager.RequestAccess();
if (result.Status == AccessStatus.Available) {
    result.RegistrationToken //<= firebase token
}

// OR

pushManager.CurrentRegistrationToken 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MichaelRodrigueess0s1
Comment options

Answer selected by MichaelRodrigueess0s1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants