Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share files between 2 local ios apps without url scheme or external server?

I have 2 local app "A" and "B". I want that the application "A" call the application "B" and "B" send a response to "A" with a file.

Url scheme is a good solution to call Application "B" but it's a bad solution to send files to "A".

How do I send a file from one application to another without url scheme and without external server ?

like image 976
Anthony Avatar asked Sep 24 '12 08:09

Anthony


People also ask

How do I share data between two iOS apps?

Shared Keychain Access: Allows you to securely store data to a shared keychain that other applications that are part of a suite of applications can access. All applications that share keychain access must use the same app ID prefix. For an example of shared keychain access in action.

How do I get iOS URL scheme?

The way I do it. Download the app "Iconical". It's an app used to create other icons to access an app. Once installed, tap "Select App" then hit refresh and you get a list of urls of all the apps with a url Scheme set up.

What is SMB in iPhone?

SMB Manager is a full-featured SMB client for iOS as well as convenient file manager to store, view and manage files and documents. The application includes tools for viewing files on the remote machine and locally. This is a powerful tool to transfer images, books, music and video.


2 Answers

Other than URL option, you have an best option to use iOS keychain. See this article.

There are couple of other options mentioned here.

Another option is to use iCloud APIs.

One more, copy-paste data between Apps using UIPasteboard.

BTW what's the problem with URL solution? Apple suggest you to use URL to share data between different Apps.

like image 166
AlienMonkeyCoder Avatar answered Sep 23 '22 02:09

AlienMonkeyCoder


I've used a combination of custom URL schemes and a UIPasteboard. I recently posted a full tutorial at http://enharmonichq.com/sharing-data-locally-between-ios-apps/.

like image 37
Dillan Avatar answered Sep 21 '22 02:09

Dillan