initWithPublicKey first before using the other methods on Plot

31 views
Skip to first unread message

Mohammad Al-mouallem

unread,
Dec 11, 2015, 5:04:25 PM12/11/15
to plot-users
am getting this error in the xcode output  
ERROR|Plot| Plot hasn't been initialized. Call initWithPublicKey first before using the other methods on Plot.
however am implement the plugin as mentioned in the Blog like so:
 var plot = cordova.require("cordova/plugin/plot");
            console.log('the plot object', plot);
            var config = plot.exampleConfiguration;
                config.publicKey = "MyPublicKey"; //put your public key here
            plot.init(config);
        });
note: am wrapping the code with deviceReady

Mohammad Al-mouallem

unread,
Dec 11, 2015, 5:11:36 PM12/11/15
to plot-users
Forget to mention that am getting this message in the dashboard 
We can not determine the plugin version used in your app. This probably means that you have not integrated the Plot Projects plugin into your app yet.

Mark van der Tol

unread,
Dec 16, 2015, 5:53:41 AM12/16/15
to plot-users
Hi,

I'm not sure what goes wrong in your case. I'm unable to reproduce the issue locally. Are you making different calls to plot at another place in your code before the initialization is complete, such as setting segmentation properties?

Kind regards,
Mark van der Tol
Plot Projects

Mohammad Al-mouallem

unread,
Dec 17, 2015, 3:03:45 PM12/17/15
to plot-users
Hi mark ok thats not an issue anymore but still i can see the message in the dashboard that says:

We can not determine the plugin version used in your app. This probably means that you have not integrated the Plot Projects plugin into your app yet.

and the only thing am getting in the xcode output is :

THREAD WARNING: ['PlotCordovaPlugin'] took '32.444824' ms. Plugin should use a background thread.

Mark van der Tol

unread,
Dec 18, 2015, 4:25:23 AM12/18/15
to plot-users
Hi,

The message should disappear within a short period of time. This message isn't updated real time.

This feature isn't essential for the functioning of our services, so you shouldn't worry about it.

Kind regards,
Mark van der Tol
Plot Projects 
Reply all
Reply to author
Forward
0 new messages