Reputation: 33
I am working on a react native expo app. Recently I have changed my app.json
to app.config.js
because me needed to pass version and version code via env variables. After this change when I build, deep linking is not working. I have checked assetlinks.json
it is configured correctly. I tried to install an old version of my app in phone, that time deep linking started working. I understood that the only problem is in app.config.js
. This is my app.config.js
export default {
expo: {
scheme: "myapp",
name: "Huddle",
slug: "huddle",
icon: "./assets/icon_android.png",
version: process.env.APP_VERSION ,
orientation: "portrait",
assetBundlePatterns: ["**/*"],
plugins: [
[
"expo-image-picker",
{
photosPermission:
"Allow Huddle to access your photos in order to set a profile picture or to make Publications.",
},
],
"expo-font",
[
"expo-notifications",
{
icon: "./assets/notification.png",
color: "#ffffff",
defaultChannel: "default",
},
],
],
extra: {
eas: {
projectId: "383dd893-1ab5-4082-a99e-8321ad795abf",
},
},
android: {
package: "com.goro12.HuddleForStudents",
intentFilters: [
{
action: "VIEW",
autoVerify: true,
data: [
{
scheme: "https",
host: "share.huddle.am",
},
],
category: ["BROWSABLE", "DEFAULT"],
},
],
usesCleartextTraffic: true,
icon: "./assets/icon_android.png",
versionCode: process.env.VERSION_CODE,
googleServicesFile: "./google-services.json",
},
ios: {
associatedDomains: ["applinks:share.huddle.am"],
bundleIdentifier: "com.goro12.HuddleForStudents",
icon: "./assets/icon_android.png",
supportsTablet: false,
infoPlist: {
NSAppTransportSecurity: {
NSAllowsArbitraryLoads: true,
},
},
},
owner: "goro12",
},
};
The only thing that I have changed is that I have added process.env.APP_VERSION
and process.env.VERSION_CODE
․ The rest configurations are the same as it was in app.json
. Do you have any ides what can cause this problem?
Upvotes: 0
Views: 39