Add Onesignal to Project
Open Your Flutter Ios Folder in Xcode.
Create New Target.
Select Notification Extension and Name It OneSignalNotificationServiceExtension
Press
Cancel
on theActivate Scheme
prompt
In your project, in the
OneSignalNotificationServiceExtension/
folder, openNotificationService.m
and replace the whole file contents with:
NotificationService.Swift
In the main app target, select Signing & Capabilities > All > + Capability, enable Push Notifications.
Next, enable Background Modes and check Remote Notifications.
Last updated