Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any],
- fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
- // Print message ID.
- if let messageID = userInfo[gcmMessageIDKey] {
- print("Message ID: (messageID)")
- }
- // Print full message.
- print(userInfo)
- completionHandler(UIBackgroundFetchResult.newData)
- }
- -- cordova 9.0.0
- -- swift 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement