title: Retrieving data from Firebase with Google UID
body: <p>I have a Firebase database for my Android app structured as follows:</p>
  
  <pre><code>Users
    UserUID
      Data
    UserUID
      Data
  </code></pre>
  
  <p>Because some of the users authenticated with email and password, their uids are of the form <code>9c16720b-f827-4216-b9f1-a3fa2c311633</code>.</p>
  
  <p>Other users authenticated with Google and their uids are of the form <code>google:106458782077325555555</code>.</p>
  
  <p>I am trying to query the data by using this code:</p>
  
  <pre><code>private void setupFirebaseQuery() {
      String location = mFirebaseRef.child("users/" + mFirebaseRef.getAuth().getUid()).toString();
      Log.d("LOCATION", location);
      mQuery = new Firebase(location);
  }
  </code></pre>
  
  <p>This data is then passed to a custom adapter that extends <a href="https://github.com/mmazzarolo/firebase-recyclerview/blob/master/app/src/main/java/com/example/matteo/firebase_recycleview/FirebaseRecyclerAdapter.java" rel="nofollow">this implementation</a> of FirebaseRecyclerAdapter:</p>
  
  <pre><code>private void setupRecyclerView() {
      mAdapter = new FirebaseDataListAdapter(mQuery, Data.class);
      mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
      mRecyclerView.setAdapter(mAdapter);
  }
  </code></pre>
  
  <p>I know the adapter works because data is retrieved and displayed fine - except for users that authenticated with Google. For those users no data is retrieved or displayed.</p>
  
  <p>I don't think this is a permissions issue in Firebase because I have temporarily set read and write to true. I've also tried going to the logged url in a browser and it successfully retrieves data for the relevant user, even those who logged in with google. The logged url does convert the <code>:</code> in the uid to a <code>%3A</code> but that seems like expected behavior.</p>
  
  <p>Does anyone have any ideas why this successfully retrieves data for email/password users but not Google users?</p>