When I create a message on the site and the app is not open ( not even in the background ) I receive the push. The message created from the site has the content_availble set to false.
When I create a message from my own server and the app is open or in the background, everything works as expected, but when the app is closed, the notification does not show up.
I have tried
- "content_available": 1
- "content_available": true
- not putting in the content_available parameter.
My full payload looks like
{
"app_id": "...",
"contents": { "en": "..."},
"include_player_ids":["..."],
"ios_sound": "yak.wav",
"android_sound": "yak.wav",
"ios_badgeType": "SetTo",
"ios_badgeCount": Number(badgeCount),
"buttons": [ {"id": "view", "text": "View", "icon": "ic_menu_share"} ],
"data": { "path": path},
//"content_available": 1,
//"_background_data":true,
}
My plugins are
com-badrit-base64 0.2.0 "Base64"
com.cmackay.plugins.googleanalytics 0.1.22 "GoogleAnalytics"
com.phonegap.plugins.PushPlugin 2.5.0 "PushPlugin"
cordova-plugin-actionsheet 2.2.2 "ActionSheet"
cordova-plugin-app-event 1.2.0 "Application Events"
cordova-plugin-badge 0.7.2 "Badges"
cordova-plugin-camera 2.2.0 "Camera"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-console 1.0.3 "Console"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-facebook4 1.7.0 "Facebook Connect"
cordova-plugin-file 4.2.0 "File"
cordova-plugin-file-transfer 1.5.1 "File Transfer"
cordova-plugin-geolocation 2.2.0 "Geolocation"
cordova-plugin-inappbrowser 1.4.0 "InAppBrowser"
cordova-plugin-splashscreen 3.2.2 "Splashscreen"
cordova-plugin-statusbar 2.1.3 "StatusBar"
cordova-plugin-whitelist 1.2.2 "Whitelist"
cordova-plugin-x-socialsharing 5.0.12 "SocialSharing"
de.appplant.cordova.plugin.badge 0.7.1 "Cordova Badge Plugin"
ionic-plugin-deploy 0.5.0 "IonicDeploy"
ionic-plugin-keyboard 2.0.1 "Keyboard"
onesignal-cordova-plugin 1.12.3 "OneSignal Push Notifications"
org.transistorsoft.cordova.background-notification 0.1.0 "CDVBackgroundNotification"
phonegap-plugin-push 1.6.2 "PushPlugin"
I'm using ionic 1.7.14 and xcode 7.3 with a deploy target of 8.0
any guidance would be appreciated! Thanks!