cordova-plugin-app-name icon indicating copy to clipboard operation
cordova-plugin-app-name copied to clipboard

not working after cordova-ios 4.5.4

Open Zahariel1942 opened this issue 8 years ago • 9 comments

cordovaCLI 7.1.0 cordova-ios 4.5.4

Zahariel1942 avatar Dec 07 '17 08:12 Zahariel1942

What is not working? Are you getting an error?

blakgeek avatar Dec 07 '17 13:12 blakgeek

cordovaCLI 7.1.0 cordova-ios 4.5.4

MacBook-Pro:cordova zuoge85$ cordova platform rm ios && cordova platform add ios Removing platform ios from config.xml file... Removing ios from cordova.platforms array in package.json Using cordova-fetch for cordova-ios@~4.5.1 Adding ios project... Creating Cordova project for the iOS platform: Path: platforms/ios Package: com.XL.Hbdz Name: xilele iOS project created with [email protected] Installing "cordova-plugin-app-name" for ios Installing "cordova-plugin-splashscreen" for ios Installing "cordova-plugin-statusbar" for ios Installing "cordova-plugin-wechat" for ios --save flag or autosave detected Saving ios@~4.5.4 into config.xml file ...

zuoge85 avatar Dec 11 '17 13:12 zuoge85

no error not working

zuoge85 avatar Dec 11 '17 13:12 zuoge85

[email protected] is ok

zuoge85 avatar Dec 11 '17 13:12 zuoge85

It's no error, and right value in ios.json but in plist it's wrong. It's looks like ios.json does not set Bundle Display Name.

Zahariel1942 avatar Dec 14 '17 03:12 Zahariel1942

in cordova 8.0.0, I have a different file location

in plugin:

var configPath = path.join(projectRoot, 'platforms', 'android', 'res', 'xml', 'config.xml');
var stringsPath = path.join(projectRoot, 'platforms', 'android', 'res', 'values', 'strings.xml');

in my project:

var configPath = path.join(projectRoot, 'platforms', 'android', 'app', 'src', 'main', 'res', 'xml', 'config.xml');  
var stringsPath = path.join(projectRoot, 'platforms', 'android', 'app', 'src', 'main',  'res', 'values', 'strings.xml');

'android', 'app', 'src', 'main', 'res'

pecet86 avatar Jan 19 '18 10:01 pecet86

We tried this plugin with [email protected] and [email protected]. In both when we run Cordova prepare, the Plist file is not updated with the name specified in the App_Name plugin.

prasannavigneshr avatar Mar 05 '18 17:03 prasannavigneshr

Any updates on this issue? Still not working for me, as well.

MichaelMassalas avatar Apr 04 '18 08:04 MichaelMassalas

It worked for me when setting the short Attribute of the name tag in config.xml:

....
<name short="My fancy display name">MyAppBundleName</name>

sburnicki avatar Apr 10 '18 13:04 sburnicki