Pedometer plugin not working when building app on sdk 30 (Please help)

i developped an ionic cordova App which uses pedometer plugin , i was buildind it on sdk 28 for testing everything was fine , when i wanted to publish it on play store they said that i should build it on sdk 30 , so after building it on sdk 30 pedometer is not working anymore , anyone can help ? (it returns error code 3 : Device sensor returned an error)