Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EAS not updating production app #2258

Closed
sirusbaladi opened this issue Mar 1, 2024 · 1 comment
Closed

EAS not updating production app #2258

sirusbaladi opened this issue Mar 1, 2024 · 1 comment
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@sirusbaladi
Copy link

Build/Submit details page URL

No response

Summary

App stopped receiving updates, even though branch, channel, and runtime version is correctly configured.

Managed or bare?

Managed

Environment

expo-env-info 1.2.0 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: AI-221.6008.13.2211.9477386
npmPackages:
expo: ^48.0.21 => 48.0.21
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.71.14 => 0.71.14
react-native-web: ~0.18.7 => 0.18.12
Expo Workflow: managed

Didn't find any issues with the project!

Error output

No response

Reproducible demo or steps to reproduce from a blank project

Here is the configuration:

From app.config.js
image

eas.js
image

from the deployment tab (the update is found)
image
image

the update tab:
image

As you can see: branch, channel, runtime version all correspond.
I have absolutely no idea why this not work. It was working before!

The app is currently installed on my device through app store.

App.js
{ "dependencies": { "@config-plugins/react-native-branch": "5.0.0", "@expo/vector-icons": "^13.0.0", "@gorhom/bottom-sheet": "^4.4.5", "@gorhom/portal": "^1.0.14", "@react-native-async-storage/async-storage": "1.17.11", "@react-native-community/datetimepicker": "6.7.3", "@react-native-firebase/app": "^18.0.0", "@react-native-firebase/auth": "^18.0.0", "@react-native-firebase/crashlytics": "^18.0.0", "@react-native-firebase/firestore": "^18.0.0", "@react-native-firebase/functions": "^18.0.0", "@react-native-firebase/perf": "^18.0.0", "@react-native-firebase/storage": "^18.0.0", "@react-navigation/bottom-tabs": "^6.5.7", "@react-navigation/material-top-tabs": "^6.6.2", "@react-navigation/native": "^6.1.6", "@react-navigation/native-stack": "^6.9.12", "@react-navigation/stack": "^6.3.16", "expo": "^48.0.21", "expo-blur": "~12.2.2", "expo-build-properties": "~0.6.0", "expo-constants": "~14.2.1", "expo-contacts": "~12.0.1", "expo-dev-client": "~2.2.1", "expo-font": "~11.1.1", "expo-haptics": "~12.2.1", "expo-image": "~1.0.2", "expo-image-manipulator": "~11.1.1", "expo-image-picker": "~14.1.1", "expo-linking": "~4.0.1", "expo-location": "~15.1.1", "expo-media-library": "~15.2.3", "expo-notifications": "~0.18.1", "expo-splash-screen": "~0.18.2", "expo-updates": "~0.16.4", "expo-web-browser": "~12.1.1", "libphonenumber-js": "^1.10.56", "mixpanel-react-native": "^2.4.0", "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "^7.43.1", "react-native": "0.71.14", "react-native-animated-pagination-dots": "^0.1.73", "react-native-branch": "^5.4.0", "react-native-elements": "^3.4.3", "react-native-gesture-handler": "~2.9.0", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-mmkv": "^2.12.1", "react-native-pager-view": "6.1.2", "react-native-popup-menu": "^0.16.1", "react-native-reanimated": "~2.14.4", "react-native-safe-area-context": "4.5.0", "react-native-screens": "~3.20.0", "react-native-svg": "13.4.0", "react-native-tab-view": "^3.5.1", "react-native-vision-camera": "^3.8.2", "react-native-web": "~0.18.7", "rive-react-native": "^6.2.3", "thumbhash": "^0.1.1" }, "devDependencies": { "@babel/core": "^7.19.3", "eslint": "^8.35.0", "eslint-config-airbnb": "^19.0.4", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-native": "^4.0.0" }, "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web" }, "resolutions": { "expo/expo-asset": "8.9.1" }, "version": "1.0.0", "private": true, "name": "APPNAME" }

full app.config.js
`const IS_DEV = process.env.APP_VARIANT === "development";

export default {
jsEngine: "hermes",
name: APPNAME,
scheme: APPNAME,
slug: "APPNAME",
version: "1.0.1",
orientation: "portrait",
icon: IS_DEV ? "./app/assets/iconDev.png" : "./app/assets/icon.png",
userInterfaceStyle: "light",
splash: {
image: "./app/assets/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},

updates: {
url: "https://u.expo.dev/private",
requestHeaders: {
"expo-platform": "ios",
"expo-runtime-version": "1.0.0",
"expo-channel-name": "production",
},
},
runtimeVersion: {
policy: "sdkVersion",
},

assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: false,
buildNumber: "3",
bundleIdentifier:REMOVED,
googleServicesFile: IS_DEV
? "./GoogleService-Info-Dev.plist"
: "./GoogleService-Info.plist",
infoPlist: {
UIBackgroundModes: ["remote-notification"],
branch_universal_link_domains: [
REMOVED
],
branch_key: {
REMOVED
},
},
associatedDomains: [
REMOVED
],
},
android: {
adaptiveIcon: {
foregroundImage: IS_DEV
? "./app/assets/adaptive-icon-dev.png"
: "./app/assets/adaptive-icon.png",
backgroundColor: "#FFFFFF",
},
googleServicesFile: IS_DEV
? "./google-services-dev.json"
: "./google-services.json",
package:REMOVED
},
web: {
favicon: "./app/assets/favicon.png",
},
extra: {
eas: {
projectId: REMOVED",
},
},
owner: "sirusbaladi",
plugins: [
"@react-native-firebase/app",
"@react-native-firebase/auth",
"@react-native-firebase/perf",
"@react-native-firebase/crashlytics",
[
"expo-contacts",
{
contactsPermission: "Allow REMOVED to access your contacts.",
},
],
[
"@config-plugins/react-native-branch",
{
apiKey: REMOVED,
iosAppDomain: "REMOVED
},
],
[
"expo-build-properties",
{
ios: {
useFrameworks: "static",
deploymentTarget: "14.0",
},
},
],
[
"expo-image-picker",
{
photosPermission:
"The app accesses your photos to let you share them with your friends.",
},
],
[
"react-native-vision-camera",
{
cameraPermissionText:
"REMOVEDneeds access to your Camera to let you share pics with your friends.",

    enableMicrophonePermission: true,
    microphonePermissionText:
      "$REMOVEDneeds access to your Microphone to let your record videos for your friends.",
  },
],
[
  "expo-media-library",
  {
    photosPermission: "Allow $(PRODUCT_NAME) to access your photos.",
    savePhotosPermission: "Allow $(PRODUCT_NAME) to save photos.",
    isAccessMediaLocationEnabled: true,
  },
],

],
};
`

@sirusbaladi sirusbaladi added the needs review Issue is ready to be reviewed by a maintainer label Mar 1, 2024
@sirusbaladi
Copy link
Author

fixed by only having:
requestHeaders: {
"expo-channel-name": "production",
},

and 

runtimeVersion: {
policy: "appVersion",
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant