Skip to content

Q42/meteor-custom-scheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Scheme

A wrapper for the Cordova Custom-URL-scheme plugin by EddyVerbruggen

Build Status

Getting started

Add the package to meteor

meteor add q42:custom-scheme

Basic usage

Mobile Config

You will need to specify your url scheme in your mobile-config.js.

App.configurePlugin('cordova-plugin-customurlscheme', {
  URL_SCHEME: [Your URL scheme here]
});

Listen for an URL - (This doesn't work yet, working on it...)

When the app is opened using the custom url scheme, the Meteor.onCustomScheme(callback) function is called. You can use this as an event to easily subscribe to, and to create your own logic for when this happens.

Meteor.onCustomScheme(function(url){
  // Use the url here
});

About

A wrapper for the Cordova Custom-URL-scheme plugin by EddyVerbruggen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published