react-native-ua
react-native-ua copied to clipboard
on_notification event not fires on iOS when app is closed & user clicks on interactive button
Hi @rlepinski ,
I've an issue with the on_notification event - it not fires if the following conditions are met:
- app closed
- user clicks on an interactive button of the Notification (actually I've only tried with Tell Me More button).
FYI: it works fine if I just click on the notification - on_notification fires properly in this case.
I did some digging in the iOS code and I think the issue lies in either https://github.com/globocom/react-native-ua/blob/master/ios/ReactNativeUAIOS/ReactNativeUAIOS.m#L202
or here https://github.com/globocom/react-native-ua/blob/master/ios/ReactNativeUAIOS/ReactNativeUAIOS.m#L224
Could it be that in this case the notificationResponse.actionIdentifier is not UANotificationDefaultActionIdentifier?