Share Url from browser to other apps in android - android

I am working on a website and the requirement is that user's can share a page, link or image
I want to make a share button on my webpage which allows user to share a link, image, etc via the apps installed in the user's phone. How can I achieve that.
It's should be like the share panel as shown in the image below

Loks like you want something like this:
Android get url from browser
Also look through this link
https://developer.android.com/training/app-indexing/deep-linking.html

Not very clear about the question. But from what I understand, you want to share a particular page from your app, so it can be visited using a shareable link.
I think you're looking for is Deep Linking.
Update: HTML Sharing Buttons: https://www.addtoany.com/buttons/for/website

I believe that the Web Share API is what you are looking for.
It allows you to initiate the share intent via javascript. Android then displays the exact same share popup as in native apps.
Example from MDN:
navigator.share({
title: document.title,
text: 'Hello World',
url: 'https://developer.mozilla.org',
});

Related

Is it possible to add app link to instagram story sticker while using Facebook SDK

Hey we are trying to develop share to insta story functionality, managed to share background and the sticker, but wondering is it possible to make sticker clickable so on click it would open deep link or url? Can not find anything on documentation, on swift it seems possible

how to make facebook android app deep links

I am trying to create a deep link that will redirect from a url I post on facebook into my android app and I noticed there is something in facebook api called App Links in this link : https://developers.facebook.com/docs/applinks/ but for some reason their docs has been removed and I have not found any possible way to achieve that...
How can I make a deep link from facebook into a specific page in my android app?
Weird that they took it down. Basically you need to implement HTML tags in your web page the link points to. Also you must have URI scheme implemented in your app.
Until the page comes back up I suggest you use their debug site:
https://developers.facebook.com/tools/debug/
You can scrape this test link got reference:
https://onelink-sim.onelink.me/coiD/simbananas

dialog box to send url to different app

When I click share icon on Google PlayStore it automatically opens the option of various applications like WhatsApp, Skype, Facebook to send URL.
Is there any code or widget to have the same accomplished?
Have a look at Intent.ACTION_VIEW and Intent.ACTION_SEND.
With a little googling you will find many code examples.
It is a common behavior. The share button associated with lots of apps on Android. So, it is part of their code.

Deep link in android app

I implemented deep link in my android app. Whenever I clicked the share link its open my app perfectly.
My problem is copy the share link and paste the chrome browser it doesn't open my app.
Sorry for my bad english.
Chrome is an application.
By trying to use deep link in Chrome, you are actually trying to open an app(your app) from another app(Chrome) which is not really what deep link does!
To test your deep link, enter link in default browser of your phone(mostly it is Google Search). And as you say, it is opening. So your deep link is working perfectly fine and you don't need to worry about that.
Now, How to make share link work from Chrome:
For that, you need to use 'a href' tag that will be defined on your website! Moreover, you need to implement App Link instead of simple deep link. You can refer to this answer here for this Deep Link not working in Chrome for Android .
You need to actually click on a link pointing to that URL to trigger the deep-link Intent, writing the URL manually doesn't trigger it.

Android Share via facebook, twitter, google plus

Like timely, I have seen apps with share links such as google plus, facebook, and twitter. I can use these links in html and css, but I do not know how to implement them inside the app. Like Timely, it will open a popup with three choice buttons, and the user will click one and it would open the web page. How do I do this?
Sending Simple Data to Other Apps

Categories

Resources