Hello,
I am working on a radio app(live audio URLs).
I am using Exoplayer for online streaming.
I send onesignal push notifications. If the app is still running in the background and someone clicks(open) the notification, it opens the app again(from starting) and results in double voice.
I had the same problem… my solution:
I used the blocks::
WHEN SCREEN1 ON APP PAUSE
CLOSE APPLICATION
to close app when minimized.
and when notification is trigged, app opens, and clear pushnotifications.