Cordova/Phonegap Social Sharing - ios

I'm looking for an easy solution for sharing inside of a cordova/phonegap application. I'm looking to add facebook, twitter and email sharing. Much like this app has: http://itunes.apple.com/us/app/mars-hill-church/id322993145?mt=8. If you click through the sermons you can actually share an individual sermon.
I've tried using this: http://developers.facebook.com/docs/reference/dialogs/feed/. I was going to launch the share post inside of an iframe but unfortunately facebook doesn't allow you to load within iframe.
Preferably I want the share portion to stay inside the app as much as possible without launching safari. However, I would settle for a facebook button (Customized look), that I could click on and it launched me out of the app into safari to share a story.
Cordova 1.8
IOS 5
JQuery
Jquery Mobile

Have you tried the official plugin for Facebook Connect in Apache Cordova/PhoneGap? The code is hosted at
https://github.com/davejohnson/phonegap-plugin-facebook-connect
and there's a press release at
http://phonegap.com/2011/08/30/get-the-new-phonegap-facebook-platform-plugin/.
This sounds like what you're after, but I haven't tried it myself yet.

Related

Can a progressive web app be registered as a share option on iOS?

I plan to develop an app (not sure if I will go with PWA yet) which includes the following "wishlist" scenario:
The user is browsing a website he likes using safari, chrome or any browser
He clicks the share button in that browser, in order to send the webpage url to another app
He selects my PWA
This url is saved in the user's wishlist
Is step 3 possible?
Note: someone asked the exact same question here about Android: Can a progressive web app be registered as a share option in Android?
My question is just the same, except mine is about iOS. I couldn't find any answers to it.
What you're describing is covered by Web Share Target Level 2.
Currently, it can be used with Chrome on some desktop platforms and on Android for installed PWAs.
It's not available on iOS, unfortunately.

Does Google Search App block universal links

I am implementing Firebase App Indexing as mentioned in official firebase documentation here: https://firebase.google.com/docs/app-indexing/ios/app.
The universal links are enabled and work fine for search results from different browsers like Safari and Chrome. They also work for other applications. But when I tap on a search result from the Google Search App in iOS. It does not take me to my app. Also on long pressing a link in the Google app does not provide an option to open link using my App. This option is however shown when I long press on links from other applications.
Does it have something to do with the Google Search app disabling the universal links deliberately. Is it possible for individual applications to prevent Universal Links from opening other applications?
Or does Apple apply restrictions itself for certain apps?
Indeed, some apps disable the capability of deep linking using Universal Links. Some notable examples: Facebook, Instagram.
Some of these apps allow deep linking via URI schemes (the old iOS 9- way of deep linking), but there is no promise that this behaviour will be persisted.
I'm guessing most of these apps would like to have the user stay within their own in-app browser instead of switching to another app.
I never tried the Google Search app, but if your universal link works perfectly in Safari and not in the Google Search app, that may be the case. In that scenario you'll need your click domain server to redirect the user to the store or some landing page, based on the User Agent of the incoming browser.

Facebook app links don't open app when post is clicked in 2017

I've added app links headers for my web site with metadata for my iOS app, but they don't open app when post is clicked. Is app links works as described in documentation in 2017? (https://developers.facebook.com/docs/applinks/add-to-content)
This is expected behavior
Unfortunately it is not currently possible to directly launch a third-party app from within the iOS Facebook app. This is a known issue that Facebook has essentially written off as wontfix. This is still possible in the Android Facebook app, but it's unfortunate they haven't been more transparent about the change to the iOS version because there is quite a bit of confusion about it.
Instagram is a special case because it is a Facebook-owned app and gets different treatment.
But you can work around it
Services like Branch.io (full disclosure: I am on the team) get around this by implementing a judicious combination of App Links, URI schemes, and iOS Universal Links. Essentially what you need to do is open a page in the webview and then have a button or other user-driven CTA event that launches the app from there. It's an extra step for the user, but currently the best workaround. If you just want to be able to post a link that goes into your app when it is installed and otherwise goes to a webpage (or the App/Play Store), then Branch links are definitely your simplest solution.
Branch link routing logic

Firebase dynamic links does not work on iOS gmail

I have setup a firebase dynamic link like explained here https://www.youtube.com/watch?v=sFPo296OQqk
When I tap on my dynamic link via Notes app, it opens my app as expected.
But when I tap on the dynamic link via gmail app on iOS - it just open the Chrome Browser on iOS and redirects me to the fallback web URL. It does not open the app.
Any help is appreciated.
I believe the iOS Gmail app allows you to select whether links will open in Chrome or Safari. When Chrome is selected, Universal Links (which is what Firebase dynamic links piggyback on) do not work. You'll need to somehow open a web page with the link and then present a button for users to click that will open your app. At Branch.io, we use our deepviews feature for this.
For more info, see this list of apps that support Universal Links.
You should follow the below link.This will definitely fulfill your query.
Firebase dynamic link doesnt work in safari swift

How to publish link from iOS app to Facebook app with custom URL scheme?

I am creating an iOS app (using Adobe AIR) and I want to put a share button to my game that will allow the player to share a link to my game. I can do it with Graph API using my app's token, but I don't want a story published by my app. I want the native Facebook app to open and bring a share dialog. All my research concluded me to use the custom URL scheme such as fb://publish/?text=my_text but I couldn't get it working. I tried typing exactly that in Safari, it brings the native Facebook app, but no publish dialog or anything. All the sources online tells this, but it is not working. What could I be possibly doing wrong?

Resources