Skip to content

Commit e8c8585

Browse files
authored
Merge pull request #1111 from firebase/fcm
Exclude iOS 9 method from snippet
2 parents 399d9d2 + bb6364a commit e8c8585

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

messaging/MessagingExample/AppDelegate.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ - (BOOL)application:(UIApplication *)application
6565
return YES;
6666
}
6767

68-
// [START receive_message]
6968
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
7069
// If you are receiving a notification message while your app is in the background,
7170
// this callback will not be fired till the user taps on the notification launching the application.
@@ -83,6 +82,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
8382
NSLog(@"%@", userInfo);
8483
}
8584

85+
// [START receive_message]
8686
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
8787
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
8888
// If you are receiving a notification message while your app is in the background,

messaging/MessagingExampleSwift/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5858
return true
5959
}
6060

61-
// [START receive_message]
6261
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
6362
// If you are receiving a notification message while your app is in the background,
6463
// this callback will not be fired till the user taps on the notification launching the application.
@@ -76,6 +75,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7675
print(userInfo)
7776
}
7877

78+
// [START receive_message]
7979
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any],
8080
fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
8181
// If you are receiving a notification message while your app is in the background,

messaging/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ SPEC CHECKSUMS:
113113

114114
PODFILE CHECKSUM: cb05c6a135b4dd51af6f4fef875e7004965ad0ce
115115

116-
COCOAPODS: 1.10.1
116+
COCOAPODS: 1.9.3

0 commit comments

Comments
 (0)