ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@capacitor/network crashing on Android 14(SDK 34) for Samsung and Google pixel devices.

rahulsingh8990 opened this issue · comments

Bug Report

Plugin(s)

@capacitor/network: 5.0.0

Capacitor Version

@capacitor/Core: 5.0.0

PASTE OUTPUT HERE

Platform(s)

Android

Current Behavior

We are getting carsh report on @capacitor/network plugin, below is the exception
This issue has been seen on following Android Version: Android(14), Android13,

Type: java.lang.NullPointerException

Exception java.lang.NullPointerException: Attempt to invoke interface method 'void.com.capacitorjs.plugins.network.Network$NetworkStatuschangeListener'
at com.capacitorjs.plugins.network.Network$ConnectivityCallback.onCapabilitiesChanged (Network.java:37)
at android.net ConnectivityManager$CallbackHandler;handleMessage (ConnectivityManager.java:4354)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:205)
at anroid.os.Looper.loop (Looper.java:294)
at android.os.handlerThread.run (HandlerThread.java:67)

Expected Behavior

Code Reproduction

Other Technical Details

Additional Context

This issue needs more information before it can be addressed.
In particular, the reporter needs to provide a minimal sample app that demonstrates the issue.
If no sample app is provided within 15 days, the issue will be closed.

Please see the Contributing Guide for how to create a Sample App.

Thanks!
Ionitron 💙