Hi all,
I'm using SwiftUI 2 and I need to receive a callback in my app:
I'm putting this in my @main App struct:
The problem is that only willFinishLaunchingWithOptions and didFinishLaunchingWithOptions get called. The rest just don't get called at all. I'm fine with the other as there are modifiers to replace, but there is nothing for the APN token callback.
I'm stuck here.
Any help is much appreciated. Thanks
I'm using SwiftUI 2 and I need to receive a callback in my app:
Code Block didRegisterForRemoteNotificationsWithDeviceToken
I'm putting this in my @main App struct:
Code Block @UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
The problem is that only willFinishLaunchingWithOptions and didFinishLaunchingWithOptions get called. The rest just don't get called at all. I'm fine with the other as there are modifiers to replace, but there is nothing for the APN token callback.
I'm stuck here.
Any help is much appreciated. Thanks