-
Notifications
You must be signed in to change notification settings - Fork 33
on_notification event not fires on iOS when app is closed & user clicks on interactive button #34
Comments
So you have background notification actions. If its background the app will not launch, instead its suppose to be handled internally. I assume the react framework will not be ready to receive events if thats the case. |
Actually it looks like a different event is fired https://github.com/globocom/react-native-ua/pull/35/files#diff-8df9edd5817d0f6fc4c5fadeebe5412dL213 |
So here is what I tried to achieve:
With my modification the following happens:
|
For background processing: Try sending push notifications with
If you use Urban Airship's Engage service, you can switch it on 'Delivery' page in iOS section. It is called 'Background Processing'. |
Hi @rlepinski ,
I've an issue with the on_notification event - it not fires if the following conditions are met:
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?
The text was updated successfully, but these errors were encountered: