This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { | |
if (!ABKPushUtils.isAppboyInternalRemoteNotification(userInfo)) { | |
Appboy.sharedInstance()?.register(application, didReceiveRemoteNotification: userInfo, fetchCompletionHandler: completionHandler) | |
switch application.applicationState { | |
case .active: | |
handlePushWhileInApp(userInfo as NSDictionary) | |
case .inactive, .background: |