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


Log in to reply