Please provide the following:
- SDK Version:
Expo CLI 3.8.0 environment info:
OS: macOS 10.14.6
Shell: 3.2.57 - /bin/bash
Node: 10.15.3 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Android Studio: 3.4 AI-183.622.214.171.12492245
Xcode: 11.2/11B52 - /usr/bin/xcodebuild
expo: ^35.0.0 => 35.0.0
react: 16.8.3 => 16.8.3
react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8
react-navigation: ^4.0.9 => 4.0.9
Android (can reproduce most of the time in both Android standalone and Android in the Expo client, but only if I build with
expo start --no-dev --minify
I am using Expo along with the AWS Amplify Auth library. I have no issues on iOS. On Android, when running in minified production mode (see platforms above), most of the time my app restarts without any error (kicks me back to the splash screen) not long after sign in.
This means that my app is unusable on Android.
The issue occurs right after the Chrome Custom Tab call the app deep link URL that was generated by Expo’s Linking.makeUrl().
I am running out of ideas for how to troubleshoot this issue, so I thought I’d turn here for help. If I hook up the debugger with logcat, I don’t see anything other than my normal console.log statements. When I compare the console.log statements from the rare occurrence when the app does work to when it, most of the time, restarts, I see no difference.
I have had to patch the AWS Amplify Auth’s urlListener in order to get around a reported Expo issue where deep links fire a bunch of times over and over again, so it could be that that is still related, but if so I can’t tell. This is similar to my workaround: