Ios

data class Ios(val showPushNotification: Boolean = true, val askNotificationPermissionOnStart: Boolean = true, val notificationSoundName: String? = null) : NotificationPlatformConfiguration

Ios notification customization.

Parameters

showPushNotification

Default value is true, by default when push notification is received it will be shown to user. When set to false, it will not be shown to user, but you can still get notification content using

askNotificationPermissionOnStart

Default value is true, when library is initialized it will ask notification permission automatically from the user. By setting askNotificationPermissionOnStart false, you can customize to ask permission whenever you want.

notificationSoundName

Custom notification sound name. Default value is null. If set null, default notification sound will be played. Place the file in the Resources directory of your iOS target. Ensure the file is added to your target's "Build Phases" under "Copy Bundle Resources".

See also

Constructors

Link copied to clipboard
constructor(showPushNotification: Boolean = true, askNotificationPermissionOnStart: Boolean = true, notificationSoundName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard