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

feat(Android): Detect and report VPN connections correctly on Android #95

Merged
merged 2 commits into from
May 18, 2019

Conversation

matt-oakes
Copy link
Collaborator

Overview

Adds the ability to detch VPN connections on Android. These were previously reported as "unknown". I have also added a fallback to "other" if we have a connection, but can't determine the type. This means we can handle new types being added without the user being reported incorrectly as "offline".

Fixes #87.

Test Plan

Tested on multiple Android devices with a VPN client.

@mikehardy
Copy link
Contributor

LGTM

@mikehardy
Copy link
Contributor

With possible exception that the table of descriptors is a mix of "The active connection is..." and "The active connection ..." (no is). The "The"s are repetitive and the is or not-is variants might be normalized. But this is a doc / wording comment, not functionality. Suggest all have format of "Active connection is over "

[ci skip]
@matt-oakes matt-oakes merged commit 1f9e5c1 into master May 18, 2019
@matt-oakes matt-oakes deleted the matt-oakes/vpn branch May 18, 2019 17:17
@matt-oakes
Copy link
Collaborator Author

Thanks! I updated the README with your suggestions too.

react-native-community-bot pushed a commit that referenced this pull request May 18, 2019
# [3.1.0](v3.0.2...v3.1.0) (2019-05-18)

### Features

* **Android:** Detect and report VPN connections correctly on Android ([#95](#95)) ([1f9e5c1](1f9e5c1))
@react-native-community-bot
Copy link
Collaborator

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Connection with a vpn at android is not recognized
3 participants