Hi Kato,
Unless I'm misunderstanding, that workaround requires the client be online and authenticated (anonymous or otherwise) before any writes to the server are attempted.
I'm asking to support the case where the client is offline on first start. In this case, the client will queue writes until a connection is reestablished. When a connection is reestablished, I haven't found a way to ensure the client authenticates (anonymous or otherwise) before the offline writes are attempted. I've tried listening on .info/connected and authenticating as soon as a connection is reestablished, but in my tests the queued offline writes are attempted before authentication completes, and if you have a simple "auth != null" security rule the write fails and data is lost. I'm happy to send a minimal example if that helps.
I suppose I could write to a temporary location without the "auth != null" security rule, but that would be completely unsecured.
In any case, the Firebase client already pauses writes if the stored auth token is expired, so I would be asking for something like a setting to pause writes if there's no auth token at all.
Sorry if I'm missing something, I'm still learning all the ins and outs of Firebase but loving it so far!
Kasey