Geolocation tracking and Google Cloud Messaging working together

view story

http://stackoverflow.com – Is there any way to upload the device location data to the cloud whenever a "push notification (think is gcm in Android)" arrives to the device? The user shouldn't have to press any buttons or do anything. I'm thinking about GCM because I need the app to run on the background (it doesn't matter if it needs some extra battery power). If I can't upload the device location data on 'remote' demand via GCM and without any user interaction, then I would like to recieve ideas about how to reach my goal, for example, passive location tracking and something else. Any help would be appreciated. (HowTos)