-
Notifications
You must be signed in to change notification settings - Fork 5
Background service to check if node goes offline #994
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
Merged
+704
−182
Merged
Changes from 34 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
130d6fc
WIP: adding notifications pgk
AlaaElattar 2952f0e
fix ios issue and show notification with offline nodes
AlaaElattar 783e580
remove unused import && undo changes in podfile.lock
AlaaElattar fd5ee16
WIP: adding permissions for android
AlaaElattar e7939be
WIP: downgrade background_fetch
AlaaElattar b8d1983
WIP: downgrade background_fetch
AlaaElattar d8ec42a
clear cached background_fetch
AlaaElattar 09fcf79
specify ndk version
AlaaElattar 039d0a7
undo nkd version setup
AlaaElattar 79255c0
WIP: add debug logs
AlaaElattar 7536668
WIP: debug background_fetch version
AlaaElattar c63e68d
update pubspec.lock
AlaaElattar 62ac54d
update build.gradle
AlaaElattar e3eeef0
WIP: remove gradle cache
AlaaElattar e79387a
fix command
AlaaElattar d3aa5a1
WIP: Update build.gradle
AlaaElattar 940a189
WIP: fix space
AlaaElattar 2f74467
undo latest commit
AlaaElattar c5d36b4
add maven url in build.gradle
AlaaElattar 58933f1
Add close button for confirmation dialog (#976)
AlaaElattar a719351
Handle non-loading for delete wallet (#973)
AlaaElattar bd2625d
Prevent PIN Entry Attempts During 30 Second Lockout Period (#989)
AlaaElattar d0cdb36
Fix transactions paginations (#992)
zaelgohary f8d3766
handle duplicated daily (#986)
AlaaElattar 9dfcd94
Update the packages version for background_fetch & flutter_local_noti…
AhmedHanafy725 6a60a02
Request to enable the notification service on android
AhmedHanafy725 4532ecb
Revert the changes in the wrong manifest file
AhmedHanafy725 c4873e7
Update the gradle repos
AhmedHanafy725 d28d9b2
Update build gradle dependencies
AhmedHanafy725 d9453e7
Update the manifest permissions
AhmedHanafy725 d9f57dd
Merge branch 'development' into development_check_nodes
AhmedHanafy725 eaf9eab
only show notifications for nodes down last 2 days && group notificat…
AlaaElattar 78a059b
remove unused import
AlaaElattar 7bcfb88
update checking nodes for last 7 days
AlaaElattar 01c6b32
Update app/lib/services/background_service.dart
AlaaElattar ff26022
apply pr comments && apply the exponential notification
AlaaElattar 56afeb9
handle notification grouping
AlaaElattar 69ba0e6
handled tapping on notification
AlaaElattar 3aeeeeb
Hide show phrase (#995)
zaelgohary 48b9cd1
Handle duplicated contacts in favorite List (#983)
AlaaElattar 7b09e6a
Fix auth timeout routing (#1000)
zaelgohary b877ea9
fix ios issue and show notification with offline nodes
AlaaElattar ffead77
update pubspec.lock
AlaaElattar e0b7121
Merge branch 'development' into development_check_nodes
AlaaElattar 4a4be60
fix workflow
AlaaElattar a0016f7
fix equation && workflow
AlaaElattar d7a1b80
undo the equation
AlaaElattar c2b8c0b
fixed time conversion
AlaaElattar 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,13 +1,27 @@ | ||
import UIKit | ||
import Flutter | ||
import flutter_local_notifications | ||
|
||
@UIApplicationMain | ||
@objc class AppDelegate: FlutterAppDelegate { | ||
override func application( | ||
override func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { | ||
completionHandler([.alert, .badge, .sound]) | ||
} | ||
|
||
override func application( | ||
_ application: UIApplication, | ||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | ||
) -> Bool { | ||
FlutterLocalNotificationsPlugin.setPluginRegistrantCallback { (registry) in | ||
GeneratedPluginRegistrant.register(with: registry) | ||
} | ||
|
||
if #available(iOS 10.0, *) { | ||
UNUserNotificationCenter.current().delegate = self as UNUserNotificationCenterDelegate | ||
} | ||
|
||
GeneratedPluginRegistrant.register(with: self) | ||
return super.application(application, didFinishLaunchingWithOptions: launchOptions) | ||
|
||
} | ||
} | ||
} |
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.