How to change application name in NativeScript
Solution 1
Go into app >> App_Resources >> Android >> values folder.
There should be a strings.xml file - if not create it.
The content should be
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DISPLAY APP NAME</string>
<string name="title_activity_kimera">APK NAME</string>
</resources>
p.s. these stackoverflow content check error messages are annoying!!!
Solution 2
For the Angular flavor of NativeScript:
Android app name:
App_Resources/Android/src/main/res/values/strings.xml
. Create it if it does not exist. Content is:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DISPLAY APP NAME</string>
<string name="title_activity_kimera">APK NAME</string>
</resources>
iOS App Name
In /Users/ryan/projects/snaptab-mobile-app/App_Resources/iOS/Info.plist
replace the <string>${PRODUCT_NAME}</string>
value of CFBundleDisplayName
with your app name. Ex: <string>My NS APP</string>
.
Solution 3
this worked for me:
For Android
create App_Resources/Android/src/main/res/values/strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">MyAppName</string>
<string name="title_activity_kimera">MyAppName</string>
</resources>
https://docs.nativescript.org/tooling/publishing/publishing-android-apps#app-name
For IOS
The value is stored in the app/App_Resources/iOS/Info.plist file as the CFBundleDisplayName key. just changed to your custom app name https://docs.nativescript.org/tooling/publishing/publishing-ios-apps#app-name
Gonzalo Diaz Ailan
I'm a web developer and I love SASS & AngularJS. That's all I guess.
Updated on July 04, 2022Comments
-
Gonzalo Diaz Ailan almost 2 years
I'm working with NativeScript from Telerik and I made an app with a debug name ("notiApp") but now I can't change the app's name in launcher and action bar.
I already tried configuring my
AndroidManifest.xml
in/app/App_Resources/Android/
modifying theandroid:label
attribute of my<application>
tag.<?xml version="1.0" encoding="utf-8"?> <manifest> <application android:label="DESIRED NAME"> </application> </manifest>
Also, I tried changing my project's root directory name for the new app desired name.
There's anything else I can do or any additional information I could provide?
Thanks in advance guys!