sarriaroman / FabricPlugin

Fabric.io plugin for Cordova or Phonegap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sendCustomEvent with attributes

ssaurav2512 opened this issue · comments

Hi.
I started using the plugin and it works great! But I'm not able to figure out how to send attributes with a custom event. I'm sending it in the following format:
sendCustomEvent("eventname","val1","val2")
I'm not getting any errors, but I know its not the right format. Can someone help me out?
Thanks!

It should be something like this:

let attributes = {
  key1: value1,
  key2: value2
};
sendCustomEvent("eventName", attributes);

or add attributes to current events if its not possible already like below:
try{ //do something }catch(err){ sendNonFatalCrash("error message", err); }