From 8de4269ed3e8ef2032fa7fb7851dc8aae32117c6 Mon Sep 17 00:00:00 2001 From: Sergei Semko <28645140+justSmK@users.noreply.github.com> Date: Wed, 18 Nov 2026 22:11:13 +0300 Subject: [PATCH] MOBILESUPPORT-434: Register the example AppDelegate in APNs on launch The UISceneDelegate migration dropped the launch-time registration from the AppDelegate variant that does not inherit MindboxFlutterAppDelegate, leaving it to permission_handler, which registers only on the first grant. After a denial later reversed in Settings, or a restore onto a new device, no token reached the SDK. --- example/flutter_example/ios/Runner/AppDelegate.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/flutter_example/ios/Runner/AppDelegate.swift b/example/flutter_example/ios/Runner/AppDelegate.swift index aa7c32eb..6803209f 100644 --- a/example/flutter_example/ios/Runner/AppDelegate.swift +++ b/example/flutter_example/ios/Runner/AppDelegate.swift @@ -18,6 +18,9 @@ import UserNotifications UNUserNotificationCenter.current().delegate = self + // registering in APNs on every launch to receive the device token + UIApplication.shared.registerForRemoteNotifications() + // tracking sources of referrals to the application via push notifications Mindbox.shared.track(.launch(launchOptions))