self.ref = [[FIRDatabase database] reference];
[self.ref keepSynced:NO];
[self.ref observeEventType:FIRDataEventTypeValue withBlock:^(FIRDataSnapshot * _Nonnull snapshot) {
self.fireUser = [TSFireUser initWithSnapshot:snapshot];
[self configureController];
}];
Hi Саша,
How much data is being downloaded? Generally, it takes as long as the bytes take to travel over the internet. However, it could be a UI update issue as well.
The random snip of code you’ve included here doesn’t really show what’s going on with your help and won’t help us get any closer to a solution. But you could start by turning on debug logging (samples below) and seeing what’s going on behind the scenes. And then either using a debugger or adding some logging to your iOS code to compare the times and see where the bottleneck is.
JS: firebase.database.enableLogging(true);
iOS: [FIRDatabase setLoggingEnabled:YES];
Android: FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);
Identifying the bottleneck would be the first step.
☼, Kato
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/23865f1f-83b4-4b42-af70-91fa8032b764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.