-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: move push prompt logic to typescript, fix token registration bugs #8862
Conversation
This reverts commit 4aadef5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing with @MrSltun:
The prompt looks to be working great.
One bug we noticed though 🦟:
- when declining the notification permissions via the System Dialog (don't allow) on the Home tab, and moving to any other tab we get the
Artsy Would like to send you notifications
prompt once more
Record_2023-07-04-17-38-28.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just found out i didn't submit my review - i am very sorry.
compileSdkVersion = 31 | ||
targetSdkVersion = 31 | ||
compileSdkVersion = 33 | ||
targetSdkVersion = 33 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: It would be nice to ask our 3rd party QA party to test Android this time to make sure nothing broke as a side effect from this upgrade
@@ -52,7 +55,7 @@ | |||
"pod-install": "cd ios; bundle exec pod install; cd ..; ./scripts/post-pod-install.rb", | |||
"pod-install-repo-update": "cd ios; bundle exec pod install --repo-update; cd ..; ./scripts/post-pod-install.rb", | |||
"postinit-metaflags": "rimraf storybook.json", | |||
"postinstall": "yarn init-metaflags; prettier --write package.json; ./scripts/update-echo", | |||
"postinstall": "react-native setup-ios-permissions; yarn init-metaflags; prettier --write package.json; ./scripts/update-echo", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so much stuff is going on with rn permissions to set permissions properly 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a blocker though
This PR resolves MOPLAT-748
Description
Moves our push prompt logic to typescript and uses for Android as well.
Our intended push prompt logic:
Intended bug fixes:
Follow-ups:
For Reviewers
PR Checklist
To the reviewers 👀
Changelog updates
Changelog updates
Cross-platform user-facing changes
iOS user-facing changes
Android user-facing changes
Dev changes
Need help with something? Have a look at our docs, or get in touch with us.