Expo notifications

Hi, all I deleted all certificates on mac and developer. I re generate new files and upload new version. I can get expo tokens but there is no notification. Do you know the process for revoked certificates. I’m using expo not detached … Thanks.

Hey @veyselkoru,

Do you receive any error when sending/receiving the push notifications? Maybe try checking the push receipts

1 Like

Nope. there is not an error. also there is a success message it returns.
You can see my request mentioned below. I can get expo push token successfully. But can not recive a push alert.

“to”: “ExponentPushToken[NL-06JF7ZLWIYDry1h1_]”,
“title”: “Title of the Notification”,
“body”: “Body of your Notification”

“data”: {
“status”: “ok”,
“id”: “3fa9cbf8-de6c-4744-b737-722126cb1201”

Thanks for information about push receipts. We saw an error when we check receipts. It was about p8 file for notification. We regenerate it and upload. Not it is working.

These are response of receipts query maybe someone need it:

        "status": "error",
        "message": "The Apple Push Notification service key for your account could not be loaded, likely due to a malformed p8 file. Expo needs a valid PEM key in order to deliver notifications to APNs.",
        "details": {
            "error": "InvalidCredentials",
            "sentAt": 1555918469
        "__debug": {
            "internalError": "Failed to generate token: error:0906D06C:PEM routines:PEM_read_bio:no start line"

On apple developer center, re-create a key from keys menu. You can download it only once. Save it on mac for next projects. Then expo build-ios -c and next expo upload-ios If you choice p8 file on build everything will be OK.

Thanks for your assistances.

1 Like

To demonstrate notifications, we will use Create React Native App, easily installable via yarn or npm. The following directions are paraphrased from their excellent getting started tutorial. Run either npm install -g create-react-native-app or yarn global add create-react-native-app mcdvoice survey