Notification on tray even when app is in foreground




  • Avatar
    Arthur Skopintsev

    You can remove next code line in your PushNotification.m in order to enable these notifications:

    pushManager.showPushnotificationAlert = FALSE;

  • Avatar

    Is there any way to do it without modifying the source code? I don't want to have my own version just for a line of code. I will submit an issue in the github repo anyway. Thanks.

  • Avatar
    Max Konev

    At the moment you have to modify the code. For Android it is (

        //comment this code out if you would like to receive the notifications in the notifications center when the app is in foreground
        cordova.getActivity().registerReceiver(mReceiver, intentFilter);

    It will be a part of the settings in the next updates.

  • Avatar
    Max Konev


    For Cordova plugin it's supported in the latest published release.

    Use the following metadata key in AndroidManifest.xml

    <meta-data android:name="PW_NO_BROADCAST_PUSH" android:value="true" />

Please sign in to leave a comment.