The PW_DeviceRegistered event triggers only when a device first registers with the Pushwoosh server. This prevents duplicate registration logs during the lifecycle of a device.
When you delete and reinstall an app, the SDK often finds the original Hardware ID (HWID) in the system storage.
- On iOS, the HWID stays in the Keychain even after you remove the app.
- On Android, the system can restore the HWID through the Auto-Backup feature.
Since the SDK recognizes the device as one that is already on file, it does not send the registration event a second time.
To test flows meant for new users, use a simulator or emulator and wipe the instance data. You can also reset a physical phone to factory settings to clear the stored HWID. If you need to test logic repeatedly without resetting hardware, change your trigger to PWApplicationOpen during your testing phase and revert to PWDeviceRegistered before you go live.
Comments
0 comments
Please sign in to leave a comment.