Open bbijan opened 5 months ago
facing same issue
I have been able to fix it changing the native code to this
override fun onAttachedToActivity(binding: ActivityPluginBinding) { this.activity = binding.activity; }
override fun onAttachedToActivity(binding: ActivityPluginBinding) { this.activity = binding.activity; }
Hi
Could you provide an example? I've extended ActivityAware in my app's MainActivity.kt and override onAttachedToActivty with your suggestion. However, I'm still getting same error.
However, if I edit the plugins WireguardFlutterPlugin.kt checkPermission() method and manually setting havePermission = true and commenting the rest out, it works.
Thanks.
Hi
Thanks for a great package :)
Would it be possible to create a variable which could be set so that the vpn could be triggered from the background. This is useful for "snoozing" the vpn for a user defined time. Right now it seems that the package is using Context to get package name which is not accessible from an isolate.
Heres the error log: