Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any],
  2. fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
  3.  
  4. // Print message ID.
  5. if let messageID = userInfo[gcmMessageIDKey] {
  6. print("Message ID: (messageID)")
  7. }
  8.  
  9. // Print full message.
  10. print(userInfo)
  11.  
  12. completionHandler(UIBackgroundFetchResult.newData)
  13. }
  14.  
  15. -- cordova 9.0.0
  16. -- swift 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement