Android Question Notifications issue with SDK API 23

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am using the following code in a service:

B4X:
Sub Service_Create
    ServiceNotification.Initialize
    ServiceNotification.Icon = "icon"
    ServiceNotification.Sound = False
    ServiceNotification.Vibrate = False
    ServiceNotification.SetInfo("Service","Service Running",Main)
    Service.StartForeground(9876,ServiceNotification)
End Sub

I have the icon in the ..\Objects\res\drawable folder.

I have set the targetSdkVersion to version 23 in the Manifest.

When I run my app the icon does not show in the notification bar and instead it looks like it's a white square and when you view the notifications menu (scrolling your finger down from the top of the screen) it also is a white square.

I then changed the targetSdkVersion to version 20. Now the icon is now showing fine.

Is there something wrong when using it with the version set to 23 ?

I am testing my app on a Nexus5 running Android 6.0
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…