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.
- Host: GitHub
- URL: https://github.com/cxa/appextensioncommunicator
- Owner: cxa
- License: other
- Created: 2015-02-09T17:59:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T10:50:04.000Z (over 3 years ago)
- Last Synced: 2025-04-08T11:38:27.788Z (about 1 year ago)
- Language: Swift
- Homepage:
- Size: 20.5 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.