Users are unsubscribed when sending push notification of the one singal

0

I have linked my application developed with the QUASAR framework compiled for android with Cordova with One Signal looking for the way to push notifications although the application is closed, seems to succeed in making the link with the following code

  document.addEventListener('deviceready', function () {

    var notificationOpenedCallback = function(jsonData) {
      console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));
    };
    window.plugins.OneSignal
      .startInit(<Aqui va mi api key>)
      .handleNotificationOpened(notificationOpenedCallback)
      //.enableNotificationsWhenActive(true)
      .endInit();

  }, false);

I think this part is ok because in the list of users of the One Signal of my application it appears that there is a subscribed user, the thing goes when I send a push message this is in 'pending' thing of 2 seconds and then it comes out I failed and the user (my cell where I do testing) is automatically unsubscribed

something interesting is that probe deactivating the wifi of my cell phone so that the notification never arrived and even so it is unsubscribe as soon as I send it

    
asked by Hector Ferrer 01.06.2018 в 03:34
source

0 answers