Cordova location accuracy plugin error

Hi I am testing cordova location accuracy plugin on my app, it worked fine before, but recently it gives me this error when I call cordova.plugins.locationAccuracy.request:

2, Value null at 0 of type org.json.JSONObject$1 cannot be converted to int

Where 2 is the error code.

It doesn’t activate the GPS on my phone and it always triggers the fail callback.

Any idea?