Package-level declarations

Types

Link copied to clipboard

Firebase Cloud Messaging push capability of KMPNotifier.

Properties

Link copied to clipboard

The Firebase-backed push notifier. Kotlin-side sugar for FirebasePush.notifier (from Swift use FirebasePush.shared.notifier).

Functions

Link copied to clipboard

Adds a listener for push events (token updates, push payloads). Sugar for FirebasePush.addListener so call sites read KMPNotifier.addPushListener(...) (Swift: KMPNotifier.shared.addPushListener(listener:)).

In order to receive push notification data payload this function needs to be called in iOS Swift side application didReceiveRemoteNotification function.

Link copied to clipboard
fun KMPNotifier.onUserNotification(notificationContent: UNNotificationContent)

Emits push events for the given notification content if it is a remote (Firebase) notification. Usually not needed: the library's notification delegate handles this automatically.

Link copied to clipboard

Removes a previously added push listener. Sugar for FirebasePush.removeListener.

Link copied to clipboard

Replaces all push listeners with the given one (null removes all). Sugar for FirebasePush.setListener.