Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230605

Retrieving data from the hosted PWA

$
0
0

To get an instance of your plugin you can do it like this:

PluginHandle handle = this.bridge.getPlugin("MyPlugin");
if (handle == null) {
  return;
}
MyPlugin myPlugin = (MyPlugin) handle.getInstance();
myPlugin.doSomething();

Also, from MainActivity.java you can use the bridge object to fire javascript events with this.bridge.triggerDocumentJSEvent, this.bridge.triggerWindowJSEvent and this.bridge.triggerJSEvent methods without a plugin.


Viewing all articles
Browse latest Browse all 230605

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>