简体   繁体   English

如何在位置警报中更改世博名称

[英]How to change expo name in location alert

simple question. 简单的问题。 I want to change the " EXPO " name inside the allow location message, where should I make it. 我想在允许位置消息中更改“ EXPO ”名称,我应该在哪里创建它。

检查图像

Thanks 谢谢

" 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM