Skip to content

Out of the box support for application id in plugins #1026

@Fatme

Description

@Fatme

We have a plugin that needs the app's id.

Currently its manifest contains something like:

<Manifest>
    <Service id="SERVICE_NAME" />
</Manifest>

Registering an intent service exposed through JavaScript API.

If the service name is provided as plug-in variable, the app package.json will look like:

{
    "nativescript": {
        "id": "com.nativescript.MyPlayground",
        "UploadPlugin": {
            "SERVICE_NAME": "com.nativescript.MyPlayground.UploadPluginService"
        }
    }
}

Currently the plug-in is so designed that the service name is always expected to be the app id suffixed with the plugin name. It would be nice if we could simply use an expression like {{nativescript.id}}.UploadPluginService in the plug-in's manifest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions