Send Push Notifications if logged in OneSignal

1

I have an Android application where I am implementing push notifications with OneSignal, I did all the configuration of the GCM and OneSignal to be able to send notifications using the following line in my MainActivity within the onCreate

OneSignal.startInit(this).init();

As it works and sends notifications when installing the application, but I would like to only send notifications when the user is logged in and once the notifications arrive and when logging out, the notifications do not arrive and it is queued until log in.

Thanks

    
asked by Santiago 03.09.2016 в 00:18
source

0 answers