Skip to content

Commit 254e6b7

Browse files
committed
Call completion handler when receiving a remote notification in example app
1 parent 03c1f30 commit 254e6b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

iOS Example Swift/iOS Example Swift/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3737

3838
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
3939
print(userInfo)
40+
completionHandler(.newData) // indicates that new data was successfully fetched
4041
}
4142

4243
func applicationWillResignActive(_ application: UIApplication) {

0 commit comments

Comments
 (0)