2016-02-12 125 views
-3

我想推送到Android手機(使用GCM)和iOS手機(使用APNS)。我想通過我的backoffice發送它,所以我測試了我的web服務海報插件,它的工作原理,我收到通知。推送通知無法使用網絡

,但是當我用我的backoffice發送,它不工作。

我必須使用其他圖書館的網頁,以我的通知發送到手機????

回答

1

您可以PostManClient本身在Android的發送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" 

} 

您將在GCMIntentService中收到通知。

+0

沒有,就OK了,在使用postermanClient但使用這個功能用我的後臺也無法正常工作 – user3070123