-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat(notifications): Add remote notifications (DO NOT MERGE) #3744
base: develop
Are you sure you want to change the base?
Conversation
…/yoroi into feat/remote-notifications
"react-native-pager-view": "^6.2.0", | ||
"react-native-paper": "4.12.8", | ||
"react-native-permissions": "^3.8.0", | ||
"react-native-permissions": "^5.2.1", |
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.
Updated to latest version
@@ -316,5 +319,14 @@ | |||
"compilerOptions": { | |||
"module": "commonjs" | |||
} | |||
} | |||
}, | |||
"reactNativePermissionsIOS": [ |
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 is not specified in Podfile anymore
filePath = [[NSBundle mainBundle] pathForResource:@"GoogleService-Info-Nightly" ofType:@"plist"]; | ||
} else { | ||
filePath = [[NSBundle mainBundle] pathForResource:@"GoogleService-Info-Production" ofType:@"plist"]; |
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.
Notifications on iOS may need to be tested on nightly as iOS notifications don't work in dev mode
const unsubscribeFromForegroundMessage = messaging().onMessage((remoteMessage) => { | ||
const {notification} = remoteMessage | ||
if (notification && notification.title && notification.body) { | ||
sendNotification({ |
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 will be refactored / changed in the UI task, as local notifications are just a toast messages instead of real notifications.
@stackchain this PR is pretty much ready, but let's leave the PR there until we release 5.2.0 to avoid any merge conflicts or unnecessary reverts |
Description / Change(s) / Related issue(s)
Add Android and iOS push notifications
TODO
Ticket
YV-119