-
Notifications
You must be signed in to change notification settings - Fork 637
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
Notification subscription endpoints (pt2) #5208
Notification subscription endpoints (pt2) #5208
Conversation
cbd8978
to
2d7be88
Compare
@@ -59,6 +59,7 @@ declare module 'react-native-dotenv' { | |||
export const CLOUDINARY_API_KEY: string; | |||
export const CLOUDINARY_API_SECRET: string; | |||
export const CLOUDINARY_CLOUD_NAME: string; | |||
export const NOTIFICATIONS_API_KEY: string; |
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.
This was merged in rainbow env here: https://github.com/rainbow-me/rainbow-env/pull/52
@@ -91,6 +91,7 @@ function generateError({ | |||
}) { | |||
const message = | |||
responseBody?.error || | |||
responseBody?.message || |
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.
we often use "message" in our RainbowErrors and without this, it was often falling back to the generic "There was an error with the request"
93ebbc4
to
c85f7df
Compare
59c2407
to
3cdf46c
Compare
c85f7df
to
5813d7b
Compare
Includes retries if the current FCM token is out of date.
…s back to generic message less
3cdf46c
to
8d1adb6
Compare
Fixes APP-887
This PR is a noop.
This adds (currently unused) functionality for subscribing to notifications and saving the new notifications settings.