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

Value is delete sometime unexpectedly #110

Open
trieuhellodenteam opened this issue Aug 6, 2019 · 1 comment
Open

Value is delete sometime unexpectedly #110

trieuhellodenteam opened this issue Aug 6, 2019 · 1 comment

Comments

@trieuhellodenteam
Copy link

trieuhellodenteam commented Aug 6, 2019

Please consider submitting the following information (if relevant):

  • Library setup method: file, Carthage, CocoaPods or Swift Package Manager.
  • Version of the library. Example: 8.0.
  • Xcode version. Example: 8.3.3.
  • OS version. Example: iOS 10.3.2.

I used keychain for store identifier device

`
class IOSDeviceManager {

static let shared = IOSDeviceManager()
var identifier: String {
    if let deviceId = keychain.get(deviceIdString) {
        return deviceId
    } else {
        let deviceId = UIDevice.current.identifierForVendor?.uuidString ?? ""
        keychain.set(deviceId, forKey: deviceIdString)
        return deviceId
    }
}

}

`

It worked perfect when I uninstalled then reinstall. But I don't know sometime IOSDeviceManager.shared. identifier get new value.
Do you know any reason?

@evgenyneu
Copy link
Owner

evgenyneu commented Aug 6, 2019

Hi, thanks for reporting. This could be related to #15. Sometimes the Keychain returns nil, there is a potential workaround in #78.

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

No branches or pull requests

2 participants