Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9dddd58

Browse files
committed
MBX-3601: Update Example App
1 parent 761b027 commit 9dddd58

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

example/flutter_example/ios/MindboxNotificationServiceExtension/NotificationService.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import UserNotifications
99
import MindboxNotifications
10-
import Mindbox
1110

1211
class NotificationService: UNNotificationServiceExtension {
1312

@@ -27,7 +26,7 @@ class NotificationService: UNNotificationServiceExtension {
2726

2827
// We use UserDefaults to save push data for example purposes only. Don't use this solution for yourself
2928
func saveNotification(request: UNNotificationRequest) {
30-
guard let pushData = Mindbox.shared.getMindboxPushData(userInfo: request.content.userInfo) else {
29+
guard let pushData = mindboxService.getMindboxPushData(userInfo: request.content.userInfo) else {
3130
print("Failed to get Mindbox push data")
3231
return
3332
}

example/flutter_example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,6 @@
950950
"$(inherited)",
951951
"\"${PODS_CONFIGURATION_BUILD_DIR}/MindboxLogger\"",
952952
"\"${PODS_CONFIGURATION_BUILD_DIR}/MindboxNotifications\"",
953-
"\"${PODS_CONFIGURATION_BUILD_DIR}/Mindbox\"",
954953
);
955954
GCC_C_LANGUAGE_STANDARD = gnu17;
956955
GENERATE_INFOPLIST_FILE = YES;
@@ -1005,7 +1004,6 @@
10051004
"$(inherited)",
10061005
"\"${PODS_CONFIGURATION_BUILD_DIR}/MindboxLogger\"",
10071006
"\"${PODS_CONFIGURATION_BUILD_DIR}/MindboxNotifications\"",
1008-
"\"${PODS_CONFIGURATION_BUILD_DIR}/Mindbox\"",
10091007
);
10101008
GCC_C_LANGUAGE_STANDARD = gnu17;
10111009
GENERATE_INFOPLIST_FILE = YES;
@@ -1058,7 +1056,6 @@
10581056
"$(inherited)",
10591057
"\"${PODS_CONFIGURATION_BUILD_DIR}/MindboxLogger\"",
10601058
"\"${PODS_CONFIGURATION_BUILD_DIR}/MindboxNotifications\"",
1061-
"\"${PODS_CONFIGURATION_BUILD_DIR}/Mindbox\"",
10621059
);
10631060
GCC_C_LANGUAGE_STANDARD = gnu17;
10641061
GENERATE_INFOPLIST_FILE = YES;

example/flutter_example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import UserNotifications
6565

6666
override func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
6767
//Implement display of standard notifications
68-
completionHandler([.alert, .badge, .sound])
68+
completionHandler([.list, .badge, .sound, .banner])
6969
notifyFlutterNewData()
7070
}
7171

0 commit comments

Comments
 (0)