Open SagarPanwala opened 5 years ago
Hello SagarPanwala, just had this problem myself.
This is for Android only I suppose? I solved this by downloading latest previews of the Nuget Packages related to firebase auth, and Plugin.CloudFirestore by f-miyu. In Nuget Package Manager in Visual Studio, right to the "Search" bar you have to check the "Include prerelease" button, and then download the latest packages. That should fix it.
Thanks, but is it good to make production app with pre release package?
On Tue, 18 Jun 2019, 2:45 p.m. jehans, notifications@github.com wrote:
Hello SagarPanwala, just had this problem myself.
This is for Android only I suppose? I solved this by downloading latest previews of the Nuget Packages related to firebase auth, and Plugin.CloudFirestore by f-miyu. In Nuget Package Manager in Visual Studio, right to the "Search" bar you have to check the "Include prerelease" button, and then download the latest packages. That should fix it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/f-miyu/Plugin.CloudFirestore/issues/8?email_source=notifications&email_token=ACDWB3HXNMH5KU3USK7E4ETP3CRRLA5CNFSM4HVW4LZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX5XUPY#issuecomment-503020095, or mute the thread https://github.com/notifications/unsubscribe-auth/ACDWB3B23BYJN2WFM6RXSE3P3CRRLANCNFSM4HVW4LZQ .
The question is rather - Is it good to make a production app with security flaws? Most of the prerelease packages that I installed have been around since early 2018.
when I try
await CrossCloudFirestore .Current. Instance. GetCollection("myCollection") .AddDocumentAsync(myModel);
I got an error (Missing or insufficient permissions),
in my database security rules I have the write permission like this
allow write: if request.auth != null;
how to send the auth object( token) with the request.
Hello SagarPanwala, just had this problem myself.
This is for Android only I suppose? I solved this by downloading latest previews of the Nuget Packages related to firebase auth, and Plugin.CloudFirestore by f-miyu. In Nuget Package Manager in Visual Studio, right to the "Search" bar you have to check the "Include prerelease" button, and then download the latest packages. That should fix it.
For anyone else having issues with initializing the Firestore with the new pre-release version. The namespace has changed slightly and you have to use the following line of code to initialize instead
Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, savedInstanceState);
Place that in your android project's main activity.cs and it should work fine (remember to remove any other references to firebase or firestore in your main activity)
Hello SagarPanwala, just had this problem myself.
This is for Android only I suppose? I solved this by downloading latest previews of the Nuget Packages related to firebase auth, and Plugin.CloudFirestore by f-miyu. In Nuget Package Manager in Visual Studio, right to the "Search" bar you have to check the "Include prerelease" button, and then download the latest packages. That should fix it.
What versions of Firebase.Auth did you install? I got an error System.MissingMethodException: 'Method not found: Plugin.CloudFirestore.IQuery Plugin.CloudFirestore.IQuery.WhereLessThan<!0>(string,!!0)'
For the permission denied error, I got solution to change rule from false to true as suggested here https://stackoverflow.com/questions/46590155/firestore-permission-denied-missing-or-insufficient-permissions#comment94809401_46925637
But I want to make it false, then how can we solve this error with this plugin. I have Email/Password Signin Enable in Firebase (but don't have any server, because I want to use Firebase only as backend), then how can I fix this error without compromising the security.