hello.
in my app, i check if a new version is avaible comparing the app version with the number inside the database when i download userdata.
if there is a new version, i create a notification with this code:
The problem, is that on notification click, it download again the user data, find a new version and send another notification, and so on...
Is possible to open a link on notification click?
I have publish the app on APP GALLERY
in my app, i check if a new version is avaible comparing the app version with the number inside the database when i download userdata.
if there is a new version, i create a notification with this code:
B4X:
functions.notif = CreateNotification("UPDATE AVAIBLE - You have a old version")
functions.notif.Notify(1)
B4X:
Sub CreateNotification (Body As String) As Notification
Dim notification As Notification
notification.Initialize2(notification.IMPORTANCE_HIGH)
notification.AutoCancel = True
notification.Icon = "icon"
notification.SetInfo(Application.LabelName, Body,Me)
Return notification
End Sub
The problem, is that on notification click, it download again the user data, find a new version and send another notification, and so on...
Is possible to open a link on notification click?
I have publish the app on APP GALLERY