breautek commented on issue #122: URL: https://github.com/apache/cordova-plugin-network-information/issues/122#issuecomment-657340096
Nope, I still do not experience a device crash on a Pixel 3A, using a simple test app that alerts on network change (which it fires once on launch). Previously I tested on an existing emulator I had, which was based on Pixel 2, but I'm pretty sure these are just skins and don't actually change the behaviour of the app (other than screen resolutions and some other technical details like total memory) It's weird that you see the permission tag inside `AndroidManifest.xml` but having an error that suggest your app doesn't have that permission. The next thing I'd confirm is if your apk actually has those permissions listed. You can check this by using the `aapt` tool: `aapt d permissions <path/to/apk>` You may need to add the android build tools to your path in order to use `aapt`. The executable should be located at: `$ANDROID_HOME/build-tools/29.0.2/` Note that your build tools version may vary. The expected output of the `aapt` command above should be something like: ``` $ aapt d permissions app-debug.apk package: com.bt.network uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.ACCESS_NETWORK_STATE' ``` If `ACCESS_NETWORK_STATE` is missing, then there is something happening between writing the `AndroidManifest.xml` and actually building the apk. Or the `AndroidManifest.xml` is improper. If this is the case, we'd need to see if we can build a sample reproduction app that includes the minimal amount of configuration necessary to reproduce the problem. Since I haven't been able to reproduce it myself, it seems likely there might be another plugin causing a conflict. Here's a list of others things you can try: - Reinstalling the the plugin and/or the platform - Updated android sdk/build tools. Since you're using cordova-android@8/ android sdk 28, you should be using build tools 28. - Consider upgrading to cordova-android@9 & updating android sdk to 29 / build tools 29 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
