-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[Bug] java.lang.SecurityException: Requires VIBRATE permission #16769
Comments
same problem here |
@chocky335 have you tired both together? |
Same problem here. I do have an external library that uses a vibration that works just fine, so obviously the permission is working for some things. I just can't use the React Native built-in vibration system. |
Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version? I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer. |
I'm having same problem on RN 0.53.0 with
but
works. |
We are experiencing the same issue.
works and only for Android 6+. android < 6 will crash. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment:
OS: macOS Sierra 10.12.6
Node: 8.4.0
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: ^0.48.4 => 0.48.4
Target Platform: android 5.1.1 (XIAOMI Redmi 3) | Android versions less than 6.0
Steps to Reproduce
<uses-permission android:name="android.permission.VIBRATE"/>
import { Vibration } from "react-native
Vibration.vibrate()
Tried to use:
This one works for android 6+:
Expected Behavior
It shouldn't throw an error
Actual Behavior
it doesn't work
Reproducible Demo
The text was updated successfully, but these errors were encountered: