Cambios en como se reciben y reacciona a actualizaciones.

This commit is contained in:
2023-09-30 06:02:40 -06:00
parent ebe76d6f87
commit 8b001e88c8
5 changed files with 153 additions and 51 deletions

View File

@@ -153,6 +153,7 @@ Sub notiHigh(title As String, body As String, id As String, activity As Object)
activity = Main
Private notif As Notification
notif.Initialize2(notif.IMPORTANCE_HIGH)
notif.OnGoingEvent = True
notif.Icon = "icon"
notif.Vibrate = False
notif.Sound = False
@@ -163,6 +164,11 @@ Sub notiHigh(title As String, body As String, id As String, activity As Object)
notif.Notify(id)
End Sub
Sub cancelNoti(id) 'ignore
Private notif As Notification 'ignore
notif.Cancel(id)
End Sub
'Geo-Zone Determination (Point in Polygon)
'Use this to determine If a vehicle is within a defined zone made of 5 or more lat/lon coordinates.
'Point 1 Is also Point 5 (first point And last point are same value).