Ionic 1 push notifications with phonegap-push-plugin and ionic cloud -
i'm trying make notification in ios app using ionic, ionic.io , phonegap-push-plugin, , i'm stuck here.
i followed steps in documentation, generated apn_dev certification, created security profile , enabled notification in xcode project, here libraries :
<script src="lib/bluebird.min.js"></script> <script src="lib/ionic/js/ionic.bundle.js"></script> <script src="lib/ionic.cloud.min.js"></script> <script src="cordova.js"></script> <script src="js/app.js"></script> here app.js :
.config(function($ioniccloudprovider) { $ioniccloudprovider.init({ "core": { "app_id": "xxxx" }, "push": { "sender_id": "12345", "pluginconfig": { "ios": { "badge": true, "sound": true }, "android": { "iconcolor": "#343434" } } } }); }) .controller('myctrl', function($scope, $ionicpush) { $ionicpush.register().then(function(t) { return $ionicpush.savetoken(t); }).then(function(t) { console.log('token saved:', t.token); }); $scope.$on('cloud:push:notification', function(event, data) { console.log(data); }); the subscription works fine, log saying :
token saved: xxxxxxx i checked cloud server : device token exists in result of : https://api.ionic.io/push/tokens
but when try send notification device, nothing.. missing?
Comments
Post a Comment