Error calling getPushNotificationsAsync

Hi,

I’m seeing the following error when I call getPushNotificationsAsync:

The Expo push notification service is supported only for Expo projects. Ensure you are logged in to your Expo developer account on the computer from which you are loading your project

I am definitely logged into the computer, and the device that I’m testing on.
I’m using SDK30, as I haven’t been able to upgrade to 32 yet.

Is this a known error?

Daniel

Hey @riverford_expo_ci,

getPushNotificationsAsync is not a valid method for the Notification API. Are you wanting to call getExpoPushTokenAsync?

Cheers,

Adam

Hey @adamjnav,

Thanks for your response,
I just checked - I am using getExpoPushTokenAsync in my code.
I typed my question wrong! :derp:

Interestingly, I think the call is working in binary build, just not in the expo client on a physical device.
Any ideas or clues?

Thanks,
Daniel

Hmmmm. I haven’t heard of this occurring for other users as of now. What version of the Expo Client are you running? Also, is this happening on both iOS and Android?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.