exponea / exponea-react-native-sdk

MIT License
8 stars 13 forks source link

None of the callbacks are called if notification doesn't open in iOS #11

Closed kaystd closed 3 years ago

kaystd commented 3 years ago

Hello! In iOS (unlike Android) none of the callbacks are called if notification doesn't open and stays in notification center, or if it dismissed. Is this behavior expected, and if so, how should the application receive the data contained in this notification?

wassil commented 3 years ago

Hi, that is expected behavior. You can use silent push notifications to send data into your application.

kaystd commented 3 years ago

Is it technically possible to take data from standard push, not silent one in that case?

wassil commented 3 years ago

Yes, it is possible, but it has to be done inside notification service extension and then shared with the main application e.g. using UserDefaults