Launch mobile native app from browser - android

First of all please bear me with this if this question doesn't make sense (as I don't have mobile app knowledge). What I am trying to do is I have Facebook share button in my web application. Everything works fine on web and mobile but only thing I want to achieve is:
On mobile browser when you click on share button, instead of opening that URL in browser native Facebook mobile app should be launched.
This is what I have currently on share link:
I tried something I found on google as below but didn't work:
<a href="http://www.facebook.com/sharer.php?u=http://domain.com" data-applink="fb://profile" class="facebook" target="_blank" ></a>

Related

Deep linking not working in chrome mobile browser

I am facing issue of deeplink. We have created a deep link for mobile application post but at google chrome mobile browser, its not opening the app screen. I saw same issues with amazon app deep links also.
At very first load it did not open app but second time it open app
Also make sure that you are tapping on the link. The chrome developers consider everything entered into the browser as user intention to open it in the browser.
So if you enter your link that you wish to deep link into your app in the chrome browser - it will open in the browser. But if you copy/paste it e.g. in notes app (social media etc.) and then tap on it - it will open your application if you have properly configured deep / app links.
I also got the same issue and I found a really good article regarding chrome browser with a deep link. (https://developer.chrome.com/docs/multidevice/android/intents/)
I first try out it with a fallback URL and the google chrome mobile browser doesn't work
Take a QR code
But when I removed that fallback URL, it was redirected to the google play store as intended
Take a QR code

Post/share to iOS/Android/WP Facebook/Twitter application from web page

I would like the ability to share content/page URL to a mobile's native application from a webpage. At the moment very few mobile users appear to be signed into Facebook/Twitter through the website URL, but rather through the native application. This obviously creates a problem that I can't find a real solution for.
Facebook
<a href="twitter://>Twitter</a>
http://jsfiddle.net/yyqj7u6L/
Both these links open the native app on Facebook & Twitter (if installed), but don't appear to have the functionality to post a status/share content without manually typing in.
I have checked the documentation here
http://wiki.akosma.com/IPhone_URL_Schemes#Facebook
With no luck.
My other thought about this problem is to target the share ability built into most mobile browsers, for example on Chrome I have the option to share via Facebook and so on. Although very little seems to be available about launching this feature from within a web page? I guess there is some security issues with this.
I did have a good look on here to find similar solutions but nothing quite hit the spot, related directly to sharing to native app from web page.
The code below should work for Twitter.
Share to Twitter

How to open native Facebook app and determine the text a user should/could post

I know from here that when I put a fb://... link on my website it opens the native Facebook App (on iPhone and even on Android).
But how is it possible to put some parameters to this link? I want to make a share button, with a text/title/image. The user should be able to review it, but when he is lazy he should also be able just to press "Post it".
EDIT: My App is an webapp, it is just reachable through the browser (PC or mobile) or through an WebView of a native app (iPhone, WindowsPhone, Android).
You should use the native share dialogs with the Facebook SDK.
https://developers.facebook.com/blog/post/2013/07/11/four-reasons-to-upgrade-to-the-new-share-dialog-for-ios/
Here's the iOS documentation: https://developers.facebook.com/docs/ios/share-dialog/
Here's the Android documentation: https://developers.facebook.com/docs/android/share-dialog/

how to load android app from a web page link?

I am trying to load an android application from html file when browsing the page with android browser.
I have tried like below
<a android:scheme="com.mxtech.videoplayer.ad">Click </a>
But without any avail...
I am also trying to pass a video link to the app.
Any has any idea..
I have seen this kind of link can be done in apple ios.
And that's the Android way:
http://play.google.com/store/apps/details?id=<package_name>
e.g. https://play.google.com/store/apps/details?id=com.troubi.kingofmath
At an Android device the user will be asked whether he'd like to open this app in the browser or Google Play.

Can I use JQuery MOBILE as the codebase for my simple Facebook App?

I have a running JQueryMobile App that I"m developing with PhoneGap for Android/IPhone, and it's going well. However, I'd like to use the same JQueryMobile codebase to extend the application to Facebook. When my FB app is inside of the Facebook IFRAME, it renders, but when I click my first jquerymobile "#abcdef" link, it either crashed my Chrome broswer altogether, or it navigates "back 2x" in the browser, or it pops me out to my app page, some strange behavior. Does anyone have any suggestions on getting a jquerymobile codebase to work on the web as an embedded Facebook App? Are there some settings that will allow my mobile app to work more like a web app in certain contexts? Thank You!
Facebook iFrame Canvas apps are quirky. The facebook parent frame will post to your iframe in addition to other things that seem very odd to me (MS web background).
Theoretically you could leave the markup the same, but not initialize jQuery Mobile for your facebook app, but that will get messy. I'd recommend a separate set of views (html pages) for your facebook canvas.

Categories

Resources