离子推送通知 - $ ionicPush.saveToken()返回状态404

时间:2016-11-17 08:58:12

标签: ionic-framework

我根据https://docs.ionic.io/services/push/中的教程在我的应用上实施推送通知。我将mycommand ret=$? if [ $ret -eq 0 ]; then echo "mycommand has 0 exit code" else echo "mycommand has non-zero exit code" fi 注入模块,我的代码就像这样

ionic.cloud

令牌生成成功。但是.run(function($ionicPlatform, $ionicUser, $ionicPush, $log) { $ionicPlatform.ready(function() { $ionicPush.register({}).then(function(token) { console.log(token); return $ionicPush.saveToken(token, { ignore_user: true }); }).then(function(t) { console.log('Token saved:', t.token); }); }); }) .config(function($stateProvider, $urlRouterProvider, $ionicCloudProvider) { $ionicCloudProvider.init({ "core": { "app_id": "a2bbf72e" }, "push": { "sender_id": "863453354920", "pluginConfig": { "ios": { "badge": true, "sound": true }, "android": { "iconColor": "#343434" } } } }) }) 会像这样返回状态404。 Please click here to view console error

任何人都可以帮助解决这个问题吗?

谢谢你

0 个答案:

没有答案