C++ | didAccelerated not firing

Hi,

I am using cocos 2dx for windows phone. I am using “didAccelerated” in my demo game but it is unable to fire the event when device is being rotated and moved.
I don’t know why this is happening.
Could there be any reason?

Did you call this->setAccelerometerEnabled(true);

Adam Reed wrote:

Did you call this->setAccelerometerEnabled(true);

Yes I called the same but still not working.