Devv Active Member Licensed User Longtime User Apr 2, 2015 #1 i'am using this code Code: Dim test As Notification test.Initialize test.SetInfo("title","body",Main) Service.StartForeground(1,test) it is not changing the notification title and body and when i click it it take me to the app information not to the main activity what i'am doing wrong ? another question is ,can i make the notification hidden or with no title and body ?
i'am using this code Code: Dim test As Notification test.Initialize test.SetInfo("title","body",Main) Service.StartForeground(1,test) it is not changing the notification title and body and when i click it it take me to the app information not to the main activity what i'am doing wrong ? another question is ,can i make the notification hidden or with no title and body ?
DonManfred Expert Licensed User Longtime User Apr 2, 2015 #2 You forgot to call notify i believe... Give it a try Upvote 0
Devv Active Member Licensed User Longtime User Apr 2, 2015 #3 DonManfred said: You forgot to call notify i believe... Give it a try Click to expand... still the same Code: Dim test As Notification test.Initialize test.SetInfo("title","body",Main) test.Notify(2) Service.StartForeground(1,test) Upvote 0
DonManfred said: You forgot to call notify i believe... Give it a try Click to expand... still the same Code: Dim test As Notification test.Initialize test.SetInfo("title","body",Main) test.Notify(2) Service.StartForeground(1,test)
M Mahares Expert Licensed User Longtime User Apr 3, 2015 #4 Devv said: test.Notify(2) Service.StartForeground(1,test) Click to expand... On one line you have 1 and the other line you have 2. I think both should be the same. Upvote 0
Devv said: test.Notify(2) Service.StartForeground(1,test) Click to expand... On one line you have 1 and the other line you have 2. I think both should be the same.
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2015 #5 You shouldn't call test.Notify at all. It happens automatically when you call StartForeground. Are you creating any other notification in your app? Upvote 0
You shouldn't call test.Notify at all. It happens automatically when you call StartForeground. Are you creating any other notification in your app?
Devv Active Member Licensed User Longtime User Apr 3, 2015 #6 Erel said: You shouldn't call test.Notify at all. It happens automatically when you call StartForeground. Are you creating any other notification in your app? Click to expand... no. the project only have that code Attachments test.zip test.zip 11.4 KB · Views: 256 Upvote 0
Erel said: You shouldn't call test.Notify at all. It happens automatically when you call StartForeground. Are you creating any other notification in your app? Click to expand... no. the project only have that code
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2015 #7 You must set the icon property: Code: Dim test As Notification test.Initialize test.Icon = "icon" test.SetInfo("title","body",Main) Service.StartForeground(1,test) Upvote 0
You must set the icon property: Code: Dim test As Notification test.Initialize test.Icon = "icon" test.SetInfo("title","body",Main) Service.StartForeground(1,test)
Devv Active Member Licensed User Longtime User Apr 3, 2015 #9 is their is a way to hide the time that appears on the right of the notification ? and how could i control if the notification appears at the top or at the bottom of other notifications ? Upvote 0
is their is a way to hide the time that appears on the right of the notification ? and how could i control if the notification appears at the top or at the bottom of other notifications ?
Peter Simpson Expert Licensed User Longtime User Apr 4, 2015 #10 No and no as far as I know... Upvote 0