Push Plugin register failed










1















I've install the phonegap-push-plugin for send push notification to android and iOS device.



No problem for android but when I try it on my iPhone, I can see some bug in the device console.



When I try to init(); the result into device console was :



Push Plugin register failed
4.13.0 - [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: aucune autorisation « aps-environment » valide détectée pour l’application


I do a lot of search but I didn't find anything was help me and is for that I ask it to the community now.



I build my application with Phonegap build cli 8.0.0
The plugin was : https://github.com/phonegap/phonegap-plugin-push at the master branch



push plugin config.xml part's :



<plugin name="phonegap-plugin-push" source="npm">
<param name="SENDER_ID" value="123456789" />
</plugin>


I send notification with FCM and a correct push certificat and I think my web service who send notification work correctly cause he perfectly work for the android branch.



iPhone 5c (A1456) iOS 10.3.3.



Thanks for you'r futur help.










share|improve this question






















  • Switch the device to English so we can understand the exact error message thrown, and you can Google it as well. In French it won't help much.

    – andreszs
    Nov 17 '18 at 20:42















1















I've install the phonegap-push-plugin for send push notification to android and iOS device.



No problem for android but when I try it on my iPhone, I can see some bug in the device console.



When I try to init(); the result into device console was :



Push Plugin register failed
4.13.0 - [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: aucune autorisation « aps-environment » valide détectée pour l’application


I do a lot of search but I didn't find anything was help me and is for that I ask it to the community now.



I build my application with Phonegap build cli 8.0.0
The plugin was : https://github.com/phonegap/phonegap-plugin-push at the master branch



push plugin config.xml part's :



<plugin name="phonegap-plugin-push" source="npm">
<param name="SENDER_ID" value="123456789" />
</plugin>


I send notification with FCM and a correct push certificat and I think my web service who send notification work correctly cause he perfectly work for the android branch.



iPhone 5c (A1456) iOS 10.3.3.



Thanks for you'r futur help.










share|improve this question






















  • Switch the device to English so we can understand the exact error message thrown, and you can Google it as well. In French it won't help much.

    – andreszs
    Nov 17 '18 at 20:42













1












1








1








I've install the phonegap-push-plugin for send push notification to android and iOS device.



No problem for android but when I try it on my iPhone, I can see some bug in the device console.



When I try to init(); the result into device console was :



Push Plugin register failed
4.13.0 - [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: aucune autorisation « aps-environment » valide détectée pour l’application


I do a lot of search but I didn't find anything was help me and is for that I ask it to the community now.



I build my application with Phonegap build cli 8.0.0
The plugin was : https://github.com/phonegap/phonegap-plugin-push at the master branch



push plugin config.xml part's :



<plugin name="phonegap-plugin-push" source="npm">
<param name="SENDER_ID" value="123456789" />
</plugin>


I send notification with FCM and a correct push certificat and I think my web service who send notification work correctly cause he perfectly work for the android branch.



iPhone 5c (A1456) iOS 10.3.3.



Thanks for you'r futur help.










share|improve this question














I've install the phonegap-push-plugin for send push notification to android and iOS device.



No problem for android but when I try it on my iPhone, I can see some bug in the device console.



When I try to init(); the result into device console was :



Push Plugin register failed
4.13.0 - [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: aucune autorisation « aps-environment » valide détectée pour l’application


I do a lot of search but I didn't find anything was help me and is for that I ask it to the community now.



I build my application with Phonegap build cli 8.0.0
The plugin was : https://github.com/phonegap/phonegap-plugin-push at the master branch



push plugin config.xml part's :



<plugin name="phonegap-plugin-push" source="npm">
<param name="SENDER_ID" value="123456789" />
</plugin>


I send notification with FCM and a correct push certificat and I think my web service who send notification work correctly cause he perfectly work for the android branch.



iPhone 5c (A1456) iOS 10.3.3.



Thanks for you'r futur help.







ios firebase cordova push-notification phonegap-pushplugin






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 17:16









Enzo BLANCHONEnzo BLANCHON

356213




356213












  • Switch the device to English so we can understand the exact error message thrown, and you can Google it as well. In French it won't help much.

    – andreszs
    Nov 17 '18 at 20:42

















  • Switch the device to English so we can understand the exact error message thrown, and you can Google it as well. In French it won't help much.

    – andreszs
    Nov 17 '18 at 20:42
















Switch the device to English so we can understand the exact error message thrown, and you can Google it as well. In French it won't help much.

– andreszs
Nov 17 '18 at 20:42





Switch the device to English so we can understand the exact error message thrown, and you can Google it as well. In French it won't help much.

– andreszs
Nov 17 '18 at 20:42












1 Answer
1






active

oldest

votes


















1














Check that you have enabled the Push Notifications capability in the General section from Xcode.



Also re-check all the suggestions from this post:
Firebase on Cordova doesn't trigger notifications on iOS Devices






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53305552%2fpush-plugin-register-failed%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Check that you have enabled the Push Notifications capability in the General section from Xcode.



    Also re-check all the suggestions from this post:
    Firebase on Cordova doesn't trigger notifications on iOS Devices






    share|improve this answer



























      1














      Check that you have enabled the Push Notifications capability in the General section from Xcode.



      Also re-check all the suggestions from this post:
      Firebase on Cordova doesn't trigger notifications on iOS Devices






      share|improve this answer

























        1












        1








        1







        Check that you have enabled the Push Notifications capability in the General section from Xcode.



        Also re-check all the suggestions from this post:
        Firebase on Cordova doesn't trigger notifications on iOS Devices






        share|improve this answer













        Check that you have enabled the Push Notifications capability in the General section from Xcode.



        Also re-check all the suggestions from this post:
        Firebase on Cordova doesn't trigger notifications on iOS Devices







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 17 '18 at 20:45









        andreszsandreszs

        1,84411819




        1,84411819





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53305552%2fpush-plugin-register-failed%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Barbados

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3