Posts

Post not yet marked as solved
0 Replies
1.1k Views
We have iOS app using PKPushRegistry notification (version 1.0) which is developed in Objective-C and it is available at AppStore.Objective-C code snippet for register PKPushRegistry : -dispatch_queue_t mainQueue = dispatch_get_main_queue(); PKPushRegistry * voipRegistry = [[PKPushRegistry alloc] initWithQueue: mainQueue]; voipRegistry.delegate = self; voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];Now we are redeveloping the app (version 2.0) from scratch in Swift 4.2Swift 4.2 code snippet for register PKPushRegistry :-self.voipRegistry = PKPushRegistry(queue:.main) self.voipRegistry?.delegate = self self.voipRegistry?.desiredPushTypes = [.voIP]Issue :-When we upgrade version 2.0 through Test Flight on top of version 1.0 App and without launch the App, when sending push notification (PKPush) from server it reaches iphone OS (Verified based on Open Console log) but PKPushRegistry call back method ( func pushRegistry (_ registry: PKPushRegistry, didUpdate pushCredentials: PKPushCredentials, for type: PKPushType) ) not gettting called.Steps / Scenerios Tried to find the root cause of this above issue :-Created sample App using PKPushRegistry in Objective-C with Version 2.0Using same above Objective-C code snippet to register PKPushRegistry.Upload into Test FlightUpgrade on top of version 1.0 (AppStore build) and without lauch the App.Sending Push Notification from Server and app getting call back method (- (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials: (PKPushCredentials *)credentials forType:(NSString *)type)Note: With the same above steps sample App developed using Swift 5 language, App not getting PKPush call back method (func pushRegistry(_ registry: PKPushRegistry, didUpdate pushCredentials: PKPushCredentials, for type: PKPushType))
Posted Last updated
.