12.1 & 12.2 issues

I am trying to figure out the following issue with newer ios versions ios 12.1 and above.

This is the closest I can get to the issue and need any help understanding this.

The code below is executed in my AppDelegate and basically hangs after leaving this function exists.

I get assembler execution at that point and cannot understand what is causing the issue.

prior versions of the IOS work fine pre ios 12.1.


Any help would be appreciated.....




func applicationDidBecomeActive(_ application: UIApplication) {

PushManager.applicationDidBecomeActive(application)

if backgroundTask == UIBackgroundTaskIdentifier.invalid {

backgroundTask = UIApplication.shared.beginBackgroundTask( expirationHandler: { [weak self] in

guard let pSelf = self else {

return

}

UIApplication.shared.endBackgroundTask(pSelf.backgroundTask)

pSelf.backgroundTask = UIBackgroundTaskIdentifier.invalid

});

}

}

Replies

What is PushManager ?


I do not find it in documentation.


Seems you posted already this question in another section of the forum. Please avoid doing so.

Yes, I realized after I had posted prior and thought the prior time never was posted. I cannot remove at this point or I would.

THIS IS A DUPLICATE QUESTION AND THIS THREAD SHOULD NOT BE FOLLOWED.

>I cannot remove at this point or I would.


For future reference...


Thanks.


Could you please close the thread on your own last message ?