ios icon indicating copy to clipboard operation
ios copied to clipboard

Actions not working while the app is not active

Open zgordon01 opened this issue 5 years ago • 3 comments

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.

zgordon01 avatar Sep 14 '20 18:09 zgordon01

Further investigation shows that pushNotification here is null in the above scenario.

PushNotificationIOS.getInitialNotification().then(pushNotification => {	
        this._handleIOSNotification(pushNotification);	
      });

zgordon01 avatar Sep 14 '20 20:09 zgordon01

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 avatar Dec 01 '20 02:12 HyeonjuPark

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 ?

ForamPattha avatar Jan 15 '21 11:01 ForamPattha