GCM wants to do noti only at certain times.

Asked 2 years ago, Updated 2 years ago, 25 views

Hello.

Receive a message from gcm on Message Received

I'm using NotificationCompat to let you know.

You only want to receive messages at certain times.

android

2022-09-22 15:55

1 Answers

There is no function to reserve time at Gcm corresponding to number 1. It is usually controlled by combining time and push transmission on the server.

(Not recommended) If you want to implement it only on the client, you can use AlarmManager to control it as if it was pushed at a certain time. However, exceptional treatment is required, such as when the cell phone is rebooted. Regarding this, you can get a hint by looking at the following topics.


2022-09-22 15:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.