package_replaced 1.1.0 copy "package_replaced: ^1.1.0" to clipboard
package_replaced: ^1.1.0 copied to clipboard

outdated

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>
1
likes
0
pub points
10%
popularity

Publisher

unverified uploader

Plugin for flutter to respond to MY_PACKAGE_REPLACED Android intent

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on package_replaced