@Mahalakshmi To re-register devices in Azure Notification Hub and send push notifications to old passes in the Apple Wallet, you can follow these steps:
- Device Registration: Device registration with a Notification Hub is accomplished using a Registration or Installation. A registration associates the Platform Notification Service (PNS) handle for a device with tags and possibly a template. The PNS handle could be a ChannelURI, or device token registration ID.
- Installations: An Installation is an enhanced registration that includes a bag of push related properties. It is the latest and best approach to registering your devices using the server-side .NET SDK. You can also use the Notification Hubs REST API approach to register installations on the client device itself.
- Backend Endpoint: Assuming you are storing the ‘old’ token on the device, you have to implement the following logic in the backend: An endpoint that takes two parameters: ‘oldToken’, ‘newToken’. This basically, either creates a new registration (change template/native or tags as needed) or updates the current one.
- Check Active Devices: Connect to Azure from Server Explorer, find Notification Hub section, select your hub. On the right side, you will see two tabs: Test Send and Device Registration. On Device Registration tab, you will see a list of registrations. You can edit or delete them.
Please note that these steps are a high-level guide. For detailed instructions, you may want to refer to the official Microsoft Learn documentation and the tutorial on setting up your iOS app to work with Azure Notification Hubs. If you’ve followed these steps and are still experiencing issues, it might be due to a variety of factors such as changes in the device token, issues with the PNS, or problems with the Notification Hub. It’s recommended to check the debug logs.