An open API service indexing awesome lists of open source software.

https://github.com/cxa/appextensioncommunicator

Communicate between app extension and its containing app. Swift framework.
https://github.com/cxa/appextensioncommunicator

Last synced: about 1 year ago
JSON representation

Communicate between app extension and its containing app. Swift framework.

Awesome Lists containing this project

README

          

# AppExtensionCommunicator

Communicate between app extension and its containing app.

## Usage Example

You must enable app groups for containing app and extension before using `AppExtensionCommunicator`.

1. Make an instance with app group container URL: `AppExtensionCommunicator(containerURL: containerURL)`
2. Deliver message: `communicator.deliverMessage(message: MSG_AS_DICTIONARY, withIdentifier: ID_AS_STRING)`
3. Observe message: `communicator.observeMessageForIdentifier(ID_AS_STRING) { message in
...}`

That's all.

Check the example project for a real world usage.

## Special Thanks
I learned how to mix C into Swift framework thanks to created by [danieleggert](https://github.com/danieleggert).

## Creator

* GitHub:
* Twitter: [@_cxa](https://twitter.com/_cxa)
* Apps available in App Store:

## License

Under the MIT license. See the LICENSE file for more information.