I have a custom file type that needs to be opened within our app, but when I tap the file, a menu is presented asking if I want to open the file in Messages, Mail, Slack, Notes, and then our application. How can I get it so that the app opens automatically? Or at least get our app to the front of the list of possible applications.
you can't remove other apps from being able to open the UTI.
you can't influence the order of apps in the dialog
===
IF that is our own filetype, change the file's UTI ;)
Related
I am using universal links to open an app. In the apple-app-site-association file I have 2 apps credentials saved to be opened with this universal link. I have both apps installed in my device. When I tap the link, a system dialog appears asking me which of the 2 apps I want to open. All is working fine. But the problem is that after selecting to open in one app, the system remembers my selection and don't ask anymore. Is it possible to don't remember that selection? Or to remove it?
I know that in order to get my App listed under the share menu all I have to do is add the Document Types my App supports but it does not work for the "Photos App" for some reason, my App is never shown under this menu.
But if I send an image to my Email and then open it, then tap on Share and my App is right there, what type of document is required for the Photos App then? I added this so far:
public.content
public.jpeg
public.png
public.heic
public.image
I'm trying to find out how I can add sharing support to my app using React Native. I've found documentation for displaying the action sheet from within my app but nothing on how I can add support for users to share images/links to my app. I'm not even sure what Apple calls this feature so it's possible I may not be searching with the right keywords.
e.g.
On #1 if you press the share button at the bottom middle of the safari app it will bring up a popup where you can choose an app e.g. Facebook, then if you press on Facebook it will open Facebook with a url to the page you want to share from safari where you can add a comment about the link. I want to replicate this behavior but within my own app. I want my app to be available to choose when I press the share button on the safari app which I will then open a popup window that displays the link the user wants to share allowing them to add a comment before posting the link. Is this possible with react native? I see that I have the option share with other apps (my fidelity app, sears shop your way, etc so It seems like you can have a non system app do this.
They are called Share extensions and they are part of the Extensibility features. They are system-wide Share Sheets. Not to be mistaken with Action Extensions.
Share extensions have colored icons.
Action extensions use monochromatic icons.
Anyway the links do not display UNTIL you have clicked the app in the share sheet.
Editor > Add Target > iOS > Application Extension > Share Extension
Configure the App Group for your app target.
On the Capabilities tab, turn on the App Groups switch and select the group you created. (if you want to enable code sharing between the extension and container app you can put the code in a framework and link to it)
Expand the group you created and you will see a storyboard file, an entitlements file, a view controller and a plist file under the Supporting Files group.
You can use the storyboard file to create a custom interface or do it programatically but Share extensions come with a default compose view that looks like the Facebook and Twitter views.
I'm developing an iPhone app with Swift which acts on certain file types (.xml &.zip). I've added these filetypes to the project file as a UTI (Uniform Type Identifiers). When accessing these sorts of files, usually from my email, I press and hold the file and a menu pops up from below. I choose my app icon that says "Open in MyApp". Is there a way that I can return to the email which triggered this event from within the app?
I've done some research on this and found that URL Schemes are the best way for inter - app communication, but you cannot arbitrarily open an app just to open it.
https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/UTIRef/Introduction/Introduction.html
The vision I have in mind is sort of how Google apps communicate with each other. For example, when opening a link from gmail, it switches apps to chrome. When chrome loads, the page back navigator is in Chrome displays the text similar to "back to gmail"
In iOS 9 the system implements this automatically, as seen in this screenshot here.
I am new to ios.In my app we have documents like PDF,.DOC if we click that document means it will check wheather any third party app is installed in device or not.if any app installed (Ex.PDF Reader)the document is open that app.After opening the document suppose if user close the app i want to navigate to my APP
How to do that?
You could use apples PDF Kit and open the pdf within your own app that should give you the control you want.
https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/PDFKitGuide/PDFKit_Prog_Intro/PDFKit_Prog_Intro.html#//apple_ref/doc/uid/TP40001863-CH203-SW1