react-native-onesignal receive push notification without opening notification
问题 I have checked react-native-onesignal github README and it seems the only way to get the notification is to open which is through the onNotificationOpened() callback. Their documentation stated that: When any notification is opened or received the callback onNotification is called passing an object with the notification data. But onNotification clearly does not work. Is there any way to get the notification without opening the push notification or enabling the in-app alert notification? 回答1: