initialize
fun initialize(configuration: NotificationPlatformConfiguration, vararg extensions: KMPNotifierExtension)
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
fun initialize(configuration: NotificationPlatformConfiguration, extensions: List<KMPNotifierExtension>)
Initializes the library. Call on application start.
Swift example:
KMPNotifier.shared.initialize(
configuration: NotificationPlatformConfigurationIos(...),
extensions: [FirebasePush.shared]
)Content copied to clipboard
Parameters
configuration
platform configuration, e.g. NotificationPlatformConfiguration.Ios
extensions
capabilities to install, e.g. LocalNotifications, FirebasePush