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: notification improvements #188

Merged
merged 148 commits into from
Jan 9, 2025
Merged

Conversation

im-adithya
Copy link
Member

@im-adithya im-adithya commented Nov 11, 2024

TODOs

Description

  • Adds notification service extension for iOS
  • Overrides onMessageReceived function in Android

Testing

  • Replace NOSTR_API_URL to local http-nostr url

  • Run feat: add endpoint for registering alby go notifications http-nostr#128 and use ngrok http 8888

  • Copy the ngrok link to NOSTR_API_URL in constants

  • If running on android, download google-services.json from firebase console and add it to the root of your directory and set this in your .env.local: GOOGLE_SERVICES_JSON=./google-services.json

  • Connect your device via cable and run yarn install and then npx expo run:ios --device / npx expo run:android --device

  • Enable notifications in settings and receive a transaction to get notified (tapping on the notification also switches to the right wallet and takes you to the transaction screen)

@im-adithya im-adithya changed the base branch from master to feat/push-notifications November 11, 2024 16:08
@@ -0,0 +1,117 @@
#import "NotificationService.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this only for iOS? should it be in a dedicated directory?

return;
}

NSString *sharedSecretString = walletInfo[@"sharedSecret"];
Copy link
Contributor

Choose a reason for hiding this comment

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

could the name be more clear, maybe nip04SharedSecret? or dmSharedSecret? and does this change much if we plan to very soon move to NIP-44?

} catch (error) {
errorToast(error);
}
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

rather than a huge if content with an else right at the bottom, could you do the check at the top and exit the function early?

im-adithya and others added 28 commits December 27, 2024 12:56
fix: use splash screen config plugin
fix: settings button in header
chore: update all dependencies
chore: remove logo from qr codes
@im-adithya
Copy link
Member Author

Merging this into feat/push-notifications branch as it is not upto date with master

@im-adithya im-adithya merged commit 50654c2 into feat/push-notifications Jan 9, 2025
2 checks passed
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.

2 participants