title: How to disable OneSignal on android?
body: <p>I want to use <code>OneSignal</code> on my app to send notifications to my users, and it is well documented and good, you should just act like this:</p>
  
  <p><a href="https://documentation.onesignal.com/docs/android-sdk-setup" rel="nofollow noreferrer">https://documentation.onesignal.com/docs/android-sdk-setup</a></p>
  
  <pre><code>OneSignal.startInit(this)
      .inFocusDisplaying(OneSignal.OSInFocusDisplayOption.Notification)
      .unsubscribeWhenNotificationsAreDisabled(true)
      .init();
  </code></pre>
  
  <p>The problem is, I want to just send notification to my logged in users, so if a user logged out, I dont want him to receive notification, how can I disable <code>OneSignal</code> after it's inited?</p>
  
  <p>I don't want to handle this on server, it should be some way to stop <code>OneSignal</code> service, I think.</p>