Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

How to set handle when user click notification to open my app



  • Hi all. Iam newbie.

    I am using Monaca to build my Android app.
    My app has notification feature.

    I want to handle event when user click notification to open app. What event do I should use ?
    This is my code about notification:

    document.addEventListener('deviceready', function () {
            window.NCMB.monaca.setDeviceToken(
                  "XXXX",
                  "YYYY",
                  "ZZZZ",
                  function(){},
                  function(error){}
            );
    
            window.NCMB.monaca.setReceiptStatus(true);
    });
    

    Thanks all :)