title: using google firebase storage without authentication
body: <p>I want to share some json file to all user without server and I use google firebase storage service (without user authentication).
  Code:</p>
  
  <pre><code>FirebaseStorage storage = FirebaseStorage.getInstance();
  StorageReference storageRef = storage.getReferenceFromUrl("gs://xxxxxx.appspot.com/xxx-main.json");
  Task&lt;byte[]&gt; task = storageRef.getBytes(1000000);
  while (!task.isComplete())
      StaticTools.sleep(100);
  
  byte[] b=task.getResult();
  </code></pre>
  
  <p>but it raise an exception:</p>
  
  <pre><code>com.google.android.gms.tasks.RuntimeExecutionException: com.google.firebase.storage.StorageException: User does not have permission to access this object.
  </code></pre>
  
  <p>Storage Rule:</p>
  
  <pre><code>service firebase.storage {
    match /b/XXXXXX.appspot.com/o {
      match /{allPaths=**} {
        allow read, write;
      }
    }
  }
  </code></pre>