0

I am using a web application that receives notificaitons throught push service.

the notifications are going to send throught the FCM. My backend requires deviceId as in android OS. How can send such unique id that make user device or browser specific?

3
  • Do you mean the device token, which is the only thing FCM needs to send a message to the device. If so, see firebase.google.com/docs/cloud-messaging/js/… Commented Jan 27, 2024 at 15:08
  • No. for example at Android devices, for making device specific, developer can obtain the deviceId. I am looking for getting deviceId in a webApplication. Is it possible? Commented Jan 27, 2024 at 17:57
  • 1
    FCM tokens are globally unique, and thus each device already gets a unique token. If that isn't what you want, the problems seems unrelated to FCM. In that case, a search for 'javascript get device id' gives relevant results. There seems to be no direct API for this, but you can generate and store a UUID - although at that point, I'm not sure why you wouldn't use the FCM token. Commented Jan 27, 2024 at 20:43

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.