cordova silent push
Hello,
I'm currently setting up silent push in an cordova & ionic 3 app for fetching location in background on demand.
When a push is received the following is logge in xCode, but the console.logs and a firebase api method in the 'push-notification' event is not fired in the background when a cordova client receives a silent push notification.
config: https://imgur.com/a/9E8mg
Logs (xcode):
2017-12-06 12:26:31.421061+0100 Flare BETA[4714:413098] [PW] [D] -[PushNotification] Notification opened: { foreground = 0; ios = { aps = { "content-available" = 1; }; p = ":A"; }; onStart = 0; } <cencored>[PW] [I] -[PWRequestManager] x | Pushwoosh request: | Url: https://<cencored>.api.pushwoosh.com/json/1.3/pushStat
| Payload: {"request":{"device_type":1,"hash":":A","application":"<cencored>","userId":"<cencored","v":"5.4.0","hwid":"<cencored>"}}
| Status: "200 no error"
| Response: {"status_code":200,"status_message":"OK","response":null} x
<cencored> [PW] [D] -[PWDataManagerCommon] sendStats completed
Please sign in to leave a comment.
Comments
2 comments