-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: feat/push-notifications
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,117 @@ | |||
#import "NotificationService.h" |
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.
is this only for iOS? should it be in a dedicated directory?
return; | ||
} | ||
|
||
NSString *sharedSecretString = walletInfo[@"sharedSecret"]; |
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.
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 { |
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.
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?
Description
Testing
Replace
NOSTR_API_URL
to local http-nostr urlRun 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)