Tutorial: Platform.launchLegacyManifest

Platform.launchLegacyManifest

Retrieves a manifest by url and launches a legacy application manifest or snapshot into the platform. Returns a promise that resolves to the wrapped Platform. If the app manifest contains a snapshot, that will be launched into the platform. If not, the application described in startup_app options will be launched into the platform as a window with a single view. The applicable startup_app options will become View Options.

Example

try {
    const platform = fin.Platform.getCurrentSync();
    await platform.launchLegacyManifest('http://localhost:5555/app.json');
    console.log(`content launched successfully into platform`));
} catch(e) {
    console.error(e);
}
// For a local manifest file:
try {
    const platform = fin.Platform.getCurrentSync();
    platform.launchLegacyManifest('file:///C:/somefolder/app.json');
    console.log(`content launched successfully into platform`));
} catch(e) {
    console.error(e);
}