Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accelerometer work good on android, NOT working on iOS #461

Open
nppull opened this issue May 8, 2024 · 0 comments
Open

Accelerometer work good on android, NOT working on iOS #461

nppull opened this issue May 8, 2024 · 0 comments

Comments

@nppull
Copy link

nppull commented May 8, 2024

Describe the bug
Accelerometer work good on android, NOT working on iOS.

const subscription = accelerometer
  .pipe(map(({ x, y, z }) => x + y + z), filter(speed => speed > 20))
  .subscribe(
    speed => console.log(`You moved your phone with ${speed}`),
    error => {
      console.log("The sensor is not available");
    }
  );

Desktop (please complete the following information):

  • React Native: 0.73.5
  • Device: iphone xs max, ios 17.4.1
  • react-native-sensors: 7.3.6

Anyone have workaround ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant