B4J Question [BANano] Manifest.json additional parameters like screenshots?

Mashiane

Expert
Licensed User
Longtime User
Good day

How can one add additional settings to the generated manifest.json file? e.g. screen-shots parameters

Example

B4X:
{
    "name": "Squoosh",
    "short_name": "Squoosh",
    "start_url": "/?utm_medium=PWA&utm_source=launcher",
    "display": "standalone",
    "orientation": "any",
    "background_color": "#fff",
    "theme_color": "#ff3385",
    "icons": [
        {
            "src": "/c/icon-large-cb438cac.png",
            "type": "image/png",
            "sizes": "1024x1024"
        },
        {
            "src": "/c/icon-large-maskable-c2078ced.png",
            "type": "image/png",
            "sizes": "1024x1024",
            "purpose": "maskable"
        }
    ],
    "description": "Compress and compare images with different codecs, right in your browser.",
    "lang": "en",
    "categories": [
        "photo",
        "productivity",
        "utilities"
    ],
    "screenshots": [
        {
            "src": "/c/screenshot1-0ff68546.png",
            "type": "image/png",
            "sizes": "540x720",
            "form_factor": "narrow"
        },
        {
            "src": "/c/screenshot2-1f78c4db.jpg",
            "type": "image/jpeg",
            "sizes": "540x720",
            "form_factor": "narrow"
        },
        {
            "src": "/c/screenshot3-c1e02216.jpg",
            "type": "image/jpeg",
            "sizes": "540x720",
            "form_factor": "narrow"
        },
        {
            "src": "/c/screenshot4-3a706c3c.png",
            "type": "image/png",
            "sizes": "1024x593",
            "form_factor": "wide"
        },
        {
            "src": "/c/screenshot5-ea50826f.jpg",
            "type": "image/jpeg",
            "sizes": "1024x593",
            "form_factor": "wide"
        },
        {
            "src": "/c/screenshot6-0168d284.jpg",
            "type": "image/jpeg",
            "sizes": "1024x593",
            "form_factor": "wide"
        }
    ],
    "share_target": {
        "action": "/?utm_medium=PWA&utm_source=share-target&share-target",
        "method": "POST",
        "enctype": "multipart/form-data",
        "params": {
            "files": [
                {
                    "name": "file",
                    "accept": [
                        "image/*"
                    ]
                }
            ]
        }
    }
}
 

Mashiane

Expert
Licensed User
Longtime User
Additionally, the appname on the manifest is based on the name passed when initializing BANano?

Will it be possible to have this perhaps specified by the user in Transpilation Options?

1728558212963.png


The name of course creates a folder named "bma", which is nicely a sub-domain on my server, however the app_name and short_name I would like to be different?

Can you please advise?

Thanks in advance.
 
Upvote 0
Top