我需要使用 TTL 向离线Android应用程序发送推送通知 . 我使用PHP代码发送以下git(https://gist.github.com/prime31/5675017)中提到的push .

我使用以下两个 endpoints (https://android.googleapis.com/gcm/sendhttps://fcm.googleapis.com/fcm/send)发送推送通知 . 但推送通知是在 TTL 之后发送的 .

我在 TTL 之后添加了这一行来销毁 .

$msg = array
(
'body' => 'This is a message sent from my http server',
'title' => 'From server side',
'priority' => 'high',
'sound' => 'default',
'time_to_live' => 3600
);

以上代码也在“FernandoFactor”的上述git代码的回复中提到 .

我怎么能解决这个问题?