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: add push notifications #163

Draft
wants to merge 30 commits into
base: master
Choose a base branch
from
Draft

Conversation

reneaaron
Copy link
Contributor

@reneaaron reneaaron commented Oct 22, 2024

⚠️ Have to test in android

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)

@reneaaron reneaaron force-pushed the feat/push-notifications branch from 0289ded to 1c6e544 Compare October 31, 2024 09:38
@reneaaron reneaaron added this to the 1.8 milestone Nov 4, 2024
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