nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

Android Typescript Template - AppLabel with Whitespace

Open SjurWarEagle opened this issue 10 years ago • 1 comments

Hi,

at the moment the name in package.json must not have any whitespaces and it has to match the app_name from strings.xml. This results in the app_name not having whitespaces. The label title_activity_kimera may have whitespaces but when it is different from the app_name this results in a bad unstallation dialog on Android. uninstallwrong

A solution would be to change the default AndroidManifest.xml:

<application
    android:name="com.tns.NativeScriptApplication"
    android:allowBackup="true"
    android:icon="@drawable/icon"
    android:label="@string/title_activity_kimera" <------ change this
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.tns.NativeScriptActivity"
        android:label="@string/title_activity_kimera" <------ remove this
        android:configChanges="keyboardHidden|orientation|screenSize">

after this, everything looks fine.

uninstallok

SjurWarEagle avatar Jun 19 '16 13:06 SjurWarEagle

This issue was moved to NativeScript/android-runtime#490

enchev avatar Jun 20 '16 07:06 enchev