I have implemented google sign-in in my app. The problem is when I go to Safari for the sign in I want the user to be redirected back to my app.
The first approach that I tried was using Custom URL scheme. This worked, however the user was shown a pop-up saying 'Do you want to open (app name)'.
It appears the solution to this pop-up is Universal Links, which I have implemented. I can seamlessly now navigate to my app from Notes and other apps. However, when I tried this inside my app, it doesn't work and the user is redirected to the website instead of the app.
For testing, I created a website and added a button to it, which was linked to my original website. When I open that website in Safari and click the button, my app opens. So why doesn't the redirection from google sign-in to my website open my app?
Universal Links do not work with automatic redirects. They must be triggered via some sort of user action. The link URL also needs to be on a different domain/subdomain from the page where the link is being clicked (e.g., example.dom and link.example.com).
Based on your description of link behavior from Notes and other apps, it appears your configuration is correct and you are simply attempting to do something that Universal Links does not support.
For others who find this question via Google and do not have links from Notes working correctly, try the Universal Links validator tool from Branch.io (full disclosure: I'm on the Branch team).
Related
We developed a website in which users can sign in using their google account. This works fine. A lot of people have shared our app link on Instagram.
The problem is, when users of Instagram click on our website link, the ios webview is used (internal browser in Instagram). This prevents people from signing in to our app and are presented the following error:
What's the solution to this?
Having trouble solving this one.. hoping someone out there has run into it and can help.
Scenario:
I'm the owner/developer of an iOS app (https://itunes.apple.com/app/id1032962936)
It integrates with Facebook for facebook login so i have a facebook app in place to service the API requests.
I also run a website to support the app (http://www.heythere.us) and that site has a blog.
The Problem Statement:
When I share a blog article from my site to facebook it shares perfectly fine. It shows the right thumbnail image from the blog article, and the right text. All of that is good to go because i installed the official facebook plugin for wordpress. However, I have the iOS app installed on my iphone, and i click the shared article in my facebook feed my phone just opens my app when it should be opening safari and sending me to my website's blog article. It's almost like there's some deep linking going on here that isn't quite right. Or the meta data on my website isn't quite right.
I dont want all my people who see the blog article share to click it and get sent to the app (if it's installed on their phone) ... I want them to go to the website and be able to read and share the article.
has anyone ever seen this and solved it?
Thanks!
It was the al:web:url meta tag that I had on the site pointing at the itunes link for the app. I removed that and re-scraped my links in facebook's sharing debugger and now links to my website are opening correctly on my phone.
Is it possible to implement deep linking with wechat API ? I am using wechat API to share some content through WeChat sharing. I have registered my app with wechat and can authenticate users. How would I be able to open my app from Wechat on clicking on that Link? I tried to send the myapp:// as link but wechat does not open my app the safari or facebook does.
Wechat seems to actively prevent deep linking to most external applications. I suspect this is a strategy to prevent sites from using Wechat as a channel to bring users into competing applications.
There are a couple of things that you could try: If your audience is in China, then hosting your app on app.qq.com (which is a Tencent property) will either take you on to the App Store for iOS, or install and run your app through the YingYongBao application on Android.
Take a look at the NikeRunClub service account for an example of this, (Left hand menu -> 必备APP下载)
A second approach is to link to a second page and instruct the user to open that page in their native browser. When the page is re-opened detect that the user agent is not "MicroMessenger" and then redirect to the your original protocol link.
I want to share my app URL scheme via FB Messenger, my URL scheme is myapp.
The problem is, when I send the message: myapp://?param1=1234, FB Messenger shows the message as plain text and not as a link.
My question is, what should I do to FB Messenger recognize my URL Scheme?
Facebook Messenger doesn't see custom URL schemes as hyperlinks, which is why they're being shown as plain text. Even if they were, those links would break for anyone who doesn't have the app installed so it would lead to a somewhat unpleasant user experience.
What you probably want to do instead is wrap your custom URL scheme links inside a standard HTTP link by using a redirect. If you add some fallback logic, you can even send visitors without the app installed to the app store to get it.
Branch.io (full disclosure: I'm on the team) can handle all of this for you and also does what is known as 'deferred deep linking', which means you can still route users without the app to the correct page after they have downloaded it.
I've been trying to use deep-linking to open up specific profile pages on the Facebook app, but so far it will only open my own profile. The general format should be fb://profile/<id> unfortunately every time I use this I am directed to a page that says Profile Unavailable. The specific example I am using is with my colleagues ID so from my app if I wanted to go to his page I would open the URL for fb://profile/10206768458598300. Is there a new format for finding profiles? I have found no other solution for opening a Facebook profile from within my app besides opening an actual webpage, having the user sign-in, and go to the actual profile URL of the person.
We don't currently have any officially supported way to open a profile in the Facebook app.