1

제목에서 푸시 알림은 안드로이드에서 제대로 작동하지만 IOS에서는 제대로 작동하지 않습니다. push.on (등록 ...)이 호출되지 않습니다. 임시 프로필이 개발 및 배포에 모두 유효하다는 것을 확인했습니다. 클라우드 메시징에 firebase를 사용하고 있습니다.이 문제를 해결하는 방법에 대한 지침을 찾고 있습니다.phonegap 푸시 알림은 안드로이드에서 작동하지만 ios에서는 작동하지 않습니다.

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: <######## ######## ######## ######## ######## ######## ######## ########> 

: 여기

콘솔 넣어이다.

  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); 

답변

1

나는 모두 함께 중포 기지 skiping 및 APNS

로 바로 이동하여 고정