Hi Everyone,
Can you check my coding and let me know where I made mistakes?
I'm trying to display some text in the body area of SetInfo. In the example, the text "This is my app name." is being displayed in both the "Title" and the "Body" area of the notification when I drag down the notification drawer. In the notification, I'm looking to display the text "This is the body text." in the body area.
My coding is in Sub Service_Start of the Starter service.
Thanks.
Can you check my coding and let me know where I made mistakes?
I'm trying to display some text in the body area of SetInfo. In the example, the text "This is my app name." is being displayed in both the "Title" and the "Body" area of the notification when I drag down the notification drawer. In the notification, I'm looking to display the text "This is the body text." in the body area.
My coding is in Sub Service_Start of the Starter service.
B4X:
Sub Service_Start (StartingIntent As Intent)
SetupDefaultSettingsDatabase
InitializeObjects
nNotify.Initialize2(nNotify.IMPORTANCE_LOW)
nNotify.SetInfo("This is my app name.", "This is the body text.", "")
Service.AutomaticForegroundNotification = nNotify
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS
wakeState.PartialLock
StartTheTimer
End Sub
Thanks.