Firestore reconnection takes up to 10 minutes
Xamarin.Android Version (eg: 6.0):
10.1.3.7
Operating System & Version (eg: Mac OSX 10.11):
Win10 Home 64
Google Play Services Version (eg: 8.4.0):
71.1610.0
Describe your Issue:
Once the connection is dropped, the firestore listeners doesn't fire until 5-10 minutes have passed If I'm not wrong (maybe I've checked this in the wrong place ), you are using the firestore version 17.0.5 (August 13, 2018), and this reconnection time appears to be improved in 17.1.5. Anyway, the current version is 21.3.1. Is there any planned update on this library? It could be that all the problem resides in that old java code
Steps to Reproduce (with link to sample solution if possible):
-make a connection to a firestore db and set a listener -turn on plane mode -turn it off again and allow the phone to connect -change anything in the database, the listener is not triggered. -wait a while (about 10 minutes in my case): the listener finally starts to listen again by itself, and the change becomes available
Include any relevant Exception Stack traces, build logs, adb logs:
@guillermo-gerard
21.3.1 is AndroidX dependent. The branch with AndroidX dependencies is here:
https://github.com/xamarin/GooglePlayServicesComponents/tree/master_based_androidx
I see I did not bind latest version, but you could try this one:
https://github.com/xamarin/GooglePlayServicesComponents/blob/master_based_androidx/config.json#L510-L514
You'll need to build it yourself, till we publish previews.
We must release AndroidX stable 1st in order to publish GPS-FB android prereleases. And this should be very very soon.
@guillermo-gerard Did you try new nugets?
Hi @moljac, I didn't test anything yet, I'm implementing new features in the project I'm working on, but to test this is the next thing in the TODO list. I'll let you know how it goes. In fact, this test will be part of the migration to androidX
Thank you. That would help us/me a lot.
GPS-FB with AndroidX dependencies coming soon. Tagged version:
https://github.com/xamarin/GooglePlayServicesComponents/tree/100.20200429-androidx-previews01
Waiting for CI build (cross fingers) and publishing will happen.
Check config.json if your version is in there. If not ping me here, so I can prepare next waves of nuget packages.