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

Feature/and 27 push notifications #112

Merged
merged 36 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
307c8ed
Add notifications preferences screen
Radiokot Jun 20, 2024
dc45353
Move notifications permission dialog to new pkg
Radiokot Jun 20, 2024
c8bbe87
Remove notifications from the welcome screen
Radiokot Jun 20, 2024
deb55f9
Request notification permission on the pref screen
Radiokot Jun 24, 2024
511b302
Make acc overview handle multiple popup dialogs
Radiokot Jun 24, 2024
0f47bfa
Merge branch 'main' into feature/AND-27-push-notifications
Radiokot Jul 1, 2024
cd79074
Add TX notifications manager stub
Radiokot Jul 1, 2024
2b617ca
Add standalone CCD received notification
Radiokot Jul 4, 2024
eb3604d
Merge branch 'main' into feature/AND-27-push-notifications
Radiokot Jul 8, 2024
9d641ce
Add standalone CIS-2 transaction notification
Radiokot Jul 8, 2024
0a02579
Merge branch 'main' into feature/AND-27-push-notifications
Radiokot Jul 9, 2024
00aa6ac
Add notice dialog for newly received tokens
Radiokot Jul 9, 2024
51822dc
Get rid of AccountContract
Radiokot Jul 9, 2024
60c60db
Add newly received flag for tokens
Radiokot Jul 10, 2024
3d6fa9d
Show notice circle for newly received tokens
Radiokot Jul 10, 2024
666412f
Show the notice dialog for newly received tokens
Radiokot Jul 10, 2024
b6e1b3d
Unmark newly received token once the notice is shown
Radiokot Jul 11, 2024
c4936fb
Merge branch 'main' into feature/AND-27-push-notifications
Radiokot Jul 19, 2024
86c1c16
Add FCM service stub
Radiokot Jul 25, 2024
be87c19
Add announcement (default) notifications
Radiokot Jul 30, 2024
da6f3e4
Handle CIS2 notifications in the FCM service
Radiokot Jul 30, 2024
5c00164
Merge branch 'main' into feature/AND-27-push-notifications
Radiokot Aug 8, 2024
846ed74
Merge branch 'main' into feature/AND-27-push-notifications
Radiokot Aug 12, 2024
3afaebe
Add backend for notificaitons API
Radiokot Aug 13, 2024
feb2428
Update subscriptions from notifications prefs
Radiokot Aug 13, 2024
a1121df
Update notification's subscriptions
zaiatsartem Aug 22, 2024
5ee9967
Add loader while switching notification states
zaiatsartem Aug 22, 2024
201b9e1
Change contract_index to contract_address
Radiokot Aug 26, 2024
75f94e4
Update subscription request
zaiatsartem Aug 28, 2024
b85b8d0
Fix switches initial state
zaiatsartem Aug 28, 2024
63721f0
Change notification data payload
zaiatsartem Sep 2, 2024
6e3cdb4
Replace LiveData with Flow
zaiatsartem Sep 2, 2024
0508ed3
Merge branch 'main' into feature/AND-27-push-notifications
zaiatsartem Sep 2, 2024
b2a4187
Update notification subscription after add new account
zaiatsartem Sep 2, 2024
8d9e34e
Update notification subscription when accounts added through recovery…
zaiatsartem Sep 2, 2024
6965687
Fixes
zaiatsartem Sep 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ android {
buildConfigField("String", "ENV_NAME", "\"staging\"")
buildConfigField("String", "URL_PROXY_BASE", "\"https://wallet-proxy.stagenet.concordium.com\"")
buildConfigField("String", "URL_EXPLORER_BASE", "\"https://stagenet.ccdscan.io/\"")
buildConfigField("String", "URL_NOTIFICATIONS_BASE", "\"https://notification-api.stagenet.concordium.com/api/\"")

buildConfigField("boolean", "SHOW_GTU_DROP", "true")

Expand Down Expand Up @@ -124,6 +125,7 @@ android {
buildConfigField("String", "ENV_NAME", "\"testnet\"")
buildConfigField("String", "URL_PROXY_BASE", "\"https://wallet-proxy.testnet.concordium.com\"")
buildConfigField("String", "URL_EXPLORER_BASE", "\"https://testnet.ccdscan.io/\"")
buildConfigField("String", "URL_NOTIFICATIONS_BASE", "\"https://notification-api.testnet.concordium.com/api/\"")

buildConfigField("boolean", "SHOW_GTU_DROP", "true")

Expand Down Expand Up @@ -152,6 +154,7 @@ android {
buildConfigField("String", "ENV_NAME", "\"production\"")
buildConfigField("String", "URL_PROXY_BASE", "\"https://wallet-proxy.mainnet.concordium.software\"")
buildConfigField("String", "URL_EXPLORER_BASE", "\"https://ccdscan.io/\"")
buildConfigField("String", "URL_NOTIFICATIONS_BASE", "\"https://notification-api.mainnet.concordium.software/api/\"")

buildConfigField("boolean", "SHOW_GTU_DROP", "false")

Expand Down Expand Up @@ -338,6 +341,9 @@ dependencies {

// Matomo analytics
implementation 'com.github.matomo-org:matomo-sdk-android:4.1.4'

// Push notifications
implementation 'com.google.firebase:firebase-messaging:24.0.0'
}

task printVersionName {
Expand Down
Loading