From 067b523b0e96a3891b1685e8af8b37ec00ac8610 Mon Sep 17 00:00:00 2001 From: Arnaud Roland Date: Thu, 7 Nov 2024 16:26:55 +0100 Subject: [PATCH] all: update changelog --- CHANGELOG.md | 6 ++++++ .../src/ios/interop/BatchBridgeNotificationCenterDelegate.h | 2 +- .../src/ios/interop/BatchBridgeNotificationCenterDelegate.m | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03b3424..e227f7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ Batch Cordova Plugin +## UPCOMING + +**iOS** +* `BatchBridgeNotificationCenterDelegate` now defaults to showing foreground notifications. + + ## 6.0.0 This is a major release, please see our [migration guide](https://doc.batch.com/cordova/migrations/5x-migration/) for more info on how to update your current Batch implementation. diff --git a/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.h b/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.h index b7a0918..6532ada 100644 --- a/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.h +++ b/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.h @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN + (void)registerAsDelegate; /// Should iOS display notifications even if the app is in foreground? -/// Default: false +/// Default: true @property (assign) BOOL showForegroundNotifications; /// Should Batch use the chained delegate's completionHandler responses or force its own, while still calling the chained delegate. diff --git a/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.m b/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.m index eddf34a..57f9eed 100644 --- a/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.m +++ b/dist/src/ios/interop/BatchBridgeNotificationCenterDelegate.m @@ -77,7 +77,7 @@ - (instancetype)init { self = [super init]; if (self) { - _showForegroundNotifications = false; + _showForegroundNotifications = true; _shouldUseChainedCompletionHandlerResponse = true; _isBatchReady = false; _enqueuedNotificationResponses = [NSMutableArray new];