I'm having some frustrations and confusion with this...
I have a service (GPS for odometer) running in the background and it does a periodic restart and does a Service.StartForeground() which requires a notification. That creates an unwanted notification sound at regular intervals. FWIW, I'm following the MyLocation example for that part.
I need other notifications with sound in the app, so I can't make notifications for the whole app silent.
So I want to be able to create notifications with sound in the app, and I need to GPS to work in the background (to calculate odometer distance), but I don't want the background service to keep making the notification sound.
Is there a way around this? Hope it's just something I'm not understanding clearly.
Thanks.
I have a service (GPS for odometer) running in the background and it does a periodic restart and does a Service.StartForeground() which requires a notification. That creates an unwanted notification sound at regular intervals. FWIW, I'm following the MyLocation example for that part.
I need other notifications with sound in the app, so I can't make notifications for the whole app silent.
So I want to be able to create notifications with sound in the app, and I need to GPS to work in the background (to calculate odometer distance), but I don't want the background service to keep making the notification sound.
Is there a way around this? Hope it's just something I'm not understanding clearly.
Thanks.
Last edited: