[Vuejs]-Nativescript-Vue How to open file on launch

1👍

You will have to write your custom app delegate and implement applicationOpenURLOptions method to access the file.

For example,

var MyUIApplicationDelegate = UIResponder.extend(
    {
        applicationOpenURLOptions: function(app, url, options) {
            var file = File.fromPath(url.path);
            // process the file
            return true;
        },
    },
    {
        name: "MyUIApplicationDelegate",
        protocols: [UIApplicationDelegate],
    }
);

application.ios.delegate = MyUIApplicationDelegate;
👤Manoj

Leave a comment