setAnalyticsEnabled

Enables or disables analytics in the native MobilePush SDK.

Syntax 

MCCordovaPlugin.setAnalyticsEnabled(enabled, [successCallback], [errorCallback])

Kind 

Static method of MCCordovaPlugin.

Parameters 

ParameterTypeDescription
enabledbooleanWhether to enable analytics
successCallbackfunction
errorCallbackfunction