question

Meral avatar image
Meral asked

push notification

PushToken comes empty for "AndroidDevicePushNotificationRegistrationRequest" method in Android.

"OnTokenReceived" don't work. Please help me.

Push Notifications
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Can you share your code? And, what do you mean by saying '' 'OnTokenReceived' don't work" ? Do you mean that it never got executed or something else?

6 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Meral avatar image Meral commented ·

token that return from "OnTokenReceived" method comes empty.

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Meral commented ·

Please correct me if I were wrong, I think the token is received from the Firebase Message Module like this code did, could you please check the Firebase settings to see if there were something wrong?

0 Likes 0 ·
Meral avatar image Meral commented ·

Yes, as in the code you said.

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Meral commented ·

The token is received from the Firebase Message Module, could you please check the Firebase settings to see if there were something wrong?

0 Likes 0 ·
Meral avatar image Meral commented ·

"Push Notification" does not become active for users.

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Meral commented ·

You must first retrieve that token before it becomes active for users.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.