react-native-quick-actions
react-native-quick-actions copied to clipboard
popInitialAction() returning null on cold start.
componentDidMount(){ QuickActions.popInitialAction() .then(data => console.log(data) .catch(console.error); } }
Return null in data. DeviceEventEmitter is working but on cold start it is not working.
ReactNative - 0.60.5 react-native-quick-actions - 0.3.13
Hi @ShubhamBalgujar , try disabling Debug options and then check, after a lot of research, I found a comment on this issue. Stopping JS Debug solved the issue for me.
const result = await QuickActions.popInitialAction() console.log('Quick action result ', result); alert(result.type)
https://github.com/react-native-push-notification-ios/push-notification-ios/issues/24#issuecomment-576634633
Hi @ShubhamBalgujar , try disabling Debug options and then check, after a lot of research, I found a comment on this issue. Stopping JS Debug solved the issue for me.
const result = await QuickActions.popInitialAction() console.log('Quick action result ', result); alert(result.type)
react-native-push-notification-ios/push-notification-ios#24 (comment)
Do you have a working example ? I have tried this disabling debug still its not working.
Hi @ShubhamBalgujar , try disabling Debug options and then check, after a lot of research, I found a comment on this issue. Stopping JS Debug solved the issue for me.
const result = await QuickActions.popInitialAction() console.log('Quick action result ', result); alert(result.type)
Amazing! It works.