You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, you aren't supposed to call "onDestroy", but "stopSelf" instead.
Second, it's better to have a foreground service instead, to keep it staying, and to avoid the notification of the OS telling that the app has something that's drawn on top.