Add Onesignal to Project

Open Your Flutter Ios Folder in Xcode.

  • Create New Target.

  • Select Notification Extension and Name It OneSignalNotificationServiceExtension

  • Press Cancel on the Activate Scheme prompt

  • In your project, in the OneSignalNotificationServiceExtension/ folder, open NotificationService.m and replace the whole file contents with:

  • In the main app target, select Signing & Capabilities > All > + Capability, enable Push Notifications.

  • Next, enable Background Modes and check Remote Notifications.

Last updated

Was this helpful?