ClaySolutions / ClaySDK

This SDK for iOS contains the most up-to-date frameworks for integrating Mobile Key technology into your own iOS applications.
https://saltoks.com/developers/connect/mobile-sdk-introduction/
MIT License
1 stars 1 forks source link

Unable to unlock after coming back from background #8

Open franconob opened 3 years ago

franconob commented 3 years ago

Hello there. I'm having a problem trying to unlock a door and it's happening when the user moves the app to background and the app stays there for a long period of time. After the user brings the app again to foreground and tries to search for locks, nothing happens. Do I need to initialize the sdk again after some period of time when the app is in background and changes to active to be able to find locks?

Thanks!

jakov-clay commented 3 years ago

Hi @franconob , we did not experience those problems. Inside constructor we load private keys from keychain. Opening process starts when you call openDoor and scanning locks should not be affected. You can maybe try calling reloadKeys() method which will reload private keys and return true if that was successful. Is it possible for you to try with a different device? Does scanning work if you initialise SDK again after coming from background?

jakov-clay commented 3 years ago

@franconob any updates on this? still have problem?

robvolk commented 3 years ago

Hi @jakov-clay, thanks for following up. We've implemented reloadKeys() and are waiting to hear back from our client. No news is potentially good news, and I'll keep you updated.

robvolk commented 3 years ago

@rodrigovive has taken over development on this issue