SecureStore iCloud Keychain does not sync

  1. SDK Version: expo@39.0.3
  2. Platforms(Android/iOS/web/all): iOS

I currently have 2 apps (1 iOS, 1 MacOS) that share some data via the iCloud Keychain. Here is how the setup is made.

App 1 (iOS):
bundle id: com.appios
KeyChain Groups (Signing & Capabilities): com.aaaa
KeyChain Sevice: com.bbbb
Key: ccc

App 2 (MacOS):
bundle id: com.appmacos
KeyChain Groups (Signing & Capabilities): com.aaaa
KeyChain Sevice: com.bbbb
Key: ccc

and it works. Now I wanted to create App 3 with ReactNative and read the same data, so I’ve used Expo's SecureStore that I hoped would do the trick.

I have set in Xcode:

App 3 (iOS-ReactNative):
bundle id: com.apprn
KeyChain Groups (Signing & Capabilities): com.aaaa

Here is my very basic implementation:

import * as SecureStore from 'expo-secure-store';

SecureStore.getItemAsync('cccc', {
  keychainService:'com.bbbb'
})
  .then(value => console.log(value))
  .catch(err => console.log(err))

I have tested on a real device where the other iOS app (App 1) is installed, but the getItemAsync always returns null.

Am I doing something wrong? Is this even doable?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.