Hi all,
It's the first time that I'm facing a B4XPages (https://www.b4x.com/android/forum/t...k-for-managing-multiple-pages.118901/#content) mobile app development.
Within this app my target is to implement a service that notify the user when a specific condition is true (check implemented within the service).
Note: For notifications (within the service) I'm using "NB6 notifications builder class (2018)" from @Erel
I recap the prerequisites of the service that I have to develop:
1) It starts at device boot (Android & iOS)
2) It runs (self) sheduled every x hours
3) it runs also when the app isn't started by the user
4) It runs in background (no visible within the foreground)
5) It's able show a system notification (only when a condition is true) for both platform (Android & iOS)
Is there any sample / tutorial to do this for B4A & B4i ?
Thanks in advance for you help
Luca.
It's the first time that I'm facing a B4XPages (https://www.b4x.com/android/forum/t...k-for-managing-multiple-pages.118901/#content) mobile app development.
Within this app my target is to implement a service that notify the user when a specific condition is true (check implemented within the service).
Note: For notifications (within the service) I'm using "NB6 notifications builder class (2018)" from @Erel
B4X:
Sub Simple_Notification
Dim n As NB6
n.Initialize("default", Application.LabelName, "DEFAULT").AutoCancel(True).SmallIcon(smiley)
n.Build("Title", "Content", "tag1", Me).Notify(4) 'It will be Main (or any other activity) instead of Me if called from a service.
End Sub
I recap the prerequisites of the service that I have to develop:
1) It starts at device boot (Android & iOS)
2) It runs (self) sheduled every x hours
3) it runs also when the app isn't started by the user
4) It runs in background (no visible within the foreground)
5) It's able show a system notification (only when a condition is true) for both platform (Android & iOS)
Is there any sample / tutorial to do this for B4A & B4i ?
Thanks in advance for you help
Luca.