apache / cordova-plugin-network-information

Apache Cordova Network Information Plugin
https://cordova.apache.org/
Apache License 2.0
464 stars 321 forks source link

Allowing to extend NetworkManager and override the receiver and connecti... #26

Closed ghonix closed 9 years ago

ghonix commented 9 years ago

...vity manager

I have a special need that requires the plugin to be long lived across activities. By tying the receiver to one activity, it cause a intent filter leak. I would like to be able to extend the plugin and register the receiver on Initialize however I want. By having the fields private, this make it hard to achieve.

agrieve commented 9 years ago

I'd prefer not to open up the internals of the plugin, as that would increase the maintenance burden by broadening its API. It's not very big, so how about just copy / pasting it into your own plugin?