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
});
}
}