UnifiedPush / flutter-connector

UnifiedPush connector library for flutter
Apache License 2.0
31 stars 9 forks source link

android: ensure only one FlutterEngine gets created #118

Closed emersion closed 1 year ago

emersion commented 1 year ago

When handling multiple messages in a row, UnifiedPushReceiver could create multiple FlutterEngines: onReceive() is called, but Plugin.pluginChannel stays null before Plugin.onAttachedToEngine() is invoked.

Ensure we create only a single FlutterEngine per UnifiedPushReceiver.

emersion commented 1 year ago

Gentle ping