Hey for some reason I receive push token on all my Android devices and not iOs. I’ve tested on multiple iOs devices, but no luck.
This is my code:
import {Permissions, Notifications} from 'expo';
async registerForPushNotificationsAsync() {
let { status } = await Permissions.askAsync(Permissions.NOTIFICATIONS);
if (status !== "granted") {
return;
}
let token = await Notifications.getExpoPushTokenAsync();
console.log(token);