IOS | Push Notification Sending

🚧

Make sure these steps are completed successfully:

šŸ‘

Expected result of the ā€œIOS | Push Notification Sendingā€ step:

A mobile push notification is sent from Maestra and is displayed on the device.

You can use this guide to verify that push notifications are being sent.

Enable push notifications in the app settings

  1. Open the project settings.
  2. Select the main target.
  3. Go to the Signing & Capabilities tab.
  4. Click + Capability and choose Push Notifications and Background modes;
  5. In the Background Modes section, enable the following options:
    • Background fetch
    • Remote notifications
    • Background processing

Provide your Maestra Forward Deployed Marketer with the keys required to connect to Apple Push Notification service, or add the keys yourself.


AppDelegate setup

🚧

Choose one of the options below and follow the instructions.

Basic push notification setup.

Suitable if no custom logic is required.


Custom push notification setup.

Suitable if custom logic is required.

In the Podfile, add the Mindbox iOS SDK.

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  pod 'Mindbox'
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

Then follow the instructions with the code examples below.


šŸ‘

Verify the result of the ā€œPush Notification Sendingā€ step:

A mobile push notification is sent from Maestra and is displayed on the device.

You can use this guide to verify that push notifications are being sent.

šŸ“˜

If you are testing push notifications in the Sandbox environment, make sure to enable the ā€œSandbox messageā€ option in the ā€œDefaultā€ campaign profile.

Learn more about the Sandbox environment.


UISceneDelegate support (Flutter 3.41+)

Starting with Flutter 3.41, iOS apps default to UISceneDelegate. This means app launch events and universal links no longer route through AppDelegate.

To keep the Mindbox SDK working correctly, you need to forward .launchScene and .universalLink events to the SDK from your SceneDelegate.

Next steps: