Open link when user scans my pass in Passbook - ios

Is it possibile to open a predefined link in Safari when the user scans a pass generated by my app with PassKit? I couldn't find this in the official documentation. Any hints?
There doesn't seem to be a renference to this in here:
https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/LowerLevel.html

If a pass contains a bar code of some kind, including QR codes, they can contain whatever information you want. What happens when someone scans the code depends on what the information is and on what app they're using when they scan the code.
Wallet.app can scan bar codes, but the only thing it knows how to do when it scans a code is to try to add a new card to itself. It won't redirect to Safari, it will just try to find a pass at the URL and download one if possible.
For other apps, it depends on what scanning app the person uses. For a bar code that contains a URL, any app that I've tried would offer to open the link in Safari. But what actually happens depends on the app the person is using.

Related

How to automatically bring the url (share-link of share api) of the corresponding app page to the clipboard when a screenshot is detected

literally, I need to know how to automatically bring the url (share-link of share api) of the corresponding app page to the clipboard when a screenshot is detected..
I'm not sure the store allow my app.. but I really want to know it is technically possible
I tried this using Android broadcast receive, and talked with many senior programmer.
But everytime I asked, they were so pessimistic.
I just know how it works in technically.

How to open iOS app when user scans a QR Code with an URL in it

I want to create a QR Code that contains a URL like https://example.com in it and when an user scans that, if they have the app installed on the phone, to open the app instead of going to the browser. Is that possible? I've looked at App Links and Universal Links and I can't see to get it to trigger off of a QR Code or with HTTPS instead of some custom URL.
Scanning QR code containing a URL with standard Camera app results in prompt to open the link in Safari. If the link in question is Universal Link and you do have the associated app installed, the prompt shows your app instead of Safari. If a user taps on that prompt your app is brought to foreground and application(_:userActivity:restorationHandler:) is called. It seems like it's not documented anywhere, but most likely it's an intended behavior and it's definitely working.

save text to default Notes app

I am working on app in which there is a textview with save button. On the click of save button I suppose to open the Notes app and save the text on notes. Same as we done to post the sms.
I also go through this given pdf file iPhoneURLScheme_Reference
But didn't find out the way to save the text/open the notes app from the app. If someone has ever done this type of functionality or having some idea please help me out.
Thanks in advance.
I don't expect there to be an URL scheme if it is not present in the PDF you linked to.
I wold expect it to be on this list however.
Looks like you can't do that.
If you consider the URL schemes in Apple's document you will notice that all of the schemes refer to an application the user is expected to interact with immediately (navigating with Maps, making a call,...). All these applications provide something you can't do your own. What would be the benefit of your app if it just allowed the user to write a note once?

Putting a url in an email that opens an application on iPhone or iPad

I know what code is needed to cause my iOS app to open a link in Safari. But I am looking at how I might accomplish something more in the reverse direction.
I can send email from my app. I would like to include a link in the email, that, when clicked on within the email on my iPhone or iPad, will open my app and perform an action based on the property values passed in the link. (The link would refer to a record in the database of my app, so the app can provide a view content based on that record.)
Another example I have seen is the special purpose URL used in the manifest file that loads ad hoc distributions over the air.
I see something like this when places and dates are automatically converted to links that open the map or calendar applications.
Does anyone have an idea how I can do this?
You need to implement a custom URL scheme.

QR code to open link that asks to take a picture?

I'm making a quest (for iPads) and would like to use QR codes that users have to scan and then do certain tasks: The user scans the QR code, which links to a text that asks them to take a picture of a certain object and a button that opens up the camera, once the picture is taken it is saved. I was thinking of a blog, where images can get uploaded once they are taken, but they could as well be stored on the iPad. I haven't found a solution using blogs, as taking an image can't be prompted, any idea how it could be done?
Thanks
Not really possible with a web app. You could have the link in your QR code point to your native app’s custom URL scheme, as in myapp://whatever, and then both get and upload the photo through that app, but what you’re trying to do isn’t possible through Safari.

Resources