admin管理员组文章数量:1294690
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?
本文标签: androidExpo deep linking stopped working after changing appjson to appconfigjsStack Overflow
版权声明:本文标题:android - Expo deep linking stopped working after changing app.json to app.config.js - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741603834a2387856.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论