URL Based Floating Share Button

Hi awesome community,

In my WebView based app, is it possible to make a floating share button which pops up when URL has a specific string and disappears when that condition is not matching?

Also, when clicked on that share button, the current URL should get copied to the clipboard. A tiny notification with a text - “Link Copied, Share It Anywhere” will be welcome.

Thanks a lot in advance.

I have tested the following code and it worked fine for me in companion


Note:- Don’t forget to enable toast in designer properties of devtools it will show its own toast


Thank You

1 Like

@Lovelesh_Kalonia Use this

Componets used:




No need of extra extension

1 Like