Questions tagged [gcmtaskservice]

For questions related to Android service that is used to schedule tasks for Google Cloud Messaging.

26 questions
1
vote
0 answers

GcmNetworkManager maximum number of scheduled tasks

I am scheduling OneOff tasks with the GcmNetworkManager at a rate of one every 30 seconds. All of these tasks will retry if they fail. I am wondering what will happen if the user then places their phone in airplane mode for a long period of time and…
0
votes
1 answer

onRunTask never gets called

Im using GcmTaskService for sending data in the background, In most cases it works well, altough lately i got one complaint from a client that data is not being sent out of the device. Ive brought the device and I notice that my GcmTaskService's…
Ofek Ron
  • 8,354
  • 13
  • 55
  • 103
0
votes
1 answer

Wait for an async callback in a periodic task?

I'd like to check the user's location every 4 hours or so, and I don't want to leave my app running to do this. It looks like using a GcmTaskService with a PeriodicTask will let my service get called (WakefulBroadcastReceiver has restrictions…
Crag
  • 1,723
  • 17
  • 35
0
votes
0 answers

Is it safe to use onInitializeTask function to track Android App Upgrade?

According to documentation, onInitializeTasks(https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmTaskService.html#onInitializeTasks()) is called whenever client side app/play services are updated. Can I safely use this…
0
votes
1 answer

GCMTaskManager PeriodicTask... restart timer and/or see how much time is left?

I am trying to use the GCMTaskManager to schedule a periodic task that runs approximately every 30 minutes. When it runs, it does an "update" on some internal data in the APP. I have this preliminarily running and can see, using a LOG command in…
Peter
  • 427
  • 4
  • 14
0
votes
1 answer

Android GCMNetworkManager - Running a job between a specific timeframe everyday

I want to be able to run a periodic task within a certain timeframe every day, for example, between 8 AM and 11 AM. I'm not sure how I can do this with PeriodicTask, because you cannot specify a specific time of day. I stumbled across this example,…
0
votes
1 answer

Google GMS Task vs Bolts Android Task

Facebook has a popular library Bolts which helps in asynchronous processing on Android better. They claim to be better than Android native AsyncTask both in efficiency and code readability. I now see that Google is shipping its own version of Tasks…
0
votes
2 answers

Buttons in android push notification

I am doing Push notification message in android devices and follows GCM documentation for my reference and I have scenario that in the notification itself I have to show buttons and user clicked it will trigger the respective actions. From the GCM…
0
votes
0 answers

GcmTaskService use for batch event tracking

I titled my question this way since many people might be using GcmTaskService for tasks such as event tracking which don't need to happen immediately. Tracking is a great example of a task that can be postponed to when the device is charging, or…
sophia
  • 395
  • 5
  • 13
0
votes
2 answers

How do schedule a GcmTaskService to run every day at a specific time

Basically it's a periodic GcmNetworkManager task that should run every day at a specific time, it's persistent so it survives across reboots, it's period is 86400000L (24h), but i need it to run the first time on a specific time. I've already…
Rafael
  • 1,437
  • 6
  • 23
  • 41
-1
votes
2 answers

How to solve this issue i want to send notifications

Here i want to send notifications for mobile. i am trying like this i getting error like this. {"multicast_id":9154934162102180737,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]} i can not understand what is…
Sujini R
  • 29
  • 1
  • 1
  • 5
1
2