How to programatically generate a Dynamic Link to a Storage Object in Firebase?
<p>The new version of Firebase introduced in Google IO 2016 has introduced Firebase Dynamic Links (as an extension of the deep linking concept) as well as Firebase Storage (powered by Google Cloud Storage).</p>

<p>How can programatically generate a Firebase Dynamic Link to a Firebase Storage Object?</p>

<p><strong>EDIT-1</strong></p>

<p>I understand that we can get the Google Cloud Storage bucket that holds a Storage object and the  full path to the object in the Storage bucket using the following code</p>

<pre><code>public String getDynamicLink(StorageReference storageReference)
{
    String dynamicLink = "";

    String bucket = storageReference.getBucket();
    String path = storageReference.getPath();

    // How to generate dynamic link using the bucket and path?
    return dynamicLink;
}
</code></pre>

<p><strong>Edit-2</strong></p>

<p>As per <a href="https://cloud.google.com/storage/docs/collaboration#browser" rel="nofollow">https://cloud.google.com/storage/docs/collaboration#browser</a>, you can construct a URL to a Google Cloud Storage object using the following syntax:</p>

<pre><code>https://storage.cloud.google.com/&lt;bucket&gt;/&lt;object&gt;
</code></pre>

<p>How to programatically generate dynamic link using this?</p>