rlamasb / Firebase.Xamarin

Light weight wrapper for Firebase Realtime Database REST API.
MIT License
149 stars 39 forks source link

HandleTargetEvent: UnhandledException PostAsyn #37

Closed johnjake closed 6 years ago

johnjake commented 6 years ago

Hey good day i am using simple rule in firebase { "rules": { ".read":"auth != null", ".write":"auth != null" } } my Login using FirebaseAuth auth.SignInWithEmailAndPassword(email, password) .AddOnCompleteListener(this, this);

Get Token Using var mToken = FirebaseInstanceId.Instance.Token;

            var firebase = new FirebaseClient(PageFirebaseSettings.FirebaseDbUrl);
            var account = new Accounts
            {
                uid = PageRandomKeys.AlphaNumericKeys(),
                email = email,
                homecity = homeCity
            };
            var item = await firebase
              .Child(PageTables.TableAccountProfile)
              .WithAuth(mToken)
              .PostAsync(account);

but i receive UnhandledException which part did i miss? Thanks a lot

johnjake commented 6 years ago

Oppss I already solve this problem, my problem is just Im using different token.