iOS | getting device native push notification popup

Hi Folks,
Greetings!


I have implemented push notification functionality in my mobile app using oneSignal for Android and iOS.

Android working fine.

Issue in iOS device is displaying device native popup on push notification as I implemented custom popup to show push notification message on "OneSignalOnNotificationReceived" action. But this action is not getting called when push notification come, device opened its own popup to show push message.

I would like to block this native popup and display custom one like working in Android devices.


Other hand

Android: App is already opened and then notification came , so OneSignalOnNotificationReceived action is called automatically, there I have set flag to show push message in custom popup.

iOS: App is already opened and then notification came , so OneSignalOnNotificationReceived action is did not called, but device own popup shown up with push message. So my query is to block device own popup and should call OneSignalOnNotificationReceived action automatically so that custom popup should display.

Kindly let me know if need more details.

Thanks

Meer Imtiyaz wrote:

Hi Folks,
Greetings!


I have implemented push notification functionality in my mobile app using oneSignal for Android and iOS.

Android working fine.

Issue in iOS device is displaying device native popup on push notification as I implemented custom popup to show push notification message on "OneSignalOnNotificationReceived" action. But this action is not getting called when push notification come, device opened its own popup to show push message.

I would like to block this native popup and display custom one like working in Android devices.


Other hand

Android: App is already opened and then notification came , so OneSignalOnNotificationReceived action is called automatically, there I have set flag to show push message in custom popup.

iOS: App is already opened and then notification came , so OneSignalOnNotificationReceived action is did not called, but device own popup shown up with push message. So my query is to block device own popup and should call OneSignalOnNotificationReceived action automatically so that custom popup should display.

Kindly let me know if need more details.

Thanks

Hi Folks,
Greetings!

Could any one let me know how to show notification message in custom popup instead of device own popup in iOS?

Your help is very appreciable.

Thanks