We are trying to instantiate the Exact Target push service on Android, with the call ETPush.readyAimFire
, in an Activity class instead of the Application one. We want to use as an Activity class instead of an Application one as we are thinking of possible integrations with clients that are using a framework that doesn't provide a way to extend the Application class.
We tried to implement it, and it works perfectly if you have the application running, but once you close it, the push notification is not shown. We can in the logs that we receive the message (GCM message com.testsalesforce 0:1424704288668625%f408837ef9fd7ecd), but we cannot see the logs for the broadcast receiver handling the notification.
Urban Airship has a class for this type of situation, you can see it's documentation here: http://docs.urbanairship.com/reference/libraries/android/latest/reference/com/urbanairship/Autopilot.html
We appreciate any information/help anyone can give us.
Thanks