79340676

Date: 2025-01-08 20:33:39
Score: 1
Natty:
Report link

I think you need to pull the .data property off the returned promise:

const token = (await Notification.getDeviceTokenPushAsync()).data;

On Android, that will return an FCM token that you can send notifications through FCM. HOwever, on iOS this returns the APN device token, which cannot be used with FCM.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mike Smith