Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 49619e8

Browse files
author
Boris Tacyniak
authored
Update README.md
1 parent 86d562e commit 49619e8

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,6 @@ Having a problem? Read the [troubleshooting](./trouble-shooting.md) guide before
5858

5959
The component uses PushNotificationIOS for the iOS part. You should follow their [installation instructions](https://github.com/react-native-community/react-native-push-notification-ios).
6060

61-
When done, modify the following method in the file `AppDelegate.m`:
62-
```objective-c
63-
// Called when a notification is delivered to a foreground app.
64-
-(void)userNotificationCenter:(UNUserNotificationCenter *)center
65-
willPresentNotification:(UNNotification *)notification
66-
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
67-
{
68-
// Still call the JS onNotification handler so it can display the new message right away
69-
NSDictionary *userInfo = notification.request.content.userInfo;
70-
[RNCPushNotificationIOS didReceiveRemoteNotification:userInfo
71-
fetchCompletionHandler:^void (UIBackgroundFetchResult result){}];
72-
73-
// allow showing foreground notifications
74-
completionHandler(UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge);
75-
// or if you wish to hide all notification while in foreground replace it with
76-
// completionHandler(UNNotificationPresentationOptionNone);
77-
}
78-
```
79-
8061
## Android manual Installation
8162

8263
**NOTE: `firebase-messaging`, prior to version 15 requires to have the same version number in order to work correctly at build time and at run time. To use a specific version:**

0 commit comments

Comments
 (0)