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

Allow main app to share local data and keychain with it's app extensions #26

Closed
Aziz-AnyDesk opened this issue Dec 1, 2022 · 2 comments
Labels
question Further information is requested

Comments

@Aziz-AnyDesk
Copy link

ParseSwift doest not allow sharing local data with it's extensions

Parse-IOS Objective-C SDK allows main iOS app to share local data like PFUser.current, PFInstallation.current and e.t.c with its app extensions like share extension, broadcasting extension and e.t.c.. Please add support for this feature for ParseSwift.

Feature / Enhancement Description

When this feature enabled, ParseUser.current and ParseInstallation.current should return the same value from the main app if it is called inside app extension. The main app should share keychain with its' extensions.

Example Use Case

Main app logs in user and launches broadcasting extension. Broadcasting extension calls ParseUser.current and gets the same user logged in in the main app. Broadcast extension is aware of the current user from the main app and shares keychain.

@cbaker6 cbaker6 added the question Further information is requested label Dec 1, 2022
@cbaker6
Copy link
Member

cbaker6 commented Dec 1, 2022

This was already added in parse-community#378. In the Swift SDK, all .current items are securely stored in the Keychain, so you will need to properly enable keychain sharing via access groups as well as add the correct Signing & Capabilities. Be sure to look through the differences between App Groups and Keychain Access Groups and how to use them together in the posted link.

The way these are stored in the Swift SDK is a lot different than the Objective-C SDK and the Swift SDK doesn't have issues like: parse-community/Parse-SDK-iOS-OSX#1648 or parse-community/Parse-SDK-iOS-OSX#1220

@Aziz-AnyDesk
Copy link
Author

Thank you. Really appreciate your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants