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) {
- let status = UIApplication.shared.applicationState
- print("receive silent notification in \(status.rawValue)")
- completionHandler(.newData)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement