Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Make JS module, that will handle the UL events #18

Closed
nikDemyankov opened this issue Nov 26, 2015 · 1 comment
Closed

Make JS module, that will handle the UL events #18

nikDemyankov opened this issue Nov 26, 2015 · 1 comment
Milestone

Comments

@nikDemyankov
Copy link
Member

As stated in #3 - we need a module, that does something like this:

function onDeviceReady() {
  console.log('deviceready');

  // set handler for the event
  universalLinks.on('event_name', onULOpen);
};

function onULOpen(event) {
  // handle the event
}

Internally, it will store the events, received from the native side; and then universalLinks.on(...) is called - send them to the callback. Basically, you are subscribing to the event through the plugins module.

@alexbuijs
Copy link

This would definately be very useful! I am now working around the timing issue by setting event details in localstorage from index.html and then acting on it when the app has finished loading.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants