import NotifKit
SwiftyLaunch Version 1.2+
Routing Push Notifications to In-App Notifications
You can easily route Push Notifications to In-App Notifications when the application is open by including following parameters in your notifications payload in OneSignal:
inAppSymbol
- SF Symbol of the notification. Refer to the SF Symbols App (opens in a new tab) for the list of available symbols.inAppColor
- The color of the in-app notification icon (in HEX Format).inAppSize
- (Optional) The size of the displayed in-app notification.compact
ornormal
. (Defaults tonormal
)inAppHaptics
- (Optional) The haptics that will be triggered when the in-app notification is shown.success
,error
orwarning
(Defaults towarning
). Refer to the Haptics Documentation for more information.
⚠️
To show an in-app notification you must include a Notification Title,
Message, inAppSymbol
and inAppColor
in your push notification payload.