jordanbyron / react-native-quick-actions

A react-native interface for Touch 3D home screen quick actions
MIT License
1.06k stars 93 forks source link

popInitialAction() returning null on cold start. #104

Open ShubhamBalgujar opened 3 years ago

ShubhamBalgujar commented 3 years ago

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

akshitrcrm commented 3 years ago

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

anishtr4 commented 3 years ago

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.

FansPro commented 2 years ago

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#24 (comment)

Amazing! It works.