Skip to content

Commit 4c43bee

Browse files
authored
MOBILE-222: Align flutter example App Group ID so NC shows real pushes (#200)
The NSE suiteName and push_item_manager.dart appGroupID used group.cloud.Mindbox.cloud.mindbox.flutterExample — the App Group of the old bundle id (cloud.mindbox.flutterExample) — while the Runner/NSE/NCE entitlements use group.cloud.Mindbox.mindbox.Flutter.Example for the current bundle id (mindbox.Flutter.Example). The processes weren't entitled to their suiteName, so the shared container was empty and the notification centre showed stubs instead of received pushes. Point both at the entitled group.
1 parent 74ad8a8 commit 4c43bee

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

example/flutter_example/ios/MindboxNotificationServiceExtension/NotificationService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MindboxNotifications
1010

1111
class NotificationService: UNNotificationServiceExtension {
1212

13-
static let suiteName = "group.cloud.Mindbox.cloud.mindbox.flutterExample"
13+
static let suiteName = "group.cloud.Mindbox.mindbox.Flutter.Example"
1414
lazy var mindboxService = MindboxNotificationService()
1515

1616
override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {

example/flutter_example/lib/view/managers/push_item_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ItemsManager {
4747
}
4848
}
4949
static const int removeStartIndex = 3;
50-
static const appGroupID = 'group.cloud.Mindbox.cloud.mindbox.flutterExample';
50+
static const appGroupID = 'group.cloud.Mindbox.mindbox.Flutter.Example';
5151
ValueNotifier<List<MindboxRemoteMessage>> itemsNotifier;
5252

5353

0 commit comments

Comments
 (0)