Push: Double-Check Push ID of App

Originator:tobias.banaszak
Number:rdar://24203195 Date Originated:15-Jan-2016 08:34 AM
Status:open Resolved:
Product:iOS Product Version:
Classification:Bug Reproducible:always
 
Summary:
There is a way to produce zombie-records in your database of push-ids what results in receiving push messages in one app via two push ids.

Steps to Reproduce:
- Create an app with push-notifications enabled. 
- do an ad-hoc-distribution onto a device. let the app register the device at your APNS. write down the push-id.
- remove the app and install an App-Store-Build of the same app with the same app-id.
- register the app and the devuce at your APNS and write down this push-id. 

send a push to both of the push-ids

Expected Results:
only the push message of the currently installed app should be delivered (in this case: the app store-version). the push message with the ad-hoc-build-pushId should not be delivered, because the app is not installed anymore

Actual Results:
Both messages are delivered. I guess the iOS just checks for app-id. It does not check if the push-id is still valid.

Version:
iOS 9.2 13C75

Notes:


Configuration:
iOS 9, iPhone 6,

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!