I can't find any documentation that answers this question. Specifically, I'm using the calendar API: https://developers.google.com/google-apps/calendar/v3/push
I know that the expiration time is supposed to be the number of elapsed milliseconds since EPOCH. Currently, I have it expire in a week, but I want it to be longer - as long as possible.
$chan = new Google_Service_Calendar_Channel();
$chan->setId($channel_id);
$chan->setToken("blahblahblah");
$chan->setType("web_hook");
$chan->setAddress("https://www.mydomain.com/catchPush/");
$chan->setExpiration(strtotime("+1 week")*1000);
$watch = $cal_client->events->watch($calendar_id, $chan);
Turn on notifications for Android devicesTap More on the bottom navigation bar and select Settings. Tap Turn on notifications. Tap Notifications. Tap Show notifications.
To help remind you about upcoming events, you can get notifications on your phone, computer, or by email. You can change your notification settings for one event or multiple events.
Millions of people use Google Calendar to track their events. The Calendar API lets you integrate your app with Google Calendar, creating new ways for you to engage your users.
The maximum TTL appears to be one month.
Try setting the expiration to one year, and monitor the expiration Google returns in the result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With