Hi All,
Having a problem with launching the GCM Push example service from a Menu. The menu is entered from a Widget by tapping the panel.
The options in the Menu activity are all fine except the calling of the push service module.
This is the code have used from the Menu to try and attach this service once a user enters a name and presses the register button.
The service is never registered and the Widget just stops. As a standalone APP this works as expected.
The Widget is a very basic barebones example.
Sorry that this evening not at the PC with the complete project on so as to generate an export of the project. Now just curious if anyone else has had a similar issue. Of course this is not the best way to ask for help...
Thank-you
Sue.
Having a problem with launching the GCM Push example service from a Menu. The menu is entered from a Widget by tapping the panel.
The options in the Menu activity are all fine except the calling of the push service module.
This is the code have used from the Menu to try and attach this service once a user enters a name and presses the register button.
B4X:
Sub btnRegister_Click
If Regex.IsMatch("[\d\w]+", txtName.Text) = False Then
ToastMessageShow("Name not valid", True)
Return
End If
Register(txtName.Text)
End Sub
Sub Register(Name As String)
PushService.DeviceName = Name
CallSubDelayed2(PushService, "RegisterDevice", False)
End Sub
Sub Unregister(Name As String)
PushService.DeviceName = Name
CallSubDelayed2(PushService, "RegisterDevice", True)
End Sub
The service is never registered and the Widget just stops. As a standalone APP this works as expected.
The Widget is a very basic barebones example.
Sorry that this evening not at the PC with the complete project on so as to generate an export of the project. Now just curious if anyone else has had a similar issue. Of course this is not the best way to ask for help...
Thank-you
Sue.