react-native-quick-actions icon indicating copy to clipboard operation
react-native-quick-actions copied to clipboard

popInitialAction() returning null on cold start.

Open ShubhamBalgujar opened this issue 4 years ago • 3 comments

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

ShubhamBalgujar avatar Dec 17 '20 10:12 ShubhamBalgujar

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

akshitrcrm avatar May 01 '21 08:05 akshitrcrm

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.

anishtr4 avatar Jun 19 '21 17:06 anishtr4

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.

FansPro avatar Apr 06 '22 07:04 FansPro