Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

popInitialAction() returning null on cold start. #104

Open
ShubhamBalgujar opened this issue Dec 17, 2020 · 3 comments
Open

popInitialAction() returning null on cold start. #104

ShubhamBalgujar opened this issue Dec 17, 2020 · 3 comments

Comments

@ShubhamBalgujar
Copy link

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
Copy link

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)

@anishtr4
Copy link

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
Copy link

FansPro commented Apr 6, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants