[英]How to change expo name in location alert
" Expo " name displayed in the message is the name of your application name. 消息中显示的“ Expo ”名称是应用程序名称的名称。 To change the name of your app, edit the " Display Name " field in Xcode:
要更改应用程序的名称,请编辑Xcode中的“ 显示名称 ”字段:
For Android, change the 'app_name' string in android/app/src/main/res/values/strings.xml
. 对于Android,更改
android/app/src/main/res/values/strings.xml
的'app_name'字符串。
To change the message shown below the title ("Allow Expo experiences...") you can override it using the ios.infoPlist
key in app.json
. 要更改标题如下所示的消息(“允许世博会的经验......”),您可以使用覆盖它
ios.infoPlist
关键app.json
。 To change your location permission you need to change the "infoPlist" to the following: 要更改您的位置权限,您需要将“infoPlist”更改为以下内容:
"infoPlist": {
"NSLocationWhenInUseUsageDescription": "Allow MyApp to use your location"
},
The Mohammad Reza Farahani's answer is correct in part. Mohammad Reza Farahani的回答是正确的。 But in my case the problem solved itself after changing using expo app to the real app.
但在我的情况下,在将expo应用程序更改为真实应用程序后问题自行解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.