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.
iOS 14 Widget keychain issue.
I caught an error:
errSecInteractionNotAllowed = -25308
errSecInteractionNotAllowed = -25308
I'm having a similar issue: when i add the widget to the springboard it shows the data correctly. After some time, it cannot access the keychain. If i enter again and exit again in the app, the widget starts again to display the data....