Anyone looking at this the below is the correct answer and I had everything setup correctly. I still dont no what the issue is. I was loggin in with facebook, using that to create a firebaseuser object. and then sending the below as test data. I've found it to be an intermittent issue. Uninstalling the app from the device and redeploying often fixes the issue. very odd
Im actually struggling to get the example to work.
So basic.. set value....
FirebaseDatabase database = FirebaseDatabase.getInstance();
Log.d(TAG, "db ref: "+database.getReference());
DatabaseReference myRef = database.getReference("message");
myRef.setValue("Hello, World!");
When I go into the database console I cant see the values I sent. My log is returning a reference to the db though. I've also set my rules up as public to be on the safe side.
Any ideas what I'm doing wrong?