The notification with the same title and body is the default automatic foreground notification. It has nothing to do with any other notification.
You can set a different notification to be the automatic foreground notification by setting Service.AutomaticForegroundNotification (in Service_Create). Or you can stop automatic foreground mode and handle the foreground state yourself.
Hi Erel,
I need to keep foreground mode going. The coding from the app set up the notification is here which is what I was using before Oreo:
nNotify.Icon = "icon"
nNotify.Sound = False
nNotify.Light = False
nNotify.Vibrate = False
The tutorial also states:
Another new property is Service.AutomaticForegroundNotification. This allows you to change the notification that appears in automatic foreground mode.
It never actually showed an example with coding so I assumed I was to use:
Service.AutomaticForegroundNotification = nNotify
Since it compiled and did not crash my app I was good to go and published the app. When my customers started to upgrade to Oreo they had either crashes or the default system notification showing up.
It seems that using Service.AutomaticForegroundNotification the way I was using it is not correct for Oreo.
It would be greatly appreciated if I can see the coding I need to use to build the notification to work with Oreo and Service.AutomaticForegroundNotification.
Thanks.