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

Fix "Neither user nor current process has android.persmission.ACCESS_WIFI_STATE" #249

Merged
merged 2 commits into from
Oct 17, 2017

Conversation

kesha-antonov
Copy link
Contributor

@kesha-antonov kesha-antonov commented Oct 16, 2017

[Android][bug] Neither user nor current process has android.persmission.ACCESS_WIFI_STATE

Hello!
After update from 0.11.0 to 0.12.0 it crashes on install

This PR not force people to add wifi permission and leave 2 new methods "getIP" and "getMac" only to folks who need it.

…text or memory will leak on devices < Android N. Try changing reactContext to reactContext.getApplicationContext() [WifiManagerLeak] WifiManager manager = (WifiManager) reactContext.getSystemService(Context.WIFI_SERVICE);
@GantMan GantMan merged commit 9088824 into react-native-device-info:master Oct 17, 2017
@GantMan
Copy link
Collaborator

GantMan commented Oct 17, 2017

thanks for the quick fix @kesha-antonov

@kesha-antonov
Copy link
Contributor Author

@GantMan No problem!

@qayyummdnoor
Copy link

what is the solution?

@machour
Copy link
Collaborator

machour commented Jul 26, 2018

@qayyummdnoor, you are commenting on an old merged PR. Please open a new issue describing your problems, I'll be glad to help

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

Successfully merging this pull request may close these issues.

None yet

4 participants