GitLiveApp / firebase-java-sdk

A pure java port of the Firebase Android SDK
Apache License 2.0
16 stars 5 forks source link

You can't set the 'sslEnabled' setting unless you also set a non-default 'host' #1

Closed DatL4g closed 6 months ago

DatL4g commented 7 months ago

As stated in https://github.com/GitLiveApp/firebase-java-sdk#limitations, Offline Persistence and SSL is not supported for Firestore.

Disabled SSL means we cannot use the default host firestore.googleapis.com, is there any alternative host we can use? Could not find anything on the internet

nbransby commented 6 months ago

What error are you getting? It is used by others with standard Firebase

DatL4g commented 6 months ago

@nbransby forgot to mention that this only occurs on desktop, so android works fine.

The error message is the exact title after disabling ssl, however if I use default settings the desktop app crashes because it could not find an Application class or something like that, as this is android only.

Should be easy to create a simple reproducer, if you need more information hmu, but I'm on vacation right now so it could take a while

nbransby commented 6 months ago

I think you might be missing this https://github.com/GitLiveApp/firebase-java-sdk/blob/master/README.md#initializing-the-sdk

DatL4g commented 6 months ago

That actually works, used Context before and didn't know you exposed Application as well. Can be quite confusing in multiplatform projects as they have the exact same package name as the android original.