Accelerometer Plugin

I am using accelerometer plugin with periodicity as onChange.

According to my understanding the callback has to be invoked only when there is a change in the position of the device, but even when there is no movement in the device the callback is getting invoked.

Kindly help me in understanding this plugin.
If the value of periodicity is onChange, then the callback function is called with the current acceleration details whenever there is a change in the acceleration details of the device.

In most of the cases even if your device is at a static position the x and y values doesn't change but z axis may change, moreover it is primarily dependent on the sensitivity of accelerometer, better the sensitivity more frequently the callback is received, please save the values in a variable and verify if there is any change in values and proceed accordingly .