kamil_k
kamil_k

Reputation: 164

APNS handle obtained by Expo in React Native is incorrect

EXPO SDK Version: 42.0.01 Developing for: iOS

Our goal: successfully send a test notification from Test Send tool in Azure Notification Hub to a registered physical iPhone which is running a local instance of an EXPO app.

Progress: we're able to successfully register a physical iPhone with Azure Notification Hub without using a 3rd party library. We can see that registration in the Hub.

Issues: when using the Azure's Test Send tool we're getting an error "The Push Notification System handle for the registration is invalid" and the test notification does not get delivered.

Debugging:

I haven't found any tools to validate the APNS handle. I'm currently awaiting a .p12 certificate from our corporate team to test notifications by using https://pushtry.com/.

How do we validate the APNS handle and if found that it's invalid - how do we cycle it / request another?

Upvotes: 3

Views: 723

Answers (2)

CPJ
CPJ

Reputation: 138

In my case i built my app without creating an push key on the first time.

Try running: eas credentials > Add a new push key > Do you want [slug name] to use the new Push Key > YES

Upvotes: 0

Matthew Podwysocki
Matthew Podwysocki

Reputation: 369

The PNS Handle from APNs does not change that often as it is tied to the device and app installation. See this answer for more details Does the APNS device token ever change, once created?

Upvotes: 0

Related Questions