2017-06-22 60 views
0

我使用離子2與pushnotifications。使用休息API的信號

我安裝了這個插件。

$ ionic cordova plugin add onesignal-cordova-plugin 
    $ npm install --save @ionic-native/onesignal 

我使用創建通知使用郵遞員

我指的是OneSignal documentation: Using Postman

但我得到這個犯錯

"errors": [ 
     "app_id not found. You may be missing a Content-Type: application/json header." 
    ] 

我也把APP_ID和restAPIkey。

我該如何解決這個問題。

請諮詢我,

感謝

回答

0

您必須添加身體的 「應用/ JSON」 的類型。 在Postman中,點擊body> raw>點擊「Text」並將其更改爲「application/json」 Postman Example