Android Question B4A android FCM token and bearer token mismatch

nur

Member
hello everyone

I'm sending notification to the android phone with the FCM token. But with firebase v1 google credential is updated. The B4A FCM token is not updated. So I get the code 404. But for the first half hour I was sending notification with code 200. Notifications are sent to the device with "topic". But I want to send a private notification. I get 200 status from "https://iid.googleapis.com/iid/info/token/e6iBBYImu......" for Android token. But when I post with v1 I get 404. Please help me how to solve this problem.
 

Attachments

  • fcm.jpg
    127.5 KB · Views: 43

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

nur

Member
My notification sending application is a c# service application. I am testing with postman. I can send general notifications to my Android device with the same token as shown in the picture. However, I cannot send special notifications to that device with the FCM service token in B4A. I get a 404 error. I cannot create a new token in the FCM service. How can I fix this?
 
Upvote 0

nur

Member
Thanks. I tried with b4j. It seems that notifications are being sent with Topic. But, even though there is permission on the device, notifications are not coming. I did not try with Token. What could be causing the problem?
 
Upvote 0

nur

Member
I'm sure I followed the instructions. I'm getting a 404 error with the token. The notification is not reaching the device with the Topic. I'm sure the tokens are in the same project. What am I missing?
 
Upvote 0

ddefrain

Member
Licensed User
Longtime User
You need to create a new bearer everytime you send an FCM, it lasts only one hour for security reasons
Check this out
Sending FCM C#
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…