-
Notifications
You must be signed in to change notification settings - Fork 0
/
Starter.bas
45 lines (29 loc) · 808 Bytes
/
Starter.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
B4A=true
Group=Default Group
ModulesStructureVersion=1
Type=Service
Version=6.3
@EndOfDesignText@
#Region Service Attributes
#StartAtBoot: False
#ExcludeFromLibrary: True
#End Region
Sub Process_Globals
Public analytics As FirebaseAnalytics
End Sub
Sub Service_Create
CallSubDelayed2(FirebaseMessaging, "SubscribeToTopics","general")
analytics.Initialize
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub Service_Destroy
End Sub
'Return true to allow the OS default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Log("APP Error: " & Error.Message)
' ToastMessageShow(Error.Message,True)
' ToastMessageShow(Error.Message,True)
'' Msgbox(Error.Message,"Error")
Return False
End Sub