D V
D V

Reputation: 211

How to change the App name in Xamarin.Forms?

I have developed an Xamarin.Forms app and I initially named the project ”modelapp”. Now when releasing the Android app I changed the name of the app in ”MainActivity.cs” file to ”MyBooks”.

But when installing the apk file it is still displaying as ”do you want to install modelapp?” And even when the app is crashing it is displayed as ”modelapp.android is crashing”

Where else do I need to change the app name to ”MyBooks” so it everywhere gets displayed as ”MyBooks”?

Upvotes: 6

Views: 4853

Answers (2)

Zaur
Zaur

Reputation: 47

Open Info.plist file in iOS directory and change your app name.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
   <dict>
      ...
      <string>YOUR APP NAME</string>
      ...
   </dict>
</plist>

Upvotes: 0

Dinesh Falwadiya
Dinesh Falwadiya

Reputation: 809

Android

1 Right click on Android project and select properties from there select Android Manifest and change your Application name

enter image description here

2 Change your MainActivity Label Text

enter image description here

iOS

In your iOS project search file info.plist and open it with iOS Manifest Editor and select Application tab and change application name here

enter image description here

Note: You can change your package name and Bundle identifier name as well

Upvotes: 4

Related Questions