Data is not inserting into firebase

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 occurs 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.

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

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


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



Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer