-
Notifications
You must be signed in to change notification settings - Fork 436
Closed
Labels
Description
Your Environment
- Plugin version: 3.0.9
- Platform: android
- OS version: 8.0 and 9.0
- Device manufacturer / model: Various
- React Native version (
react-native -v
): 0.59.2 - Plugin config: N/A
Context
On Android 8.0+, our app has an Android notification channel named TSLocationManager. This channel is created by the plugin.
We'd like to be able to rename/configure this channel.
I added code to Android's mainActivity.onCreate() to create a notification channel with the same id (and our desired configuration) and this successfully configured the channel.
However, a few app starts later, it had changed back to the name/configuration that the plugin sets.
I presume the plugin is repeatedly notificationManager.createNotificationChannel()
-ing it?.
I'd like to request the following change please:
Instead of recreating the channel unconditionally, please change the plugin to check whether the channel exists. If it exists, don't recreate it.