This is hard question. )
Every time when we installing app, we get DeviceID for backend, they send to us Pushes with this information. So we using
var deviceId = UIDevice.current.identifierForVendor?.uuidString
When user install our app on another device, we got new deviceID, so user got 2 deviceID and 2 pushes will be send for 1 action.
Next step, if our user deleting app from phone, and after this reinstalled, our app get new deviceID for the same user last paragraph Apple. So backend now got 3 deviceID but only on 2 devices. Backend thinking that user just enter on new device, but this is wrong, and now with 1 push from backed we receive 1 push for second device, and 2 similar pushes for first one. If user reinstall our app 10 times, this means that he will receive 1 push 10 times. because we got 10 different deviceID. So, can somebody explain how to do this correct, or can somebody share with any additional information) We receive notification in
- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
This is standard Notifications from Apple Notification Center. Thanks a lot! Plus, please can somebody help with other my questions: Set delay for receive notifications and load app swift
Maybe anybody can help with information for our backend developer.