luc-dev Member Licensed User Longtime User Sep 26, 2017 #1 Hello, Is it possible to activate Keychain group access with B4i ? Thank you Luc
Erel B4X founder Staff member Licensed User Longtime User Sep 26, 2017 #2 You can access the keychain with the Phone library (KeyChainPut / Get). You also need to add an entitlement: https://www.b4x.com/android/forum/threads/keychain-problem.71863/#content Upvote 0
You can access the keychain with the Phone library (KeyChainPut / Get). You also need to add an entitlement: https://www.b4x.com/android/forum/threads/keychain-problem.71863/#content
luc-dev Member Licensed User Longtime User Sep 26, 2017 #3 Yes, I am able to access the app keychain using KeyChainPut, Get, Remove but I would like to access the same KeyChain record from several apps and I can't figure out how to do that. I tried B4X: #Entitlement: <key>keychain-access-groups</key><array><string>ABCDEFGHIJ.com.myCompany.MyApp</string></array> and also B4X: #Entitlement: <key>keychain-access-groups</key><array><string>ABCDEFGHIJ.*</string></array> where ABCDEFGHIJ is the Apple AppID Prefix that is shared between the apps Did I miss something? Upvote 0
Yes, I am able to access the app keychain using KeyChainPut, Get, Remove but I would like to access the same KeyChain record from several apps and I can't figure out how to do that. I tried B4X: #Entitlement: <key>keychain-access-groups</key><array><string>ABCDEFGHIJ.com.myCompany.MyApp</string></array> and also B4X: #Entitlement: <key>keychain-access-groups</key><array><string>ABCDEFGHIJ.*</string></array> where ABCDEFGHIJ is the Apple AppID Prefix that is shared between the apps Did I miss something?
Erel B4X founder Staff member Licensed User Longtime User Sep 27, 2017 #4 You should use the one with the wildcard. Does it work? Upvote 0
luc-dev Member Licensed User Longtime User Sep 27, 2017 #5 I tried with the wildcard, adding the B4X: #Entitlement: <key>keychain-access-groups</key><array><string>ABCDEFGHIJ.*</string></array> to two of my apps. I use the same keychain key in the two apps to retreive the value. Each app still retrieves its own value from the KeyChain store. Do I have to change something to Apple Dev Account/Certificates/ids ? Upvote 0
I tried with the wildcard, adding the B4X: #Entitlement: <key>keychain-access-groups</key><array><string>ABCDEFGHIJ.*</string></array> to two of my apps. I use the same keychain key in the two apps to retreive the value. Each app still retrieves its own value from the KeyChain store. Do I have to change something to Apple Dev Account/Certificates/ids ?
Erel B4X founder Staff member Licensed User Longtime User Sep 27, 2017 #6 It works here. I tested it with three different applications. Two of them with the same entitlement and one without it. The two apps with the entitlement shared the same keychain. I've used the same provision profile and certificate in all three apps. Upvote 0
It works here. I tested it with three different applications. Two of them with the same entitlement and one without it. The two apps with the entitlement shared the same keychain. I've used the same provision profile and certificate in all three apps.
luc-dev Member Licensed User Longtime User Sep 27, 2017 #7 It finally works, at least with dev certificate/provisioning files. I tested with 3 apps. I hope it will work the same with production certificate. Many thanks for your time and testing Upvote 0
It finally works, at least with dev certificate/provisioning files. I tested with 3 apps. I hope it will work the same with production certificate. Many thanks for your time and testing