TrueSDK for iOS directs to 404 website - ios

I have implemented a simple app implementing TrueSDK, using a storyboard I added a TCProfileRequestButton but when I click on the button it takes me to a website thus I can't fetch the Truecaller profile. I have Truecaller installed and followed the installation guide on https://github.com/truecaller/ios-sdk

TrueSDK uses universal links for communication between your app and Truecaller, that's why when you make a request from your app which opens Truecaller it will show a confirmation screen with a forward link on top right.
And clicking on that link will take you to the 404 page. This is an expected scenario with universal links. Moreover once you visited that website you will notice all of your requests will end up in that page but not in the Truecaller app, strange right? The way to overcome that is to swipe down on that website, it will show you a top bar with an open button.
Clicking on that button takes you to Truecaller and your request will be handled as regularly. From that on subsequent requests should take you to Truecaller app.

Related

Universal link after installing app wont open from Safari

Senario: User scans a QR code with a unique universal link into our app to "redeem" their code.
They scan the code which goes to a webpage with a link to download the app.
The user downloads the app.
Returns to the web page and there is a link within the page which is the same link as the QR code.
We assume tapping the (same) URL would trigger the universal link but it does not.
The universal link works fine from email or other apps (after its been installed)
How can we fix this bad UX, is there a HTML component or redirect we need to consider when tapping the basic link on the Web page. How can we make the link initiate the "deeplink" into the app now its installed. The banner at the top is displayed but its not the ideal flow.
The user cannot scan the QR code again - they must go through the download and "reopen" app in one flow.
Universal links do not trigger in Safari. This is intentional behavior confirmed by Apple engineers in the forums (sorry, don't have a link right now). Their reasoning: if you're already in the browser eco-system you usually do not want to be redirected to an app, but want to stay in the browser.
What you can do is have your app implement a custom URL scheme, and your web page can then check if your custom URL scheme is supported and open it.

UITextView: Tapping a universal deep link that should lead to the SAME app, opens the fallback URL in Safari

I have a Branch.io universal deep link that displays a product page in my app, or the equivalent website page if the app is not installed.
When tapping the link from other apps such as WhatsApp or Notes, the link works. My app is launched and immediately displays the correct product.
However, if a user uses my own app's messaging platform to pass this link to another user as a text message, the message is displayed in my app using a UITextView, and tapping the link from this UITextView always launches the fallback URL in Safari.
Only when switching back from Safari to my app, the deep link handler is called and the link is then handled correctly.
I would like my app to handle its own deep links immediately even if they are tapped from within the app itself, without launching Safari. Does anyone knows how to achieve this behavior?
Deep links are an incredibly important part of delivering a high quality user experience. With deep links, you can take users to the exact thing they clicked on or even offer a customised on-boarding experience.
You can auto-route within app without launching safari browser, please follow this link for detailed implementation:
https://docs.branch.io/deep-linking/routing/#option-3-use-branchs-easy-config-deep-link-routing
Feel free to write to support#branch.io in case you have other doubts.

iOS 8 deep linking not working. App or website's fault?

I know the behavior changed between iOS 8 and iOS 9. My app's deep linking works perfectly on iOS 9 & 10. When a user clicks on a special link, a popup appears prompting the user if he would like to open it in the app.
However, for some reason when the user clicks on the same link in iOS 8, the pop up appears but at the same the he is immediately redirected to the app store. (User can actually switch back and tap on the popup and he will be redirected as expected. But the immediate redirect is unnecessary and ugly)
NOTE: It doesn't happen in safari, it happens in Twitter's App. (when a Tweet redirects to a website and the internal browser is used)
I have two questions regarding this issue. First, could it be that something is not implemented in my app? I don't think this is the reason because the popup asking the user to open it in the app is displayed.
Could it be that my website has the wrong code? Since its showing the popup and immediately redirecting at the same time. (but somehow only happens in iOS 8...)
EDIT:
I just tested this with Safari, same website, i click on the same link and the app is opened right away (there's not even a popup). So now i'm even more confused.
The place it's not really working at is when I open it through the Twitter's app.
So the flow is Twitter -> Search for tag -> Open Tweet -> Open link to my website -> Tap on the same link as described before.
Could it be that it's actually the Twitter's browser implementation fault?

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 prevent auto-launching of our iOS app from links in FB iOS app?

We have an iOS app that publishes certain activity to Facebook that contains links to pages on our domain. Our intention is for friends to click on those links and view them as webpages.
However, when you click on links in these published stories in the FB iOS app, it's auto launching our app instead of going to an embedded Web View or kicking out to safari.
Note: We still want to have single sign on (SSO), so just want to change the behavior of clicking links in published stories.
To clarify, this is what I'm talking about:
My app is able to publishes http://foo.com/123 into the FB newsfeed for a particular user that opts in.
That person's friends see the link, but when they click it, it just goes to http://foo.com/123 in the browser instead of launching my FOO app. This is because my app doesn't yet handle incoming context from FB iOS app.
I still want FB SSO to work from my FOO app. That is, when clicking on FB sign in in my FOO app, it jumps out to the FB iOS app (if installed) and does a single sign on and redirects back to my app. IOW, I don't want to break this authentication scenario that currently works.
What setting in the FB developers App Settings controls this? It's not clear from the documentation. I see sections for Native iOS app and Website which I currently have set but it's unclear which sub-setting affects the behavior in question. Also, it's not clear even if I was to find the setting, can I affect it without affecting SSO.
The setting you want in the Facebook App dialog is under the iOS Native section (see the screenshot below) - set both the highlighted sections to Disabled.
This won't affect Facebook login/SSO in the app, so you'll still be able to do the OAuth dances.

Resources