The standalone apps are stuck on the splash screen

Hello, we recently upgraded our SDK version from 32.0 to 35.0 and started having the issue that the app is stuck on the splash screen when we build the new bundle. The app works just fine on our local machine via expo-cli, however, the issue occurs when we build APK or IPA to test.

Our environment:

  • SDK Version: 35.0
  • Platforms(Android/iOS/web/all): Android/iOS
  • Using AppLoading component as the splash screen

What we did when upgrading the SDK:

  1. Upgrade the SDK version to 33.0 first
  2. Then, upgrade the SDK version to 35.0
  3. Update import statements using expo-codemod
  4. Change the app name by changing the name attribute in app.json

We have already tried the following things without any luck.

What we have tried so far:

  • Upgrade to SDK 36.0 (downgraded to 35.0 now as it didn’t work)
  • expo-optimize
  • expo start --no-dev --minify (works without any issues)
  • Add "uglify-es": "^3.2.2" to package.json

Even though we have also run APK via Andorid Studio to see if there’s any suspicious error, we could not find something that is particularly suspicious.

Artifact link: https://expo.io/artifacts/72fbba78-d688-496e-b959-90053a96648a
The part of the output of adb logcat:

07-27 15:47:09.631 22738 22828 W System.err: org.json.JSONException: No value for bundledAssets
07-27 15:47:09.631 22738 22828 W System.err: 	at org.json.JSONObject.get(JSONObject.java:392)
07-27 15:47:09.631 22738 22828 W System.err: 	at org.json.JSONObject.getJSONArray(JSONObject.java:587)
07-27 15:47:09.631 22738 22828 W System.err: 	at versioned.host.exp.exponent.modules.universal.ScopedFileSystemModule.getBundledAssets(ScopedFileSystemModule.java:41)
07-27 15:47:09.631 22738 22828 W System.err: 	at versioned.host.exp.exponent.modules.universal.ScopedFileSystemModule.getConstants(ScopedFileSystemModule.java:28)
07-27 15:47:09.631 22738 22828 W System.err: 	at org.unimodules.adapters.react.NativeModulesProxy.getConstants(NativeModulesProxy.java:74)
07-27 15:47:09.631 22738 22828 W System.err: 	at com.facebook.react.bridge.JavaModuleWrapper.getConstants(JavaModuleWrapper.java:136)
07-27 15:47:09.631 22738 22828 W System.err: 	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
07-27 15:47:09.631 22738 22828 W System.err: 	at android.os.Handler.handleCallback(Handler.java:790)
07-27 15:47:09.631 22738 22828 W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:99)
07-27 15:47:09.631 22738 22828 W System.err: 	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
07-27 15:47:09.631 22738 22828 W System.err: 	at android.os.Looper.loop(Looper.java:164)
07-27 15:47:09.631 22738 22828 W System.err: 	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
07-27 15:47:09.632 22738 22828 W System.err: 	at java.lang.Thread.run(Thread.java:764)
07-27 15:47:09.632 22738 22833 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:09.644 22738 22828 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:09.648 22738 22828 I chatty  : uid=10106(ca.barterbay.barterbay) mqt_js identical 1 line
07-27 15:47:09.652 22738 22828 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:09.713 22738 22760 I zygote  : Deoptimizing java.lang.Object com.google.android.gms.measurement.internal.cy.a(java.lang.Object) due to JIT inline cache
07-27 15:47:09.804 22738 22760 I FA      : Tag Manager is not found and thus will not be used
07-27 15:47:09.957  2390 22042 E NetworkScheduler: Invalid component specified.
07-27 15:47:11.006 22738 22828 I ReactNativeJS: Running application "main" with appParams: {"initialProps":{"exp":{"initialUri":"barterbay://","manifest":{"iconUrl":"https://d1wp6m56sqw74a.cloudfront.net/~assets/ca365f243abcc0b4a9f1f98a26180c0a","releaseChannel":"production-v1","version":"2.3.3","locales":{},"description":"Barter Aye mobile app.","sdkVersion":"35.0.0","platforms":["ios","android"],"facebookAppId":"1739058953061731","facebookDisplayName":"barterbay","hostUri":"exp.host/@barterbay/barterbay?release-channel=production-v1","dependencies":["@expo/vector-icons","apollo-cache-inmemory","apollo-cache-persist","apollo-client","apollo-link","apollo-link-context","apollo-link-error","apollo-link-http","axios","babel-plugin-module-resolver","babel-plugin-transform-remove-console","expo","expo-analytics-amplitude","expo-asset","expo-av","expo-branch","expo-camera","expo-constants","expo-facebook","expo-file-system","expo-font","expo-image-picker","expo-intent-launcher","expo-linear-gradient","expo-location","expo-permissions","expo-secure-store","expo-web-browser","graphql","graphql-tag","hoist-non-react-statics","jwt-decode","lodash.once","pubnub","qs","react","react-apollo","react-native","react-native-animatable","react-native-check-box","react-native-easy-toast","react-native-gesture-handler","react-native-gifted-chat","react-native-google-places-autocomplete","react-native-hyperlink","react-native-image-zoom-viewer","react-native-keyboard-aware-scroll-view","react-native-keyboard-spacer","react-native-lightbox","react-native-maps","react-native-modal","react-native-popup-menu","react-native-progress-bar-animated","react-native-reanimated","react-native-screens","react-native-slider","react-native-svg","react-native-swiper","react-native-tab-view","react-navigation","react-navigation-backhandler","react-redux","redux","redux-persist","redux-thunk","reselect","sentry-expo","validator","whatwg-fetch","xregexp"],"releaseId":"60cdc556-c540-4651-a35a-1afdb4a51299","slug":"barterbay","icon":"./assets/icons/logo.png","loadedFromCache":false,"splash":{"resizeMode":"contain","backgroundColor":"#FFFFFF","image":"./assets/images/splash-screen.png","imageUrl":"https://d1wp6m56sqw74a.cloudfront.net/~assets/d90c044edc3b74a79f148c7130475af3"},"primaryColor":"#cccccc","orientation":"portrait","publishedTime":"2020-07-17T23:28:13.039Z","isVerified":true,"id":"@barterbay/barterbay","privacy":"unlisted","scheme":"barterbay","bundleUrl":"https://d1wp6m56sqw74a.cloudfront.net/%40barterbay%2Fbarterbay%2F2.3.3%2Fd6bde9b25ba1506e961f37914e403e32-35.0.0-android.js","revisionId":"2.3.3-r.q2c0mU!!x","facebookScheme":"fb1739058953061731","packagerOpts":{"assetExts":["ttf","mp4"]},"commitTime":"2020-07-17T23:28:13.141Z","notification":{"iconUrl":"https://d1wp6m56sqw74a.cloudfront.net/~assets/28bb5b0f56473de9a13b53119fa4e227","androidMode":"collapse","color":"#FF9433","androidCollapsedTitle":"#{unread_notifications} new messages","icon":"./assets/icons/push-logo.png"},"name":"Barter Aye","ios":{"supportsTablet":false,"infoPlist":{"NSLocationAlwaysAndWhenInUseUsageDescription":"Uses location to help you find your community","NSLocationWhenInUseUsageDescription":"Uses location to help you find your community","NSPhotoLibraryUsageDescription":"Uses gallery to select photos for profile pictures as well as product pictures","NSCameraUsageDescription":"This app uses the camera to take product pictures and profile pictures"},"bundleIdentifier":"ca.barterbay.barterbay"},"android":{"permissions":["ACCESS_COARSE_LOCATION","ACCESS_FINE_LOCATION","CAMERA","MANAGE_DOCUMENTS","READ_CONTACTS","READ_CALENDAR","WRITE_CALENDAR","READ_EXTERNAL_STORAGE","READ_PHONE_STATE","RECORD_AUDIO","USE_FINGERPRINT","VIBRATE","WAKE_LOCK","WRITE_EXTERNAL_STORAGE","com.anddoes.launcher.permission.UPDATE_COUNT","com.android.launcher.permission.INSTALL_SHORTCUT","com.google.android.c2dm.permission.RECEIVE","com.google.android.gms.permission.ACTIVITY_RECOGNITION","com.google.android.providers.gsf.permission.READ_GSERVICES","com.htc.launcher.permission.READ_SETTINGS","com.htc.launche
07-27 15:47:11.139 22738 22829 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.161 22738 22828 W ReactNativeJS: 'expected error: ', { [Error: no refreshToken]
07-27 15:47:11.161 22738 22828 W ReactNativeJS:   type: 'OK',
07-27 15:47:11.161 22738 22828 W ReactNativeJS:   line: 1079,
07-27 15:47:11.161 22738 22828 W ReactNativeJS:   column: 9117,
07-27 15:47:11.161 22738 22828 W ReactNativeJS:   sourceURL: '/data/user/0/ca.barterbay.barterbay/files/35.0.0/cached-bundle-experience-%40barterbay%2Fbarterbay-1182893521-35.0.0' }
07-27 15:47:11.163 22738 22829 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.167 22738 22829 I chatty  : uid=10106(ca.barterbay.barterbay) mqt_native_modu identical 1 line
07-27 15:47:11.171 22738 22829 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.175 22738 22828 I ReactNativeJS: '[apollo-cache-persist]', 'Purged cache storage'
07-27 15:47:11.181 22738 22829 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.204 22738 22840 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.213 22738 22844 I WebViewFactory: Loading com.android.chrome version 61.0.3163.98 (code 316409812)
07-27 15:47:11.235 22738 22844 I zygote  : The ClassLoaderContext is a special shared library.
07-27 15:47:11.346 22738 22840 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.347 22738 22844 I cr_LibraryLoader: Time to load native libraries: 2 ms (timestamps 3720-3722)
07-27 15:47:11.377 22738 22844 I chromium: [INFO:library_loader_hooks.cc(136)] Chromium logging enabled: level = 0, default verbosity = 0
07-27 15:47:11.377 22738 22840 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.377 22738 22844 I cr_LibraryLoader: Expected native library version number "61.0.3163.98", actual native library version number "61.0.3163.98"
07-27 15:47:11.383 22738 22840 D i       : WARNING: getPackageName called on ScopedContext
07-27 15:47:11.584 22738 22744 I zygote  : Do full code cache collection, code=125KB, data=108KB
07-27 15:47:11.586 22738 22744 I zygote  : After code cache collection, code=89KB, data=49KB
07-27 15:47:11.937  1502  1502 I keystore: del USRPKEY_AES/GCM/NoPadding:key_v1 10106
07-27 15:47:11.938  1502  1502 I keystore: del USRSKEY_AES/GCM/NoPadding:key_v1 10106
07-27 15:47:11.940  1502  1502 I keystore: del USRCERT_AES/GCM/NoPadding:key_v1 10106
07-27 15:47:11.941  1502  1502 I keystore: del CACERT_AES/GCM/NoPadding:key_v1 10106

...

07-27 15:47:23.037 22738 22791 E GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}
07-27 15:47:23.113 22738 22791 E GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported post request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}

We are stuck in this problem for quite some time now. Any help would be highly appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.