Hello,
In my MessageArrived event (in PushService) example of GCM Tutorial
I am trying to start a new service svc_test
I get the "new message arrived" but the new service does NOT start ...
not sure what is going wrong...
Sub MessageArrived (Intent As Intent)
Dim From, CollapseKey, Data As String
If Intent.HasExtra("from") Then From = Intent.GetExtra("from")
If Intent.HasExtra("data") Then Data = Intent.GetExtra("data")
If Intent.HasExtra("collapse_key") Then CollapseKey = Intent.GetExtra("collapse_key")
'Here you should handle the new message:
Log("New message arrived: " & Data)
ToastMessageShow("New message: " & Data, True)
StartService("svc_test")
end Sub
Please bear with noob qns - still less than a month b4a-"old"
THanks
flyingbag
In my MessageArrived event (in PushService) example of GCM Tutorial
I am trying to start a new service svc_test
I get the "new message arrived" but the new service does NOT start ...
not sure what is going wrong...
Sub MessageArrived (Intent As Intent)
Dim From, CollapseKey, Data As String
If Intent.HasExtra("from") Then From = Intent.GetExtra("from")
If Intent.HasExtra("data") Then Data = Intent.GetExtra("data")
If Intent.HasExtra("collapse_key") Then CollapseKey = Intent.GetExtra("collapse_key")
'Here you should handle the new message:
Log("New message arrived: " & Data)
ToastMessageShow("New message: " & Data, True)
StartService("svc_test")
end Sub
Please bear with noob qns - still less than a month b4a-"old"
THanks
flyingbag