HaylLtd / cordova-background-geolocation-plugin

Background and foreground geolocation plugin for Cordova.
Apache License 2.0
56 stars 64 forks source link

Hidden or Change route notification when tap #138

Closed santiagovasquez closed 1 year ago

santiagovasquez commented 1 year ago

Hello, first of all, thanks for creating and maintaining this great utility.

I'm using the "background-geolocation" and "background-mode" plugins. When the application goes into background mode, two notifications appear, but I only want to keep one active. I can easily hide the "background-mode" notification and keep the "background-geolocation" notification active. However, the "background-geolocation" notification only displays information about the application instead of opening it. I need it to open the application instead of just displaying the information.

I attach two images of what happens

The notification that active "background-geolocation"

Screen Shot 2023-02-16 at 8 12 23 AM

When I tap the notification, open the app info

Screen Shot 2023-02-16 at 8 20 26 AM

Any help thanks

HarelM commented 1 year ago

I had this issue as well, I think it has to do with the icon name or some thing, see here: https://github.com/IsraelHikingMap/Site/issues/1613

santiagovasquez commented 1 year ago

Jaja OMG, the icon was the solution. In my case I solved it by adding the next:

BackgroundGeolocation.configure({ notificationIconLarge: '@mipmap/ic_launcher', notificationIconSmall: '@mipmap/ic_launcher', ... })

Thank you @HarelM ✊🏻