How to get Firebase Dynamic Links to work with App Clips? - ios

Is Firebase Dynamic Links meant to work with App Clips? If the app isn't installed on iOS I would like the App Clip to popup instead of taking users to the App Store? Is this possible?
Here are the scenarios I would like to have happen:
iOS
User does not have the app installed and clicks the link - App Clip opens.
User has the app installed and clicks the link - App opens
Android
User does not have the app installed and clicks the link - Google Play Store opens.
User has the app installed and clicks the link - App opens
Other Platforms
Website opens when the link is clicked.

gRPC doesn't work with app clips, so unfortunately all of the swift sdk for firebase will not work with app clips. The best workaround so far is to use REST for reading/writing to firebase and, if you need a listener, to use server side events to provide that functionality.

Related

Google Analytics for Email Tracking when using Universal Links on iOS

I would like to track button clicks in emails using Google Analytics. Let's say I would like the button to have a Universal Link, which when clicked, will open an iOS app directly with no browser redirect. (https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html)
However, if my URL is a Universal Link, i.e. www.xyzxyz.com/openApp?campaign=promo&source=email, and an email recipient clicks the link from their iPhone with the installed app, no call is made to the server, and therefore the click is not tracked.
Has anyone experienced a way of tracking Universal Link clicks?
Universal Links are handled on the frontend by the device without ever interacting with a server if the app is installed. The AASA file is stored on the device at install and allows the device to check whether the link can open the app before passing the link onto safari. If the app is not installed and the link is passed onto Safari then the Google analytics tags will be processed. The only way to accomplish this is to send the GA request from the app if you register that a Universal Link was clicked.
I recommend looking into a deep linking service like Branch. They have a Google analytics data integration that will handle all of this tracking for you.

How to call action sheet from Facebook iOS app

When I tap on some Sound Cloud content on FB timeline, FB iPhone app shows Action Sheet with these options:
Open Web page
Install Sound Cloud app
How do I call action sheet on Facebook content in a Facebook iOS app? Was that a special feature FB gave Sound Cloud?
You may check Facebook developer documentation :
One of the most interesting aspects of sharing to Facebook from your
app is that when people engage with the news feed stories posted from
your app, those stories can send people to your app or your app's App
Store page, driving traffic and app installs. You can implement this
behavior using App Links.
When you set up App Links, you can control what happens when someone
taps on one of the links shared through your app or on the story
attribution (name of your app) in one of the Open Graph stories shared
through your app. If your app has web content, people will be
redirected to a web view of that content. If your app is installed
there may be an open button that launches your iOS app. if your app
isn't installed, there will be an install option to direct people to
your app's App Store page. If your app is mobile-only (no web content)
then tapping the shared link will either direct people to your app (if
it's installed) or to your app's App Store page (if your app isn't
installed)
App Links on iOS
Sharing on iOS

AppLinks in iOs app How to pass data to a freshly installed app

If I have a iOs app that has multiple content that a user can access, can I do the following:
Allow a user that is currently consuming a content (stream radio/some streamed video) to post from the app to his Facebook page "I am currently viewing X using APP".(this is clearly doable)
Another user that has the app installed can click the link will be redirected from the Facebook app to my app (o app links seem to be the solution in this case). If the user that clicks the link does not have the app installed Facebook will ask him to install the required app. I understand that all this is possible using Facebook iOs SDK and App Links.
My question is after the user installs the app how will I direct him to the original content in the link (X)? Is this handled automatically by Apple/Facebook? Or will I need a backend server which will track what the user tapped on before downloading the app?
Can the same be done from the native iOs twitter app?

Facebook Deep Linking on iOS not starting my app

I'm trying to implement Facebook's Deep Linking feature in order to launch game directly when the user taps a story in the native Facebook app. I've configured and enabled Deep Linking. I've then posted on my timeline using my app, it's a link to my game's site. The link contains a special GUID that enables some social activity in-game. When I click the link on web, my website opens normally. When I tap the story in native app, again, my website opens. However, if I tap the via part of the story in the bottom (such as 3 hours ago via MyApp) then my app launches, but it doesn't work for me as the GUID is not passed that way to the app (and also it would be useless to expect people to tap that part of the story). How can I set it up such that when the user clicks the link in a web browser, they will be taken to my website where there is a link to my app that they can download, but when they tap the same link in native Facebook App (only iOS is concerned), the game will launch and the link will be passed to my game? I don't know why it doesn't take me to the app when I click the link.
Here is a screenshot from my app's dashboard:
The URL scheme suffix is only for if I want to use the same ID for multiple apps, which is not the case.

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