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

feat(wallet-mobile): Add remote notifications #3744

Merged
merged 30 commits into from
Jan 2, 2025

Conversation

michaeljscript
Copy link
Collaborator

@michaeljscript michaeljscript commented Nov 18, 2024

Description / Change(s) / Related issue(s)

Add Android and iOS push notifications

TODO

  • Add environment for dev/nightly/prod on android
  • Add/investigate environment config for nightly/prod on iOS
  • Ensure iOS does not ask for notification permission after booting the app regardless of feature flag
Ticket

YV-119

"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",
Copy link
Collaborator Author

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": [
Copy link
Collaborator Author

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

Comment on lines +31 to +33
filePath = [[NSBundle mainBundle] pathForResource:@"GoogleService-Info-Nightly" ofType:@"plist"];
} else {
filePath = [[NSBundle mainBundle] pathForResource:@"GoogleService-Info-Production" ofType:@"plist"];
Copy link
Collaborator Author

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

@michaeljscript
Copy link
Collaborator Author

michaeljscript commented Dec 20, 2024

@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

@michaeljscript michaeljscript marked this pull request as ready for review December 20, 2024 11:18
@michaeljscript michaeljscript changed the title feat(notifications): Add remote notifications (WIP) feat(notifications): Add remote notifications (DO NOT MERGE) Dec 20, 2024
@michaeljscript michaeljscript changed the title feat(notifications): Add remote notifications (DO NOT MERGE) feat(wallet-mobile): Add remote notifications (DO NOT MERGE) Jan 1, 2025
@michaeljscript michaeljscript changed the title feat(wallet-mobile): Add remote notifications (DO NOT MERGE) feat(wallet-mobile): Add remote notifications Jan 2, 2025
@michaeljscript
Copy link
Collaborator Author

Should be good to merge now

@@ -6,5 +6,5 @@ import {useStrings} from '../../common/useStrings'

export const OpenDeviceAppSettingsButton = (props: Omit<ButtonProps, 'title' | 'onPress' | ''>) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is it for the last ''

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to have been redundant

{
"project_info": {
"project_number": "1028338182097",
"project_id": "yoroi-mobile-dev-1",
Copy link
Member

@stackchain stackchain Jan 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it should be renamed away from dev-1 it looks like the other part is prod

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, this file should be deleted. It's an artifact from testing

{
"project_info": {
"project_number": "526970676782",
"project_id": "yoroi-mobile-99140",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this dev?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've switched to dev project, instead of using dev app in prod project

"client_info": {
"mobilesdk_app_id": "1:526970676782:android:ca69aadf225bb5e1a021bf",
"android_client_info": {
"package_name": "com.emurgo.dev"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is dev, yet 99140 looks prod.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a look

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Also made restrictions to production keys.

@stackchain stackchain merged commit 488e7bd into develop Jan 2, 2025
1 check passed
@stackchain stackchain deleted the feat/remote-notifications branch January 2, 2025 13:25
@stackchain stackchain mentioned this pull request Jan 2, 2025
31 tasks
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.

3 participants