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

Default to allowing requests when checking connectivity #970

Merged
merged 2 commits into from
Oct 28, 2020

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Oct 27, 2020

Goal

Alters the behaviour in the ConnectivityApi24 class so that requests are allowed by default. The previous implementation has a bug where hasNetworkConnection() would return false until the onAvailable() callback had been invoked by the Android framework. This has been resolved by querying connectivityManager#getActiveNetwork(), which will return null if there is no system default network available.

Testing

Relied on existing E2E scenarios. Attempted running the artefact in a local app with and without network connection and confirmed that request delivery was done accordingly.

@fractalwrench fractalwrench changed the title fix: add default value when checking connectivity Default to allowing requests when checking connectivity Oct 27, 2020
@fractalwrench fractalwrench force-pushed the PLAT-5282/connectivity-fix branch from d345a61 to 546106d Compare October 27, 2020 16:06
@fractalwrench fractalwrench marked this pull request as ready for review October 27, 2020 16:06
@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Oct 27, 2020

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1440.08 1361.29
arm64_v8a 369.25 287.33
armeabi 348.77 266.85
armeabi_v7a 332.38 250.46
x86 406.1 328.28
x86_64 389.72 307.8

Generated by 🚫 Danger

@fractalwrench fractalwrench removed the request for review from tomlongridge October 27, 2020 16:47
@fractalwrench fractalwrench marked this pull request as draft October 27, 2020 16:47
@fractalwrench fractalwrench marked this pull request as ready for review October 28, 2020 09:11
@fractalwrench fractalwrench merged commit eedf592 into next Oct 28, 2020
@fractalwrench fractalwrench deleted the PLAT-5282/connectivity-fix branch October 28, 2020 11:50
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.

3 participants