Actions not working while the app is not active
Tapping on an action in a notification (Yes/No in my case) does not work while the app is not active. If the app is in the background or it is in the foreground everything works as expected. Are there any quick pointers or known solutions to this?
If needed I can provide code snippets.
Further investigation shows that pushNotification here is null in the above scenario.
PushNotificationIOS.getInitialNotification().then(pushNotification => {
this._handleIOSNotification(pushNotification);
});
I also have faced the same issue. I need to control the app in background without returning to foreground. When I've seen, the action delayed until users get back to the app. Probably there is a way to use action in background in native code because some apps are working in that way.
I also have faced the same issue. I need to control the app in background without returning to foreground. When I've seen, the action delayed until users get back to the app. Probably there is a way to use action in background in native code because some apps are working in that way.
@HyeonjuPark can you please share your native code here and also tell me in which place need to put that code ?