I'm working on a mac app that is based on links like bitly.
Users can create short link mapping using the app.
I'm looking to provide an option that whenever the user right-clicks on links no matter what app users have been using I'm just looking to append my app's action Create short link along with.
Let's say a user right-clicks a link on slack, slack usually provides two options 1. Copy Link 2. Open Link I want to provide Create short link option along with that. Is that technically possible in the mac app?
I am trying to import a PDF file from other applications, such as mail, but I'm not sure exactly what I should be looking for. I want my user to be able to tap on the share button in a PDF and my app to be listed there as a place that can accept them, such as "Copy to iBooks"
Any good tutorials? Or suggestions as to what I should look for?
Preferably in Swift
Thanks!
You may use Action Extension for making PDF available in your app
Below i have linked Some Tutorials for Action Extension which is not perfect for your requirement but you check the concept and basic implementation for it
Bookmark from Browser
Read a text
Official apple doc
You can tell your app which types of documents it will support in the info.plist. A good place to start is Registering the File Types Your App Supports
in the iOS documentation.
I am trying to register my application to show up in Safari's "Open-in..." dialog when a user clicks the share button on any html webpage.
I have added the public.html (and public.data for good measure) content types to the Document Types in Xcode, as suggested in many answers: (See this question, this question, or this apple documentation.)
And, it seems to work. If I open a .pdf in Safari, I get the "open in My App" dialog at the top.
I can also use the "open in..." dialog from other apps to share the document with My App.
To test it, I built DocInteraction as recommended in this answer, and if I create an html file, My App shows up in the share dialog.
However, My App still doesn't show up in the share dialog in Safari.
When I run it in iOS7 on the iOS Simulator, I only get Mail, Twitter, and Facebook showing up:
The same goes when I test it on my real iOS device:
BUT, I would like you to note that it does seem to be possible! Look at the above screenshot.. SOMEHOW, Weibo has managed this feat. I don't know how, but for some reason Weibo shows up in this list even though My App doesn't.
And you know, actually, this sort of makes sense, given how many apps can probably open html pages. Here is DocInteraction running on my iOS device trying to share an html page:
There it is! My App! (It's actually called "Wulu Podify"). But there are so many apps who are hungry for .html pages, I guess Safari thinks it might be a bit overwhelming to provide them all.
BUT, this still begs the question, how did Weibo get themselves on that list? But, some further digging seems to show that actually Weibo seems to have gotten itself on EVERY list.
I'm not sure how they managed it, but maybe they are going about this differently.
Weibo's "I-will-open-any-document-you-throw-at-me-c'mon-try-it-c'mon" approach might solve this problem, but it's not ideal. I really only want to open html pages.
So. I guess my questions is three-fold:
Is there a way to actually have my app show up in Safari's "Open In..." dialog?
If not, how can I achieve what Weibo achieved, and show up in ALL the dialogs?
Should I want to do that? It seems like it might be a bad idea.
Thanks for any help! I've been at this for a while!!
Update:
So, actually, I didn't realize it but I think Weibo might be a built-in option just like Facebook and Twitter. I assumed it was just there because I have it installed on my phone, but maybe it was one of the iOS6 defaults. I say that because when I test on the iOS6.0 Simulator, I suddenly see Weibo show up in the share screen, even though I definitely haven't installed it on my simulator.
So maybe there is no way around this except for having it built in to Safari by apple..
I know this is years later, but if anyone runs into this old question, as of IOS 8, Apple now allows app creators to make "extensions" which do allow you to add your app to the share menus.
Here is some documentation:
https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html
I fear what you want is not possible.
There is a difference between the Share dialog and the Open With dialog.
For the latter it's possible to register your app with document interaction, but the Share dialog only provides the native types (which Weibo is one of - see here: UIActivityViewController).
Also see this question on StackOverflow: is-it-possible-to-add-an-app-to-the-native-share-dialog
its , called extension , fist create a new project and than -->
file ->new -> target -> application Extension -> ####
and select your required extension and done....
I'm checking on the possibilities of creating a browser app using phonegap. To launch a new window, I used the Child Browser plugin. Is it possible to open many instances of a child browser like how we can open many windows in our default mobile app?
If so, can I switch over between the windows like a native app? Pls guide me regarding this.
Thanks in advance
As referenced from the README on GitHub, I'm not sure this is possible, as it denotes that it is a singleton.
As Instagram and some another apps have option to open image in there app from any other app. I also want to do similar kind of thing for my iOS image processing app. So user can open there image from any app in my iPhone/iPad app. But I don't know how it is possible.
Navigate to your project.
Select your app target and open "info" tab.
Now in "Document Types" add a document type with these settings:
Name: "whatever" or "image"
Types: public.image
Save this and compile the app. Now your app should show in open in... list from other apps.
Now follow apple Opening Supported File Types and continue your development
For a complete list of types follow this: Uniform Type Identifiers Reference
Yes you can open any file type in other supported application in your iOS device with "Open In" option.
Please follow this apple document for Document Interaction Programming Topics for iOS will be helpful to you.
1) You can also refer this tutorial In which explain with example of pdf file.
2) For customisation check this and other possible types found here.
you can manage different types of document by adding UTI.