-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Add emergency button to caregiver dashboard and STML user screen, integrate notification service #228
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
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b40c135
feat: add emergency button to (caregiver dashboard, stml_user_screen)…
Layesuza e40f2a4
feat: add emmergency call 911 logic to caregiver notification_service
Layesuza 4ae42a0
Resolved merge conflicts between feature/emergency-button and main
Layesuza 33e5bfb
Merge branch 'developer' into feature/emergency-button
aholt014 14990b4
feat: add emergency button to (caregiver dashboard, stml_user_screen)…
Layesuza fd58f55
feat: add emmergency call 911 logic to caregiver notification_service
Layesuza 38d1bb4
add flutter generated plugins
Layesuza 41b837f
Merge: Updated AndroidManifest.xml after conflict resolution
Layesuza abfee5e
Remove team_a and team_b folders
Layesuza 32a455b
Update generated plugin files
Layesuza a461105
Update .gitignore to exclude team_a and team_b
Layesuza 2ee1be8
Merge branch 'developer' and resolve conflicts
Layesuza 7fb7530
Add emergency button feature with caregiver alerts and update Flutter…
Layesuza 0f80486
Update .gitignore to exclude team_a and team_b
Layesuza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "projects": { | ||
| "default": "spring2025-81f5b" | ||
| } | ||
| } |
Binary file not shown.
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 |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Flutter", | ||
| "type": "dart", | ||
| "request": "launch", | ||
| "program": "lib/main.dart" | ||
| }, | ||
| { | ||
| "name": "team_a", | ||
| "cwd": "team_a", | ||
| "request": "launch", | ||
| "type": "dart" | ||
| }, | ||
| { | ||
| "name": "team_a (profile mode)", | ||
| "cwd": "team_a", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "profile" | ||
| }, | ||
| { | ||
| "name": "team_a (release mode)", | ||
| "cwd": "team_a", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "release" | ||
| }, | ||
| { | ||
| "name": "stml_application", | ||
| "cwd": "STML\\stml_application", | ||
| "request": "launch", | ||
| "type": "dart" | ||
| }, | ||
| { | ||
| "name": "stml_application (profile mode)", | ||
| "cwd": "STML\\stml_application", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "profile" | ||
| }, | ||
| { | ||
| "name": "stml_application (release mode)", | ||
| "cwd": "STML\\stml_application", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "release" | ||
| }, | ||
| { | ||
| "name": "teamA", | ||
| "cwd": "team_a\\teamA", | ||
| "request": "launch", | ||
| "type": "dart" | ||
| }, | ||
| { | ||
| "name": "teamA (profile mode)", | ||
| "cwd": "team_a\\teamA", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "profile" | ||
| }, | ||
| { | ||
| "name": "teamA (release mode)", | ||
| "cwd": "team_a\\teamA", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "release" | ||
| }, | ||
| { | ||
| "name": "yappy", | ||
| "cwd": "team_b\\yappy", | ||
| "request": "launch", | ||
| "type": "dart" | ||
| }, | ||
| { | ||
| "name": "yappy (profile mode)", | ||
| "cwd": "team_b\\yappy", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "profile" | ||
| }, | ||
| { | ||
| "name": "yappy (release mode)", | ||
| "cwd": "team_b\\yappy", | ||
| "request": "launch", | ||
| "type": "dart", | ||
| "flutterMode": "release" | ||
| } | ||
| ] | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "cmake.ignoreCMakeListsMissing": true, | ||
| "dart.flutterSdkPath": "C:\\flutter_windows_3.29.0-stable\\flutter" | ||
| } |
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
18 changes: 15 additions & 3 deletions
18
STML/stml_application/android/app/src/main/AndroidManifest.xml
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import 'package:firebase_messaging/firebase_messaging.dart'; | ||
|
|
||
| class HelpService { | ||
| final FirebaseMessaging _firebaseMessaging = FirebaseMessaging.instance; | ||
|
|
||
| Future<void> sendHelpNotification() async { | ||
| // Remplacez 'caregiver_device_token' par le token du soignant | ||
| await _firebaseMessaging.sendMessage( | ||
| to: 'caregiver_device_token', | ||
| data: { | ||
| 'type': 'help_request', | ||
| 'message': 'The STML user has requested help.', | ||
| }, | ||
| ); | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
drop this commit - doesn't need to be merged