Closed emersion closed 1 year ago
Do you when when it happens ? To check if the fallback is enough. We can definitely add this
It seems to happen when my app isn't running in the foreground, and its main()
function gets called after a push message is received.
BTW do we really need the activity context here? Since the Android distributor selection dialog is never used (it's implemented via Flutter widgets), can't we always use mContext
?
What is the version of flutter-connector used by your app ?
BTW do we really need the activity context here? Since the Android distributor selection dialog is never used (it's implemented via Flutter widgets), can't we always use
mContext
?
We can test that. The lib did use dialog on android side but not anymore indeed.
> flutter pub deps | grep unifiedpush
|-- unifiedpush 4.0.2
| |-- unifiedpush_android 1.1.0
| | '-- unifiedpush_platform_interface...
| '-- unifiedpush_platform_interface 1.0.0
I get this sometimes:
My guess is that it's due to
mActivity!!
. Maybe we could add a fallback formContext
whenmActivity
is null?