phonegap推送通知在android上有效,但在ios上无效

phonegap推送通知在android上有效,但在ios上无效,ios,cordova,firebase,apple-push-notifications,phonegap-pushplugin,Ios,Cordova,Firebase,Apple Push Notifications,Phonegap Pushplugin,正如标题所说的,推送通知在android上运行良好,但在IOS上却不行。从不调用push.on(注册…)。我已确保临时配置文件对开发和分发都有效。我正在使用firebase进行云消息传递。我正在寻找有关如何修复此问题的任何指导 这是控制台输出: 2017-03-23 16:15:49.741405 [342:34586] Push Plugin register called 2017-03-23 16:15:49.741515 [342:34586] PushPlugin.register:

正如标题所说的,推送通知在android上运行良好,但在IOS上却不行。从不调用push.on(注册…)。我已确保临时配置文件对开发和分发都有效。我正在使用firebase进行云消息传递。我正在寻找有关如何修复此问题的任何指导

这是控制台输出:

2017-03-23 16:15:49.741405 [342:34586] Push Plugin register called
2017-03-23 16:15:49.741515 [342:34586] PushPlugin.register: setting badge to false
2017-03-23 16:15:49.741559 [342:34586] PushPlugin.register: clear badge is set to 0
2017-03-23 16:15:49.752879 [342:33926] Push Plugin register success: <######## ######## ######## ######## ######## ######## ######## ########>

我通过一起跳过火场,直接去APNS解决了这个问题

          document.addEventListener("deviceready", function() {
                var push = PushNotification.init({
                     android: {
                        senderID: "############",
                        forceShow: true
                     },
                     ios: {
                        sound: true,
                        alert: true,
                        badge: true
                     }
                    });


                push.on('registration', function(data) {
                    console.log('GCM: ' + data.registrationId);

                    $rootScope.pushRegStatus = true;

                    $rootScope.registerPushOnServer(data.registrationId);
                });

                push.on('notification', function(data) {
                    // data.message,
                    // data.title,
                    // data.count,
                    // data.sound,
                    // data.image,
                    // data.additionalData
                    // console.log('notification' + data.toString());

                    // App started by clicking on push notification ..
                    // if(data.additionalData.coldstart === false || data.additionalData.coldstart === true) {
                        // $location.path('/pushLog/' + data.additionalData.push_log_id);
                    // }

                    // Got notification while app is in foreground ..        
                    if(data.additionalData.foreground) {
                        //$rootScope.alert(data.title, data.message);
                    } else {
                        $rootScope.alert(data.title, data.message);
                        // $location.path('/pushLog/' + data.additionalData.push_log_id);
                        $rootScope.openPushLogFromNotification = true;
                        // setTimeout(function() {
                        //     $rootScope.openPushLogFromNotification = false;    
                        // }, 3000);

                        $location.path('/pushLog');
                    }
                });

                push.on('error', function(e) {
                    // e.message
                    console.log(e);
                });

              }, false);