package_replaced 1.1.1

Flutter Android iOS

Plugin for flutter to respond to MY_PACKAGE_REPLACED Android intent

package_replaced #

Allow Flutter to respond to Android MY_PACKAGE_REPLACED intent

To use this plugin, besides importing, you will also have to add PackageReplacedPlugin.setPluginRegistrantCallback() to the Android side of your app.

i.e. subclass FlutterApplication/implement PluginRegistry.PluginRegistrantCallback and call it in onCreate:

class OverrideApplication: FlutterApplication(), PluginRegistry.PluginRegistrantCallback{

    override fun onCreate() {
        super.onCreate()
        PackageReplacedPlugin.setPluginRegistrantCallback(this)
    }

    override fun registerWith(p0: PluginRegistry?) {
        GeneratedPluginRegistrant.registerWith(p0)
    }
}

and in your manifest,

<application android:name=".OverrideApplication">
    **other manifest stuff here**
</application>
0
likes
100
pub points
0%
popularity

Plugin for flutter to respond to MY_PACKAGE_REPLACED Android intent

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

michael.cheung.thebus@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on package_replaced