#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#ApplicationLabel: Filmspeler notifier
#VersionCode: 1
#VersionName:
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
'Activity module
Sub Process_Globals
'Set this field to match the project ID in Google Console.
Public SenderId As String = "xxx"
Public DeviceName As String
End Sub
Sub Globals
Dim pid As PhoneId
End Sub
Sub Activity_Create(FirstTime As Boolean)
DeviceName = pid.GetDeviceId 'Get Imei and use it as unique name
Log(pid.GetDeviceId) 'log imei
CallSubDelayed2(PushService, "RegisterDevice", False)
Activity.finish
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Unregister(Name As String) 'ignore
DeviceName = pid.GetDeviceId
CallSubDelayed2(PushService, "RegisterDevice", True)
End Sub