capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
177 stars 54 forks source link

Android notification forwards to App Settings instead of App #110

Closed JMJHautier closed 5 months ago

JMJHautier commented 6 months ago

Describe the bug In Android, when I click on the background-tracking notification, I'm forwarded to the app-settings, and not to the app itself (as in iOs)

To Reproduce Steps to reproduce the behavior:

  1. On Android, set up notifications for background tracking
  2. Launch your app and whatever processes that uses the plugin.
  3. Go in background mode
  4. Click on the notification

Expected behavior I go back to the app (not to the settings)

Smartphone (please complete the following information):

And thanks much for this plugin, it's great :-)

diachedelic commented 6 months ago

That happens when the notification icon is not correctly configured. Ensure you have configued the notification icon via Android Studio, details are in the README.

On 10 Jan 2024, at 9:39 pm, Jean Hautier @.***> wrote:

Describe the bug In Android, when I click on the background-tracking notification, I'm forwarded to the app-settings, and not to the app itself (as in iOs)

To Reproduce Steps to reproduce the behavior:

On Android, set up notifications for background tracking Launch your app and whatever processes that uses the plugin. Go in background mode Click on the notification Expected behavior I go back to the app (not to the settings)

Smartphone (please complete the following information):

Device: Pixel 6 OS: Android 14 And thanks much for this plugin, it's great :-)

— Reply to this email directly, view it on GitHub https://github.com/capacitor-community/background-geolocation/issues/110, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLZQFJUM2AMKFQO7LODKDYNZVWBAVCNFSM6AAAAABBUR2MK6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TIMBYGA4DIOA. You are receiving this because you are subscribed to this thread.

JMJHautier commented 5 months ago

I did not find anything in the readme, but this helped me: https://github.com/capacitor-community/background-geolocation/issues/38 (so issue is indeed closed).

diachedelic commented 5 months ago

I was referring to the comment preceding <string name="capacitor_background_geolocation_notification_icon">.