initialize

Initializes the library. Call on application start. On iOS call it from the main thread (e.g. in didFinishLaunchingWithOptions) — the notification-center delegate is installed during initialization. Calling it again is a no-op for the configuration; extensions not yet installed are still installed.

Parameters

configuration

platform configuration, e.g. NotificationPlatformConfiguration.Android

extensions

capabilities to install, e.g. LocalNotifications, FirebasePush


Initializes the library. Call on application start.

Swift example:

KMPNotifier.shared.initialize(
configuration: NotificationPlatformConfigurationIos(...),
extensions: [FirebasePush.shared]
)

Parameters

configuration

platform configuration, e.g. NotificationPlatformConfiguration.Ios

extensions

capabilities to install, e.g. LocalNotifications, FirebasePush