addPushNotificationsOnChannels
expect abstract fun addPushNotificationsOnChannels(pushType: PNPushType, channels: List<String>, deviceId: String, topic: String? = null, environment: PNPushEnvironment = PNPushEnvironment.DEVELOPMENT): AddChannelsToPush
actual abstract fun addPushNotificationsOnChannels(pushType: PNPushType, channels: List<String>, deviceId: String, topic: String?, environment: PNPushEnvironment): AddChannelsToPush
Enable push notifications on provided set of channels.
Parameters
pushType
Accepted values: FCM, APNS2. @see PNPushType
channels
Channels to add push notifications to.
deviceId
The device ID (token) to associate with push notifications.
environment
Environment within which device should manage list of channels with enabled notifications (works only if pushType set to PNPushType.APNS2).
topic
Notifications topic name (usually it is bundle identifier of application for Apple platform). Required only if pushType set to PNPushType.APNS2.
actual abstract fun addPushNotificationsOnChannels(pushType: PNPushType, channels: List<String>, deviceId: String, topic: String?, environment: PNPushEnvironment): AddChannelsToPush