Hi Folks.
Bit help needed guys.
We have app, which stores device ids (identifierForVendor) inside Keychain.
We added some logic, handling background 'silent' pushes, working in background mode.
But yesterday i faced issue with getting access to Keychain when app is in background (was awaken up from background 'silent' push).
I found the solution, which tells to write values to Keychain with 'always' (or 'afterFirstUnlock') flag for 'kSecAttrAccessible' attribute.
So, the question is:
1) Should i rewrite all necessary values with this option for making them available in background?
2) Or i can i just read necessary value with option ''always"("afterFirstUnlock")?
Bit help needed guys.
We have app, which stores device ids (identifierForVendor) inside Keychain.
We added some logic, handling background 'silent' pushes, working in background mode.
But yesterday i faced issue with getting access to Keychain when app is in background (was awaken up from background 'silent' push).
I found the solution, which tells to write values to Keychain with 'always' (or 'afterFirstUnlock') flag for 'kSecAttrAccessible' attribute.
So, the question is:
1) Should i rewrite all necessary values with this option for making them available in background?
2) Or i can i just read necessary value with option ''always"("afterFirstUnlock")?