Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pathForGroup method #246

Merged
merged 3 commits into from
May 11, 2017
Merged

Add pathForGroup method #246

merged 3 commits into from
May 11, 2017

Conversation

alexey-pkv
Copy link
Contributor

When two applications share the same group, a common folder can be accessed to share data between this two applications. This method will return the path to a shared group folder by the group's name. See containerURLForSecurityApplicationGroupIdentifier and [About App Sandbox](https://developer.apple.com/library/content/documentation/Security/Conceptual/AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html#//apple_ref/doc/uid/TP40
011183) for reference.


@ReactMethod
public void pathForGroup(String bundleNamed, Promise promise) {
// TODO: Not sure what equivalent would be?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to reject this promise with a meaningful error message

@itinance
Copy link
Owner

Nice catch! Thanks for contributing. Do you might adding a section to the Readme describing the purpose of this method (with special warning that this is iOS only)?

@alexey-pkv
Copy link
Contributor Author

@itinance Yes of course. I will look into it next week.

@alexey-pkv
Copy link
Contributor Author

Done, please review.

@itinance itinance merged commit 98b108d into itinance:master May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants