-
Notifications
You must be signed in to change notification settings - Fork 7
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
Open
reneaaron
wants to merge
42
commits into
master
Choose a base branch
from
feat/push-notifications
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 31 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
1c6e544
feat: add push notifications
reneaaron 1184ab3
fix: lint errors
reneaaron 7a42fde
fix: local notifications
reneaaron 41b4299
fix: decrypt content
reneaaron a572e10
chore: improve notifications support
im-adithya 184548a
feat: add notification service extension
im-adithya f4bf55d
feat: add messaging service for android notifications
im-adithya ba47b38
chore: changes
im-adithya 814959e
chore: add message service config plugin
im-adithya 979dfb2
chore: use our own modified package
im-adithya 4957141
chore: import shared preferences only in android
im-adithya 9b4a596
chore: add google services json to env
im-adithya 6a5ccc4
chore: further changes
im-adithya c84bb84
fix: handle linking hook
im-adithya 572c59a
chore: more changes
im-adithya 0db8b05
chore: add notification handling
im-adithya 5080ea3
chore: use transaction in deep link
im-adithya b9103c4
chore: add notification icon in android
im-adithya 45908cd
chore: pass wallet id to transaction screen
im-adithya 3f74bcc
chore: set wallet in use effect
im-adithya 9c9c5c7
chore: remove processing from uibackgroundmode
im-adithya c59e919
Merge branch 'master' into task-notifications
im-adithya 50654c2
Merge pull request #188 from getAlby/task-notifications
im-adithya e937d2c
chore: rename wallet info library
im-adithya 408b6ec
chore: remove duplication
im-adithya 8ee413e
chore: remove splash from app config
im-adithya 8e089d1
chore: check if notifications are enabled while editing and removing …
im-adithya 06be6ba
chore: check if wallet has notifications capability before registering
im-adithya ba56cf3
chore: also check for notifications capability
im-adithya b390f06
chore: allow payment sent notifications
im-adithya 57b7567
feat: prompt for notifications if not enabled
im-adithya fb64bcf
chore: add comments and organize code
im-adithya c982b5e
chore: add comment about notification deeplink
im-adithya c76f519
fix: keep Expo Go working
im-adithya a02098d
chore: add notifications note to readme
im-adithya f50fae2
chore: use nip44 and versioning
im-adithya c71b201
chore: add nip44 decryption in ios
im-adithya 9493d88
chore: add nip44 decryption in android
im-adithya 64ff15e
fix: deep link in ios
im-adithya 760f7a1
chore: add comment to migrate to 1.0 in future
im-adithya 7d28193
chore: further changes and fixes
im-adithya 71b2940
chore: use persisted expo token
im-adithya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,7 @@ yarn-error.* | |
# typescript | ||
*.tsbuildinfo | ||
|
||
android | ||
ios | ||
android | ||
|
||
google-services.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
import withMessagingServicePlugin from "./plugins/withMessageServicePlugin"; | ||
|
||
export default ({ config }) => { | ||
return { | ||
...config, | ||
name: "Alby Go", | ||
slug: "alby-mobile", | ||
version: "1.8.1", | ||
scheme: ["lightning", "bitcoin", "alby", "nostr+walletconnect"], | ||
orientation: "portrait", | ||
icon: "./assets/icon.png", | ||
userInterfaceStyle: "automatic", | ||
newArchEnabled: true, | ||
assetBundlePatterns: ["**/*"], | ||
plugins: [ | ||
[ | ||
withMessagingServicePlugin, | ||
{ | ||
androidFMSFilePath: "./assets/MessagingService.kt", | ||
}, | ||
], | ||
[ | ||
"expo-notification-service-extension-plugin", | ||
{ | ||
mode: "production", | ||
iosNSEFilePath: "./assets/NotificationService.m", | ||
}, | ||
], | ||
[ | ||
"expo-splash-screen", | ||
{ | ||
backgroundColor: "#0B0930", | ||
image: "./assets/icon.png", | ||
imageWidth: "150", | ||
}, | ||
], | ||
[ | ||
"expo-local-authentication", | ||
{ | ||
faceIDPermission: "Allow Alby Go to use Face ID.", | ||
}, | ||
], | ||
[ | ||
"expo-camera", | ||
{ | ||
cameraPermission: | ||
"Allow Alby Go to use the camera to scan wallet connection and payment QR codes", | ||
recordAudioAndroid: false, | ||
}, | ||
], | ||
[ | ||
"expo-font", | ||
{ | ||
fonts: [ | ||
"./assets/fonts/OpenRunde-Regular.otf", | ||
"./assets/fonts/OpenRunde-Medium.otf", | ||
"./assets/fonts/OpenRunde-Semibold.otf", | ||
"./assets/fonts/OpenRunde-Bold.otf", | ||
], | ||
}, | ||
], | ||
[ | ||
"expo-notifications", | ||
{ | ||
icon: "./assets/notification.png", | ||
}, | ||
], | ||
"expo-router", | ||
"expo-secure-store", | ||
], | ||
ios: { | ||
supportsTablet: true, | ||
bundleIdentifier: "com.getalby.mobile", | ||
config: { | ||
usesNonExemptEncryption: false, | ||
}, | ||
infoPlist: { | ||
LSMinimumSystemVersion: "12.0", | ||
UIBackgroundModes: ["remote-notification"], | ||
}, | ||
userInterfaceStyle: "automatic", | ||
}, | ||
android: { | ||
package: "com.getalby.mobile", | ||
icon: "./assets/icon.png", | ||
adaptiveIcon: { | ||
foregroundImage: "./assets/adaptive-icon.png", | ||
backgroundImage: "./assets/adaptive-icon-bg.png", | ||
monochromeImage: "./assets/monochromatic.png", | ||
}, | ||
permissions: [ | ||
"android.permission.CAMERA", | ||
"android.permission.USE_BIOMETRIC", | ||
"android.permission.USE_FINGERPRINT", | ||
], | ||
userInterfaceStyle: "automatic", | ||
googleServicesFile: process.env.GOOGLE_SERVICES_JSON, | ||
}, | ||
extra: { | ||
eas: { | ||
projectId: "294965ec-3a67-4994-8794-5cc1117ef155", | ||
}, | ||
}, | ||
owner: "roland_alby", | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Notifications } from "../../../pages/settings/Notifications"; | ||
|
||
export default function Page() { | ||
return <Notifications />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 good UX? CC @reneaaron