Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit 14687f2

Browse files
committed
Add foreground notifications on iOS
1 parent fa85037 commit 14687f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ In `AppDelegate.m`, start Batch:
147147
* If you use Firebase or another framework swizzling your AppDelegate, follow the [manual integration](https://doc.batch.com/ios/advanced/manual-integration) guide
148148
* Otherwise, add `[BatchUNUserNotificationCenterDelegate registerAsDelegate];` after the `[RNBatch start:false];` call in your `AppDelegate.m`
149149

150+
If you want to show foreground notifications, add the [relevant configuration](https://doc.batch.com/ios/advanced/customizing-notifications#showing-foreground-notifications-ios-10-only): `[BatchUNUserNotificationCenterDelegate sharedInstance].showForegroundNotifications = true;` after registering the delegate .
151+
150152
<hr>
151153

152154
## Usage

0 commit comments

Comments
 (0)