How To Get Current FCM Token? #895
Answered
by
aritchie
MichaelRodrigueess0s1
asked this question in
Q&A
-
Hello guys, has a way to get to get current FMC deviceId using shiny.firebase? because i need send a push notification to specifics devices. |
Beta Was this translation helpful? Give feedback.
Answered by
aritchie
Jan 30, 2022
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MichaelRodrigueess0s1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.