Honestly I did not make this change. But at the moment it seems to work perfectly.
This is my code:
Sub Service_Start (StartingIntent As Intent)
If rv.HandleWidgetEvents(StartingIntent) Then Return
End Sub
Are you sure the Notification icon of your widget is not displayed on the top left of your device's display?
I had the notificationicon due to the missing line, the icon has gone after adding :
Service.StopAutomaticForeground
also i changed the
If rv.HandleWidgetEvents(StartingIntent) Then Return
into
rv.HandleWidgetEvents(StartingIntent)
otherwise the Service.StopAutomaticForeground could not be executed all the times
But i don't want to bother you, if it works for you it should be OK
Edit, ok i see you edited your post a minutes ago, it seems ok !