Hi All,
I'm getting a not desired behavior in my APP.
I receive a new message form GCM, and I need to launch an Activity to user send some action (reject ou accept the order).
Everything works fine if I don't have the device protected my some kind of password.
When I receive the message, I launch the activity.
The code bellow runs under a GCM Service
Anybody can help to modify this, that even with the application with the screen turned off and protected by password could launch my activity?
This is the same behavior we got in a typical Alarm APP.
Thanks.
I'm getting a not desired behavior in my APP.
I receive a new message form GCM, and I need to launch an Activity to user send some action (reject ou accept the order).
Everything works fine if I don't have the device protected my some kind of password.
When I receive the message, I launch the activity.
The code bellow runs under a GCM Service
B4X:
Dim In As Intent
In.Initialize(In.ACTION_MAIN,"")
In.SetComponent("mypackage/.main")
In.Flags = 33554432 'FLAG_ACTIVITY_FORWARD_RESULT
StartActivity(In)
CallSubDelayed2(Main, "NewNotificationArrived", Intent)
Anybody can help to modify this, that even with the application with the screen turned off and protected by password could launch my activity?
This is the same behavior we got in a typical Alarm APP.
Thanks.