My widget uses keychain to retrieve access token to fetch data from server. Also, my widget has a "logouted" state, if token is nil, then widget shows "Error state View". I found a strange bug when my widget sometimes thinks that token is nil. I can't catch this bug in debug env at all, but after sometime my widget shows "unauthorised view". If I open the app and go back to the springboard, my widget shows fetched data again, so it means that token is not nil. I noticed that this state was when app was not in memory, so I tapped on the widget, and it launched from the beginning.
Post
Replies
Boosts
Views
Activity
I save a token in Keychain. When I try to get a token from keychain sometimes I receive this error:
errSecInteractionNotAllowed = -25308
How can I handle this ?