Skip to content

[android] Change request: Don't recreate TSLocationManager channel if exists #808

@bengtan

Description

@bengtan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions