HaylLtd/cordova-background-geolocation-plugin

Hidden or Change route notification when tap

Closed this issue · 2 comments

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

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

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 ✊🏻