- Newest
- Most votes
- Most comments
Worth considering on below:
-
Use npx expo run:android: Instead of using npx react-native run-android, try running your app with npx expo run:android. This command is recommended for running React Native apps with Amplify.
-
Check Amplify Version Compatibility: Ensure that you're using a compatible version of Amplify with Expo. As of Amplify v6, there are known compatibility issues with Expo Go. You might need to use a different method to run your app on a physical device.
-
Native Modules: Amplify requires native modules that are not available through the Expo SDK. This means that while you can still use Expo, you might need to switch to a bare React Native project for full functionality.
-
Update Dependencies: Make sure all your dependencies are up-to-date and correctly linked. Run pod install if you're using CocoaPods and rebuild your app after installing the packages.
-
Check Network Permissions: Ensure that your app has the necessary permissions to access the network. This can sometimes cause issues with authentication.
-
Debugging: Use debugging tools to check if there are any network requests being made when you try to sign in. This can help identify if the issue is on the client side or server side.
did you ever resolve this issue? i'm getting the same error. this only happens on mobile. web, i can login with no problems but i get this error on both ios and android. i didn't a fresh install with the instructions outlined here: https://docs.amplify.aws/react-native/start/quickstart/
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 21 days ago
