Ios App Extension Data Sharing

App extensions let you extend custom functionality and content beyond your app and make it available to users while they re interacting with other apps or the system.
Ios app extension data sharing. Your app s extensions run in somebody else s app data sharing isn t automatic. Tap on the share button looks like a box with an arrow pointing upwards. In order for an extension to share data with its container app you need to configure an app group.
This will allow access to a shared container between the extension and container app. You need a developer account to enable app groups. In ios users tap the share button and choose a share extension from the sharing area of the activity view controller that appears.
In this post i ll go through the details of how to make it all work. This post discusses how to use couchbase mobile to share data between your ios app and ios app extension across devices. To enable data sharing use xcode or the developer portal to enable app groups for the containing app and its contained app extensions.
You can however enable data sharing. Since ios app extensions run as part of a host application rather than as part of their containing app i e. Third party apps system apps or even some parts of ios itself may be the host app.
As i mentioned an extension is not suppose to interact much with the containing app. Users get access to share extensions in the system provided ui. You can activate share extensions in any app that uses the standard ios share sheet on ios 8 or later.
In os x users can reveal the list of sharing services in a few different ways. Navigate to a web page. In this example we ll be using safari.