Closed mirzemehdi closed 1 month ago
This is implemented in 1.3.0
version.
By default using androidx-startup
Context instance is obtained automatically in android. But if you disabled androidx-startup, you can pass android Context instance using initialize method as below:
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
NotifierManager.initialize(
context = this
configuration = NotificationPlatformConfiguration.Android(
notificationIconResId = R.drawable.ic_launcher_foreground,
showPushNotification = true,
)
)
}
}
Originally posted by @linhvnguyen9 in https://github.com/mirzemehdi/KMPNotifier/issues/53#issuecomment-2266379524