You can use AlarmManager to execute tasks periodically with PendingIntent, but its depend if application is running and the AlarmManager is started. Using GCM or FCM the work is at the server but the push notifications depends of the device internet connection. I think it depends of your needs.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e502e31f-a639-4e9a-88fd-10b55a1dac18%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

