Pedometer Step Count Not Working in Custom React Native Component

Problem Description.

Dear Adalo Support,

I’ve developed a custom React Native component for Adalo that integrates with the react-native-pedometer module to count user steps in real time. The component works perfectly when tested in a standalone React Native environment (Android/iOS), where the step count is tracked using the device’s motion sensors via Pedometer.watchStepCount().

However, when the same component is integrated into an Adalo app as a custom component:

  • Pedometer.isAvailableAsync() returns false or throws an error
  • The step count does not update or remain at zero
  • It defaults to fallback simulation mode due to lack of real sensor access

This issue indicates that Adalo’s custom component environment might not support native device motion sensor access (such as the Activity Recognition API on Android or Core Motion on iOS).


:magnifying_glass_tilted_left: Additional Details:

  • The pedometer component uses react-native-pedometer, which relies on native modules to access step count data.
  • All required permissions (ACTIVITY_RECOGNITION on Android) are included.
  • Platform check (Platform.OS === 'android' || 'ios') is handled correctly.
  • The component includes fallback simulation if native access is unavailable – which works in the Adalo preview, but that’s not the desired behavior for real devices.

:folded_hands: Request:

Please confirm:

  1. Does Adalo support access to native motion sensors (like accelerometer or pedometer) through custom components?
  2. If not, is there a recommended workaround or any upcoming support planned?
  3. Could this issue be due to restricted native modules in the Adalo environment?

Thank you for your assistance!

Best regards,
Dharmendra Prajapati ,
dprajapati16302@gmail.com

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.