Is it possible to read value of Intent.GetExtra("registration_id") in HandleRegistrationResult Function in PushService Module from the Main Module. I want to import the token to mysql.
I tired to declare a public variable in Main Module, and then change the value in HandleRegistrationResult but it failed:
- In Main:
Sub Process_Globals
Public sToken As String
End Sub
- In PushService:
Sub HandleRegistrationResult(Intent As Intent)
If Intent.HasExtra("error") Then
Log("Error: "...
Read registration_id from Main Module
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1sUQHUu
via IFTTT
vendredi 3 juin 2016
Read registration_id from Main Module
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire