I was implementing time sensitive (remote) push notifications for my app. Which works when I delete the previous version and install the new version. However, it does not work when updating the app from the older version to the newer one which supports time sensitive notifications.
I have enabled Time Sensitive Notifications in the developer console and the entitlement file looks like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.usernotifications.time-sensitive</key>
<true/>
</dict>
</plist>
This is the content of the notification
{"aps":{"alert":"Reward", "sound": "default", "interruption-level": "time-sensitive"}, "type": "reward", "rewardText": "Cool dude", "rewardPoints": 200}
Anyone got an idea?