Skip to content

Commit 9eee516

Browse files
econesaglpinonjosuecapgeminiairhernacapf4bbo
authored
Develop (#779)
* Migration to Notifications as Data dict (#718) * Sp7 682 notifications multilanguage (#719) * Changed notifications and added languages * Get data from backend * notifications fixed and finished * Go Route migration & testing (#720) * initial code * initial changes * From to login to Main page and profile redirects * reload fixed * url fixes and location web cache * dont show drawer, only navigation rail * advances in routes * advances in migration * completed migration for groups and contacts * profile, logout, phone verification, etc * go router migration without onboarding * phone verification migration * Solve test warning problems * User state test passed * login page test passed * contact profile test passed * Contacts page test passed * migration without tests * Friends page test passed * removed non used imports * current page not used anymore * Profile integration test * refactor and dead code elimination * removed dead code and changed names * name changes * homa map page test passed almost all test * Update map_page.dart * Update home_map_page_test.dart * Onboarding test passed * Progress page test passed * Selected contact test passed * Manage groups page test * View group page test * Solve multiple test problems * Groups page test passed * Manage group page passed * Delete unnecessary profile current pages * Update invite wayat with last_release * partial tests of share location service * share location service partial testing * partial testing app_router and delete unused methods * App Router full tested * Rename statusState to locationListener * services tests * Refactor test * Update contact_profile_page.dart * test env file * Update pubspec.yaml Co-authored-by: Eduard Conesa Guerrero <[email protected]> * Fixed mypy issues (#725) * Increase coverage of location listener service (#724) * initial code * initial changes * From to login to Main page and profile redirects * reload fixed * url fixes and location web cache * dont show drawer, only navigation rail * advances in routes * advances in migration * completed migration for groups and contacts * profile, logout, phone verification, etc * go router migration without onboarding * phone verification migration * Solve test warning problems * User state test passed * login page test passed * contact profile test passed * Contacts page test passed * migration without tests * Friends page test passed * removed non used imports * current page not used anymore * Profile integration test * refactor and dead code elimination * removed dead code and changed names * name changes * homa map page test passed almost all test * Update map_page.dart * Update home_map_page_test.dart * Onboarding test passed * Progress page test passed * Selected contact test passed * Manage groups page test * View group page test * Solve multiple test problems * Groups page test passed * Manage group page passed * Delete unnecessary profile current pages * Update invite wayat with last_release * partial tests of share location service * share location service partial testing * partial testing app_router and delete unused methods * App Router full tested * Rename statusState to locationListener * services tests * Refactor test * Update contact_profile_page.dart * test env file * Update pubspec.yaml * location listener service tests Co-authored-by: Eduard Conesa Guerrero <[email protected]> * Update poetry.lock * Missing Types PyYAML * 684 contacts number without prefix should use user prefix (#726) * remove checks in contact_service and added to import phones service with checks of prefix * Updated test for contact service and import phones service * Added condition of start * groups page layout (#728) * 463 own contact appearing in onboarding suggestions (#729) * Added check for user phone in suggestions * update test for suggestions controller and edit_profile_controller * Added test to import_phones_service * Changed 'where' to be an arrow function Co-authored-by: airherna <[email protected]> * Contact profile layout fixed * Manage request errors (500, 400, etc.) (#731) * redirect to error page on request error * Handle exceptions in requests * Fixed profile & edit profile layout (#733) * Fixed profile & edit profile layout * Update fontsize save button in edit profile page * Preferences page layout fixed (#732) * Show dialog if isDesktopOrWeb (#734) * Manage & View Group page fixed layout (#735) * Manage and view group page fixed layout * stay in center when the screen is medium size * Max size to bottom sheet in manage group page * Content added to error page (#737) * Remove push notification tokens no longer valid (#738) * Handle notifications results and remove bad tokens from user profile * Added handle_notifications_response test * fixed sent request layout in web and removed dividers (#739) * fixed sent request layout in web and removed dividers * with a request error goes to the 500 page * fixed profile layout in mid size screen * Check blob exists before delete (#756) * Fixed testing session bugs (#754) * WIP * navigation fixes WIP * fix navigation WIP * groups navigation fix WIP * fix tabbar unexpected null value (flutter bug) * Go walking by default to a contact in android * fix go back with OS in sent requests page * fixed delete account layout * Fixed group save button * Fixed profile save button * update groups after deleting one * removed commented code in manage_group_page * Future<void> annotations in groups_controller * Add additional information to 'hack' solution in contacts_page * fixed tests * 759 contacts profile os back button closes the app (#760) * Update routes to navigation to contact profile from different pages * Correct navigation inside contacts * 751 push notifications not received (#762) * Refactor Notifications Service * Update generate_coverage * International notifications * Feature/cache locations reduce reads (#761) * New algorithm * Reordering to avoid loops * Check share_location * Refactor user * Revert "Refactor user" This reverts commit e65437f. * Use location cache to reduce reads * Cache as variable * Fixed cache dict update * Add type check to MimeType (#764) * remove duplicate code * Temporally avoid test * fixed search bar does not move on tap & delete group optimistic updates (#768) * fixed search bar does not move on tap * optimistic updates on delete group * Blue line in groups picture when using default image removed (#769) * Pipeline/fix and testing (#771) * Pipeline changes * Update cloudbuild_prod_web.yaml * Update pubspec.yaml * Update cloudbuild_prod_web.yaml * Dependencies changes * Update app_icon.png * Update pubspec.yaml * Flutter image uploaded * Update pubspec.yaml * 763 refactor group validator (#772) * Update group page and its controller * Updated test * 681-notifications-redirect-to-friends-page (#774) * WIP * WIP * Refactor Notifications Service * WIP * WIP * redirect to requests page WIP * Notifications redirection Co-authored-by: Josué Ausejo Hernández <[email protected]> Co-authored-by: Eduard Conesa Guerrero <[email protected]> * Fix notifications not recevied on first login (#776) * Update gauth_service_impl.dart * fixed tests * Initial page is set to map when putting the app on background * Notifications code should not be executed in web Co-authored-by: LuisPi <[email protected]> Co-authored-by: Josué Ausejo Hernández <[email protected]> Co-authored-by: airherna <[email protected]> Co-authored-by: airherna <[email protected]> Co-authored-by: Fabián Scherle <[email protected]> Co-authored-by: Josué Ausejo Hernández <[email protected]>
1 parent 35cb5db commit 9eee516

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

wayat/frontend/lib/main.dart

+12-8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class _Wayat extends State<Wayat> with WidgetsBindingObserver {
112112
/// To avoid sending multiple `mapOpened` and `mapClosed` requests to the server concurrently
113113
final Lock _lock = Lock();
114114

115+
/// To avoid operations depending on the platform
116+
final PlatformService platformService = PlatformService();
117+
115118
/// Called when this object is inserted into the tree.
116119
///
117120
/// It should be changed as an [async] function or return a [Future] object.
@@ -142,14 +145,15 @@ class _Wayat extends State<Wayat> with WidgetsBindingObserver {
142145
GetIt.I.get<UserState>().currentUser != null) {
143146
await lifeCycleState.notifyAppOpenned();
144147
}
145-
146-
NotificationsServiceImpl.checkIfOpenedWithNotification(
147-
onOpenedWithNotification: (payload) {
148-
GetIt.I
149-
.get<GlobalKey<NavigatorState>>()
150-
.currentContext
151-
?.go(payload ?? "/");
152-
});
148+
if (platformService.isMobile) {
149+
NotificationsServiceImpl.checkIfOpenedWithNotification(
150+
onOpenedWithNotification: (payload) {
151+
GetIt.I
152+
.get<GlobalKey<NavigatorState>>()
153+
.currentContext
154+
?.go(payload ?? "/");
155+
});
156+
}
153157
}
154158
// Other states must execute a close map event, but detach is not included,
155159
// when the app is closed it can not send a request

0 commit comments

Comments
 (0)