Crashs app when areRemoteUpdatesEnabled = true, Detached App SDK 28

#1

I published an app on Test Flight with areRemoteUpdatesEnabled = false and app run ok.

When i publish areRemoteUpdatesEnabled = true the app don’t open. The app shows native splash screen and crashes.

#2

Hi @victorwads. Could you post your app.json? In the absence of more information, the quickest fix I can suggest is upgrading to the latest SDK version (currently 28). However, there might be other ways to fix this if you provide more information.

#3

I’m Using SDK 28,

{
  "env": "dev",
  "expo": {
    "sdkVersion": "28.0.0",
    "name": "Ecocard",
    "description": "Seja digital! Troque cartões de visitas com o Ecocard!",
    "slug": "ecocard",
    "icon": "./assets/img/icon-android.png",
    "privacy": "unlisted",
    "version": "2.3.2-dev-0.7",
    "platforms": [
      "ios",
      "android"
    ],
    "assetBundlePatterns": [
      "assets/fonts/*",
      "assets/img/*"
    ],
    "updates": {
      "enabled": true
    },
    "splash": {
      "backgroundColor": "#404040",
      "image": "./assets/img/splash.png",
      "resizeMode": "cover"
    },
    "scheme": "ecocard",
    "orientation": "portrait",
    "facebookAppId": "XXXXXXXXXXXXXX",
    "facebookDisplayName": "Ecocard",
    "facebookScheme": "XXXXXXXXXXXXXX",
    "android": {
      "package": "br.com.i9xp.ecocard",
      "icon": "./assets/img/icon-android.png",
      "permissions": [
        "READ_CONTACTS",
        "READ_PROFILE",
        "WRITE_CONTACTS",
        "LOCATION",
        "ACCESS_FINE_LOCATION",
        "ACCESS_COARSE_LOCATION",
        "CAMERA",
        "READ_INTERNAL_STORAGE",
        "READ_EXTERNAL_STORAGE",
        "WRITE_EXTERNAL_STORAGE"
      ],
      "config": {
        "googleSignIn": {
          "certificateHash": "XXXXXXXXXXXXXX"
        }
      },
      "publishBundlePath": "android/app/src/main/assets/shell-app.bundle",
      "publishManifestPath": "android/app/src/main/assets/shell-app-manifest.json"
    },
    "ios": {
      "icon": "./assets/img/icon-ios.png",
      "bundleIdentifier": "br.com.i9xp.ecocard",
      "supportsTablet": false,
      "config": {
        "googleSignIn": {
          "reservedClientId": "XXXXXXXXXXXXXX"
        }
      },
      "infoPlist": {
        "NSContactsUsageDescription": "Você permite o Ecocard acessar sua lista de contatos para atualiza-los com as informações dos cartões digitais?",
        "NSLocationWhenInUseUsageDescription": "Você permite o Ecocard utilizar sua localização atual para procurar contatos que estejam próximos de você?",
        "NSPhotoLibraryUsageDescription": "Você permite o Ecocard utilizar sua galeria para atualizar suas imagens através dos nossos servidores?",
        "NSCameraUsageDescription": "Você permite o Ecocard utilizar sua camera para leitura de QRCodes?"
      },
      "publishBundlePath": "ios/ecocard/Supporting/shell-app.bundle",
      "publishManifestPath": "ios/ecocard/Supporting/shell-app-manifest.json"
    },
    "locales": {
      "en": "./assets/locales/en.json"
    },
    "isDetached": true,
    "detach": {
      "androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.6.2-sdk28.0.0-141d0954-b898-4919-aa89-3ab45453213f.tar.gz",
      "iosExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/ios-v2.6.5-sdk28.0.0-7eac2a72-06b2-48c9-8281-c0c6c308f0b0.tar.gz"
    }
  }
}
App runs in development but in production
#4

Hi @victorwads - sorry about this. We fixed this issue for standalone apps recently, but it looks like the fix did not make it to ExpoKit. We’ll push an update to ExpoKit soon but in the meantime you can fix this by applying this change directly to your ExpoKit source files: https://github.com/expo/expo/commit/d792df5de1e5c944a1f5c20ee1ad6fac63c45a1a

closed #5

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