24
Views
7
Comments
Solved
Mobile app short name

The name of our mobile app seems to be too long for iOS at least. The name has 23 characters including 2 spaces. On the homescreen the name is shown without spaces and it ellipses at 15 characters.

In the Cordova documentation the configuration of a short name is mentioned. This wil maybe solve my issue an use an alternative name below the app icon and still use the full name elsewhere.

Is this possible to configure in OutSystems?

Solution

I reached OutSystems support and they came up with a working solution:


Use the following Cordova Plugin - https://github.com/agoncalvesos/cordova-plugin-change-displayname.

The plugin was created by one of our Mobile Experts that had to address a similar situation in one of their customers.


In terms of implementation, it should be as simple as applying the following code into your mobile app and then replace the <new-name> value with the one you want to.

{
    "plugin": {
        "url": "https://github.com/agoncalvesos/cordova-plugin-change-displayname.git",
        "variables": [
            {
                "name": "APP_NAME",
                "value": "<new-name>"
            }
        ]
    }
}


Rank: #56

Hi Thomas,


A very similar question was posted on this post, I think you will find what you're looking for there.

Basically it is the application name that controls the name of the mobile app.


Hope it helps.


Cheers,

João

João Marques wrote:

Hi Thomas,


A very similar question was posted on this post, I think you will find what you're looking for there.

Basically it is the application name that controls the name of the mobile app.


Hope it helps.


Cheers,

João


Hi João,


This is not really the answer on my question. I know already how to change the name of the app. What I want to know is whether it’s possible to also configure a short name, like described in the Cordova docs I referred in my post.

Rank: #56

Hi Thomas,


I have never heard about changing the name only for the iOS application but the type of configuration you are referring sounds like an extensibility configuration, perhaps under the preferences - global - ios, there is a variable to define that?


Cheers,

João

Hi João,

Sorry for the late reply. I tried to contact OutSystems support as well, but apparently this issue does not fall under the scope of support.

According to the Cordova docs, this <name> element is not part of the Preferences. Its a standalone element inside the <widget> element of the config.xml.

So I basically merged your suggestion with my assumption, but even this didn't work out:


Any other ideas?

Rank: #4353

Working backwards from iOS I believe it is CFBundleDisplayName that needs to be set.

Found this article on Stackoverflow for Cordova. Hope this helps.

https://stackoverflow.com/questions/28373464/can-i-change-a-cordova-ios-apps-displayed-name-without-changing-the-entire-fi/51784165


ScreenShot20201110at11.47.56am.png

Hi Rob,

Thanks for your reply.

I found this article as well and used the ‘Edit plist plugin’ (https://www.outsystems.com/forge/component-overview/3079/edit-plist-file-plugin) with my own repo (https://github.com/tcvdw1605/cordova-plugin-edit-plist-file) but even this didn’t worked for me. I guess the values are being overwritten by MABS.

Solution

I reached OutSystems support and they came up with a working solution:


Use the following Cordova Plugin - https://github.com/agoncalvesos/cordova-plugin-change-displayname.

The plugin was created by one of our Mobile Experts that had to address a similar situation in one of their customers.


In terms of implementation, it should be as simple as applying the following code into your mobile app and then replace the <new-name> value with the one you want to.

{
    "plugin": {
        "url": "https://github.com/agoncalvesos/cordova-plugin-change-displayname.git",
        "variables": [
            {
                "name": "APP_NAME",
                "value": "<new-name>"
            }
        ]
    }
}