Open valin0k opened 2 years ago
Thanks for reaching out on this, I have converted this issue to a feature request as we do not currently support MMKV as a Storage option for React Native. Please upvote this feature request if you are looking for this. Thanks!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Storage
Amplify Categories
auth
Environment information
Describe the bug
I used async-storage implementation from here https://docs.amplify.aws/lib/auth/manageusers/q/platform/js/#managing-security-tokens and with
async-storage
it working on both iOS and Android, but when i changed implementation to MMKV package - https://github.com/ammarahm-ed/react-native-mmkv-storage , authorization only work on iOS, but not on Android. Also i printed key/value inside the getItem method:key: CognitoIdentityServiceProvider.securityKey.+0101014557.deviceKey
,value: undefined
Expected behavior
i expect that signin will work correctly as for iOS
Reproduction steps
inside the Amplify config file:
and the storage file:
And after that import it as
AsyncStorage
inside the MyStorage exampleCode Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
android 9
Mobile Operating System
api 28
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response