I’ve been trawling the Internet all morning and have tried a number of things including but not limited to:
Revoking all certificates, profiles + keys from the developer portal and the CLI
Getting Expo to manage the certificates, profiles + keys
Generating my own certificates, profiles + keys and uploading them through the CLI
Following all of the guides and other forum posts I’ve come across
But still, whilst running my application through the Expo client app and using the notification test tool and trying to send one, I get this error message:
InvalidCredentials: Could not find APNs credentials for host.exp.Exponent (######). Check whether you are trying to send a notification to a detached app. If not, you may need to clear your push credentials and regenerate or upload new ones.
I would really appreciate some guidance as to what to do here, I was testing last night and everything seemed to be working fine - but this morning, no dice. It’s worth mentioning too that I have published to TestFlight (but before this issue started happening). But I’m experiencing the problem whilst running the app in development mode through the Expo Client, and haven’t tried publishing a new version with notifications enabled to TestFlight just yet, as I can’t get it working locally.
Also worth noting that I am testing on a physical device, not the simulator.
But I haven’t build any standalone app. I’m working only in development mode.
I’ve tried to uninstall de Expo Client to get a new Push Token but didn’t work either.
Everything was working fine until yesterday (around Oct 31, 2019, 18:54:35 GMT-3).
@adamjnav, any update on this issue? I was checking the status and it says the ‘Elevated Error Rate’ incident has been resolved but I’m still getting the same response.
InvalidCredentials: Could not find APNs credentials for host.exp.Exponent (######). Check whether you are trying to send a notification to a detached app. If not, you may need to clear your push credentials and regenerate or upload new ones.
I have tried resetting my credentials with expo build:ios -c and still getting the same result.
"data": {
"status": "error",
"message": "Could not find APNs credentials for host.exp.Exponent (@snaxa/Test). Check whether you are trying to send a notification to a detached app. If not, you may need to clear your push credentials and regenerate or upload new ones.",
"details": {
"error": "InvalidCredentials"
}
}
Exactly the same issue as @chrisdengso and @snax4a and i’m sure everyone else here.
Notifications for me are working with Android however this is the error I get when trying to use push notifications with IOS. Done every possible thing i’ve read online through my apple developers account, resettings the build etc, and still the same exact error persists every time.
Just FYI to all, if I catch the PushResponseError exception, users are getting the notifications. Granted not best practice, but might be a holdover for people while we await a solution to the error.
Edit: I’m using the python exponent_server_sdk, for what it’s worth.