I’m utilizing firebase realtime database with my Flutter Cell Software. I’m saving realtime information from an IoT machine, a cloud operate analyzes the info and generates analytics for my information on each day foundation. As in following Database Construction, the place “UsersData” is the foundation node, adopted by user-uid after which his realtime readings and analytics.
enter picture description right here
Analytics are nested/saved as in following tree.
Analytics accommodates information correctly laid yearly as observe.
enter picture description right here
I need to fetch information for under single day, once I run the next question on Android it really works completely high quality and it return me information for single day. However on iOS it returns information for complete node.
strive {
ultimate information = await _db
.youngster(
"UsersData/$uid/analytics/$selectedYear/$selectedMonth/$selectedDay")
.get();
return information.worth;
} catch (e) {
log("Error@getAnalyticsforSelectedDate " + e.toString());
}
I’m utilizing newest firebase packages with Flutter Model 3.7.10.
firebase_auth: ^4.9.0
firebase_core: ^2.15.1
firebase_core_platform_interface: ^4.8.0
firebase_database: ^10.2.5
firebase_storage: ^11.2.6
I’ve tried working on iOS 16 and iOS 12 to see if it was a compatibility concern with previous or new iOS model(identical outcomes on each).