Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<issues format="4" by="lint 3.0.0">
<issue
id="WifiManagerLeak"
severity="Fatal"
message="The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing `this.cordova.getActivity()` to `this.cordova.getActivity().getApplicationContext()`"
category="Correctness"
priority="6"
summary="WifiManager Leak"
explanation="On versions prior to Android N (24), initializing the `WifiManager` via `Context#getSystemService` can cause a memory leak if the context is not the application context. Change `context.getSystemService(...)` to `context.getApplicationContext().getSystemService(...)`."
errorLine1=" return result;
"
errorLine2="^">
<location
file="/Users/ben/gitLab-project/wisdom-ces/platforms/android/app/src/main/java/cordova/plugins/Diagnostic.java"
line="117"
column="1"/>
</issue>
</issues>