Skip to content

thomaslindstrom/cordova-plugin-open-scheme-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-open-scheme-url

Open a scheme url/deep link.

Methods

open

Opens a scheme url/deep url.

Example:

const {OpenSchemeUrl} = window.cordova.plugins;

OpenSchemeUrl.open('itms-apps://itunes.apple.com/no/app/youtube/id544007664', () => {
    console.log('URL opened successfully.');
}, () => {
    console.log('URL schema not handled.');
    window.location.href = 'https://itunes.apple.com/no/app/youtube/id544007664';
});
const {OpenSchemeUrl} = window.cordova.plugins;

OpenSchemeUrl.open('market://details?id=com.google.android.youtube', () => {
    console.log('URL opened successfully.');
}, () => {
    console.log('URL schema not handled.');
    window.location.href = 'https://play.google.com/store/apps/details?id=com.google.android.youtube';
});

About

Open a scheme url/deep link.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published