-
Notifications
You must be signed in to change notification settings - Fork 96
iOS - Item press not working when app is in background #96
Comments
+1 |
Same in Android as well. |
For me listener was working fine but it was triggered before navigator was initialized. I added setTimeout as you can see in following snippet:
|
Hey! All good? Indeed. I was trying this library and this also does not work on ios when the app is in background for me. The following callback does not get triggered when ios app is on background I am using: and tested it in simulator and iphone 13 with ios 15 and 16. Thanks in advance! |
I figured out the problem I was having! It works now also for ios both closed or in background app state. So in the AppDelegate.m file you need to add as stated in the docs But careful do not put the import or the code inside an @ if (with no space between @ and if) in the code. So in my case the code I added it right before the last @ end (with no space between @ and end) and the import right on top near the other ones. So basically I was adding them inside @ if (with no space between @ and if) and so I guess the code was not loaded and run in my case so I was not able to make it work and it was failing silently. Hope it helps someone! Happy coding! |
In iOS (tested in 13.3.1) when the app is in background, the item press is not working. It seems that the event "quickActionShortcut" is never triggered. My react-native code is as you recommend in the documentation:
"react": "16.9.0",
"react-native": "0.61.2",
"react-native-quick-actions": "0.3.13"
The text was updated successfully, but these errors were encountered: