Click on a posted news-feed Facebook will open up my iOS app on iOS 7 - ios

I have an app on iPhone, that share a message on Facebook news-feed. It's ok. But when i open the Facebook app on the iPhone, and click on what i have shared in news-feed, it open up to my application !!?? it should open the link i have shared on Browser. My iPhone run iOS 7.0.3. In iOS 6 it's seem ok.
Does anyone deal with this problem?
Thanks.

Take a look at this. section - "Communicating with other apps".
Basically, you would implement a custom url scheme for your app and when a link with your url scheme is invoked, iOS sends a message to your app to invoke itself.

I have found that the "Deep linking" in setting of the Facebook app on my account determines the behaviour when click on the shared link (on iPhone). If i turn off "Deep linking", it will be ok.
But now the problem is the text header of shared item is:
" shared a link via "
while i see some application such as Vine show on news-feed:
""
(Although Vine only shares a video link, not post video to Facebook).

Related

How to force to open app by Universal Link in Swift likes iOS Notes app

I run into an issue with Universal Link that once the Universal Link is opened by Safari, it won't able to open by its app.
Seem iOS does remember the last app used to open the link.
But when I copy the link into iOS Notes app, long-press, select Open in "App Name" and the issue is gone! (Check the screenshot)
Does anybody know how to force to open an app like iOS Notes app?
Or does anybody know how to check whether the URL has been remembered to open by Safari by iOS?
I did try by open(_:options:completionHandler:) & specific options [.universalLinksOnly: true] but it doesn't work
Thanks all 🙏🏿
This article may help.
When a user browses your website in Safari and taps a universal link in the same domain, the system opens that link in Safari, respecting the user’s most likely intent to continue within the browser. If the user taps a universal link in a different domain, the system opens the link in your app.

Firebase Dynamic links - when clicked not working in iOS

Im using firebase dynamic link to open the mobile application (If already installed) or to redirect user to Playstore or app store.
In iOS mobile , I pasted the link in notes / messaging apps and while clicking the link it Opens the safari browser and it shows the Preview page. Upon clicking the "Open" button in preview page , it says "Safari cannot open the page because the address is invalid".
Can you please help me with this?
Note : In same iOS device , when I set the default browser to chrome and then clicking the Link opens the app correctly.
Finally I am able to resolve the issue.
The initial step is to create a universal link in Firebase console.
Once the universal link is created , we have to do following changes in XCode:
Enable associated domains under capablities
Include URL types
Must verify your Team ID that you would have provided in firebase console.
Once the universal link setup is completed in Xcode, we can do build and run and check the working of Universal link.
i.e. clicking the link should open the app (provided app is already installed).
and it should not open the safari browser.
If clicking the link opens safari browser , then there is a problem with the Universal link setup.
The below tutorial is very useful:
https://youtu.be/KLBjAg6HvG0

Deep Links Redirection error in iOS - "Safari cannot open the page"

This is sudip here, we've implemented branchio in our app and in website. We're facing an issue in ios 10.3, whenever we open link in ios 10.3 it shows error "safari cannot open the page, the address is invalid", and in background we have our banner which says get the app.
if we click on cancel on confirmation in safari during popup "Do you want to open this in app", it starts showing "safari cannot open the page, the address is invalid"
how can we resolve the above issue
Product Category Links Redirection
Settings for used in link settings of branch dashboard
URI Scheme Deep Link Mode : Intelligent,
Enabled Universal & App Links for both iOS & Android,
We've tested in:
Android - Opened links from hangout, working smoothly
IPhone CE , iOS version 10.3.3 : Opened links from hangout, using safari browser, shows error "Safari cannot open the page"
IPhone SE , iOS version 10.3.3 : Opened links from hangout, using safari browser, shows error "Safari cannot open the page"
Link(s) for Testing
https://link.onference.in/ZsSH9R6uAU
First step is please go to settings-> safari -> Clear History and website data and the check the link, if its not working then you need to check the settings in info.plist and Associated Domains
This alerts usually happens for users who do not have the app on their device when we try to use the iOS URI scheme because the universal link for your app fails. To give better assistance, can you please validate if your universal link setting in your iOS app is correct by our validation tool and give us your result? Also, you can find common issues that cause universal links to fail here.
Please do reach out at integrations#branch.io if you have any further questions!

Open iOS application from universal links

I have implemented universal links in my application by uploading "apple-app-site-association" to my server and enabling "associated domains" in my project(by adding applinks). My app opens whenever I click on my server weblink from Safari browser.
1) Its not working on any other browser
2) I need to open my app from other apps as well, i.e. Instagram, Twitter etc.
How can I achieve the above scenarios using universal links. If not, is there any other way of achieving the same.
Not all apps will open universal links in you app. You can read a little more here:
"Pasting a Universal Link directly into the Safari URL field doesn’t cause the app to open automatically. If you do this, you will have to manually pull the website down so that a prompt will appear at the top asking you to open the respective app.
But, if you paste links in Facebook(app), Twitter(app), Mail(app) or even if you go to Facebook on Safari and then click on a universal link, the app opens directly.
Universal links will not works for all the apps in iOS. If you click on a universal link from any of the “BLACK LISTED” apps, it will not open the app. Go to this link to know more.
As in step one, for the first time you will have to manually pull down the website and click “open” to open the link using the respective app. The iOS will “remember” to open the app instead of opening the safari if the universal link with the registered domains are clicked."
https://medium.com/#abhimuralidharan/universal-links-in-ios-79c4ee038272
https://docs.branch.io/pages/deep-linking/universal-links/#appsbrowsers-that-support-universal-links

Link to App Store app developer page with iOS 6?

Is there a way, in iOS 6, to link from an app to a specific developer's page on the App Store app? By that I mean a list showing all the apps by the developer.
There are various ways to link to the store (I am using the Appmosys as the example here) that produce various results:
http://itunes.apple.com/us/artist/appmosys/id331687329 - The link copied from desktop iTunes, opens up the iTunes app on an iOS 6 device, with the developer's page. If you tap on one of their apps, it goes to that app on the App Store app.
http://itunes.com/apps/appmosys - Opens the iTunes app (via Safari) but presents this error message: "Cannot connect to iTunes store".
itms://itunes.com/apps/appmosys - Goes straight to the iTunes app, but same error as above.
itms-apps://itunes.com/apps/appmosys - Opens the App Store app, but also presents the same error (screenshot here: https://dl.dropbox.com/u/6920023/iphone-screenshot.PNG ).
Is there actually a way to do this in iOS 6?
Bonus points if you can answer the question and know if the link you provide also works with the affiliate program, http://www.apple.com/itunes/affiliates/. I've already looked at the Link Maker on this page, http://www.apple.com/itunes/link/, but can only produce the standard iTunes link.
Part B / even more bonus points
You can link straight to the Reviews tab in the App Store app for an app, but can you also now link straight to the new Related tab?
i have a solution for iOS 5:
itms-apps://itunes.com/apps/appmosys/id331687329
and one for iOS 6:
itms-apps://itunes.apple.com/artist/appmosys/id331687329
if you use itms-apps:// URLs instead of http:// it will open the app store app on the device, which is less confusing to the user, then going through safari.
Unfortunately i didn't found any single URL that works on iOS 5 and iOS 6. So the Apple Q&A Documentation is not valid anymore for iOS 6 :-(
UPDATE: i just realized that my iOS 5 solution works also on iOS 6 on the iPad, but not on the iPhone with iOS 6. it's getting weirder and weirder....
UPDATE 2:
apple just annonced the appstore.com urls so now you can link to Electronic Arts Developer Page with http://appstore.com/ElectronicArts
i just tested it and it works for iPad from iOS 5.1 to 6.0 and iPhone from 4.3 to 6.0
so now the Apple Q&A Documentation is valid!
I have a universal app and I needed to open up my developer page, and display the correct apps depending whether the user is using an iPhone, iPod or iPad. The only way I could get this to work correctly was by using the iTunes link maker http://itunes.apple.com/linkmaker/ results but replaced https: with itms-apps:
The link like http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=426623392
will be work on any iOS devices and any browsers in Internet also.
The customer will be NOT confused because it is standard link of Apple and developers using it.
Change just your id. So, it will be http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=XXXXXXXX where XXXXXXXX is your developer id.
This link you can find also in iTunes App on your desktop by copy the link from button "More Apps by YYYYYYY" on page of any of yours App. There YYYYYYY is your developer name. Like on this page https://itunes.apple.com/be/app/visual-html-editor-eye-lite/id472624198?mt=8
If you prefer to have a CUSTOMIZED "MORE APPS BY US" page inside your app (not exit to AppStore or Safari), then have a look at what I created here (there is downloadable working project):
http://xcodenoobies.blogspot.com/2014/06/how-to-create-dynamic-more-apps-page.html
The beauty of this is the data is retrieved from iTunes AppStore everytime you open the page in your app, and that you can customize it however you like.
Cheers.
http://itunes.apple.com/artist/id331687329.
I get to this link by using iTunes on Mac. Search for the company name, click on any app that is made by the company, look for "More iPhone Apps by XXXXX", click on it, then you'll see all apps by this company, right click on the company name and copy link, and you'll get this link. This link will work with iOS 6.
I have no problems mit links created with http://itunes.apple.com/linkmaker/
It generates only https links.

Resources