How to open an app with the iOS11 integrated qrcode reader - ios

I want to use the new in-build qrcode reader in the iOS camera to open an app.
I cannot find the right documentation in the API.
Thanks for your help
Best Regards
Christian

I'v just tested with various URLs. It seems if the URL is http the Camera app opens Mobile Safari. If you know the target app URL (which is declared in the Info.plist) you can open the app with QR codes.
(ex) youtube://user/Apple --> Opens Youtube app

Related

Fetch App referrer when iOS App opened from other iOS app

Did some research but haven't found way to detect app referrer in iOS app(App is based on Swift Language), Flow is
Someone has posted some web link on FB i.e. link is
https://example.com.
Assume our iOS app is already installed on user's
device, hence when someone click on that link it will trigger ourapp(via
deep linking flow), and its working fine but also would like to know
source from which app user land to our iOS app.
Looks like in android there is way to achieve this using AndroidAppUri but haven't found way for iOS, let me know if anybody has any suggestion\input.

Anyone know the iOS custom scheme for Adobe Scan?

Does anyone know what the iOS custom URL scheme for Adobe Scan iOS App? For example the Adobe Reader scheme is com.adobe.adobe-reader://. I'm looking for the equivalent scheme so I can launch Adobe Scan from my app.
I've tried to randomly guess what the scheme is based on the known reader scheme.
UIApplication.sharedApplication().openURL(NSURL(string: "com.adobe.??????://")!)
Any help is much appreciated!
com.adobe.scan.ios
(from inspecting Info.plist)

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

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).

Is it possible to have an iOS webapp call another regular app to open? Works with Mobile Safari.

I am working with my web developers that are stuck on a problem with a Web-app we are creating.
The webapp works great, you add the website to your home screen on the ipad, open it and use the website within the webapp interface outside of safari.
The issue is that we have one function that doesnt work, where when clicking a URL link within mobile safari, it calls an external app (Optiscan- a qr code reader), and then when scanning the code, then returns you to Mobile safari.
The question is - is there a way to call a URL that will open an external app, from within a webapp? Similar to how it would work from mobile safari?
If so - i am then wondering if an app can be written that calls the webapp to open. For example if i needed the QR code reader to then re-open the web app and pass it the QR code.
-Dana
In iOS, native Apps can define Custom URL Schemes. If you know the scheme of an App, you can simply open it by clicking on a link like Launch Facebook App. This should launch the Facebook App for iOS if installed.
There was a crowd-sourced list of known URL schemes on akosma.com but they seem to have some problems and the list is not available as of writing this. If the URL scheme of the App you need to open is not public, try contacting the developer and ask for it. I'm sure if you ask kindly, he will help you ;-)
Edit: Almost forgot to say, opening Apps like this won't return to your Web-App magically. That's something the developer of said App would have to implement.
Edit 2: I found another website that has many custom URL schemes in it's database: http://handleopenurl.com. It does not have a URL scheme for Optiscan but for other QR Readers, maybe this will help you.

Custom URL scheme for new Facebook iOS app

Does anyone know what the custom URL scheme is to open a Facebook page in their new iOS app. I was using fb://page/PAGE_ID however this doesn't seem to be working in the recently updated Facebook iOS app, it just opens the app but doesn't go to the required page.
I got this answer at developer.facebook.com:
Replace the word page with profile and it will work. Your new statement will be:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"fb://profile/247377102029332"]];
Use https://graph.facebook.com/YOUR_USERNAME to get your page ID.
In your iOS app use: fb://profile/[your ID] and the facebook app will open to your page.
The URL scheme for the iOS Facebook application is:
fb://profile/(fbid)
Same problem here. fb://page/PAGE_ID is not working anymore.
Note that fb://profile/(fbid) wasn't working properly on Facebook 4.x returning a "corrupted" page in both iPad and iPhone. Instead, fb://profile/(fbid)/wall in Facebook 4.x worked well when using an iPad but didn't work with an iPhone.
fb://page/PAGE_ID was the only option that worked on both iPhone and iPad, based on my experience.
I used to use http://wiki.akosma.com/IPhone_URL_Schemes as reference, but it's currently down...
A custom URL scheme is a mechanism through which third-party apps can communicate with each other. It doesn't allow you the provision to open a page in that particular application. It just fires an event to bring the called Application to the foreground. Going through this documentation would further clear your doubts.
The new Facebook app is built using Objective-C as against previous once in HTML5 which used to support URL scheme mechanism. This link gives a hint on that.
http://techcrunch.com/2012/08/23/facebook-for-ios-faster/

Resources