Skip to content
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

Closed

Conversation

jinchung
Copy link
Member

@jinchung jinchung commented Nov 29, 2023

Fixes APP-887

This PR is a noop.

This adds (currently unused) functionality for subscribing to notifications and saving the new notifications settings.

@jinchung jinchung changed the base branch from develop to @jin/notifs-sub-network-settings November 29, 2023 17:44
@jinchung jinchung force-pushed the @jin/notif-new-sub-endpoint branch 9 times, most recently from cbd8978 to 2d7be88 Compare November 29, 2023 22:54
@jinchung jinchung marked this pull request as ready for review November 29, 2023 22:54
@@ -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;
Copy link
Member Author

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

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"

Copy link

linear bot commented Dec 4, 2023

@jinchung jinchung force-pushed the @jin/notifs-sub-network-settings branch from 93ebbc4 to c85f7df Compare January 9, 2024 00:11
@jinchung jinchung force-pushed the @jin/notif-new-sub-endpoint branch from 59c2407 to 3cdf46c Compare January 9, 2024 00:13
@jinchung jinchung force-pushed the @jin/notifs-sub-network-settings branch from c85f7df to 5813d7b Compare January 9, 2024 18:24
@jinchung jinchung force-pushed the @jin/notif-new-sub-endpoint branch from 3cdf46c to 8d1adb6 Compare January 9, 2024 18:25
@jinchung jinchung closed this Apr 9, 2024
@jinchung jinchung deleted the @jin/notif-new-sub-endpoint branch September 22, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant