I am using OneSignal to send push notifications to my iOS app. My problem is, that when the app is in the foreground, every notification received shows up as an alert. This can be very frustrating for the user, especially given that it is a messaging app.
How could I prevent this?
I am targeting both iOS 9 and iOS 10.
Thank you!