Android 使用web时推送通知不起作用

Android 使用web时推送通知不起作用,android,ios,web-services,push-notification,token,Android,Ios,Web Services,Push Notification,Token,我想向Android手机(使用GCM)和iOS手机(使用APNS)发送推送消息。我想通过我的后台办公室发送推送消息,所以我已经通过poster插件测试了我的web服务,它可以工作了,我收到了通知 但是,当我使用我的后台发送它时,它不起作用 我是否必须使用其他网络库将我的通知发送到手机???您可以在Android中使用PostanClient本身发送PushNotification。只需遵循以下步骤 1)Use the Post method for the below URL. https:

我想向Android手机(使用
GCM
)和iOS手机(使用
APNS
)发送推送消息。我想通过我的
后台办公室发送推送消息,所以我已经通过poster插件测试了我的web服务,它可以工作了,我收到了通知

但是,当我使用我的
后台
发送它时,它不起作用


我是否必须使用其他网络库将我的通知发送到手机???

您可以在Android中使用PostanClient本身发送PushNotification。只需遵循以下步骤

1)Use the Post method for the below URL.

 https://android.googleapis.com/gcm/send

2) Just add Header as below

'Authorization: key=' Your Google API Key,
 'Content-Type: application/json'

3)Add the parameter as
{
 "registration_ids" : "Your GCM registration Key",
 "data" : "Your Messager"

}

您将在gcminentservice中收到通知。

否,在使用postermanClient时可以,但使用my backoffice使用此功能不起作用