Hello to all! I have been Using google firebase with my android apps for more than 2 years. Today while developing a new app I am facing a weird problem. I set up my firebase project on Google firebase Console successfully. I write the code to push data on firebase successfully.
But the problem is that No data inserted in firebase and no Error occures in the console. I searched online a lot but all in vain. I am pasting Screen shot of my firebase console,database rules and my source code. Kindly guide me.

rules_shot.PNG

firebaseshot.PNG

database = FirebaseDatabase.getInstance();
dealer_ref = database.getReference("reg_requests");

       btnSignup.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                       Dealer dealer = new Dealer();

                        dealer.setId(ed.getText().toString());
                        dealer.setMac(getMacAddress(LoginActivity.this));
                        dealer.setRegistered("no");

                        String id =    dealer_ref.push().getKey();

                         dealer_ref.push().setValue(dealer);

                }
            });

If this is true then it's not your code but again, limits being hit. Could be a bug on Google's end. Time to ask them in their product support forums.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.