cookies icon indicating copy to clipboard operation
cookies copied to clipboard

Any way to get cookies from shared app group?

Open kodie opened this issue 3 years ago • 3 comments

In my iOS app, I have a share extension (built using https://github.com/meedan/react-native-share-menu). The main app and share extension are in the same App Group, however when I call CookieManager.get in my extension, it comes up empty, in the main app it works fine. I'm guessing that's because it's trying to get cookies that were stored in the extension but I need it to get cookies stored in the main app.

Since both the main app and extension are in the same app group, they should both have access to the same data. Something like this looks promising: https://github.com/KjellConnelly/react-native-shared-group-preferences However I'd rather not have to load the cookies in the main app and then store them somewhere else just so that the extension has access to it.

Is there any way we could define an app group or something with the cookies component?

kodie avatar Sep 24 '21 20:09 kodie

hi @kodie Have you found a solution yet?

thanhnvpk01168 avatar Dec 16 '22 16:12 thanhnvpk01168

Hi @kodie and @thanhnvpk01168, did any of you find a solution to this?

eakenbor avatar Apr 29 '23 10:04 eakenbor

@eakenbor @thanhnvpk01168 Unfortunately, no, I never found a solution. 😞

kodie avatar May 01 '23 15:05 kodie