fix: handleIntent: null check added for Intent.categories

This commit is contained in:
Harsh Bhikadia 2021-06-20 12:58:46 +05:30
parent ad5fd028ad
commit 05a1c3db09

View file

@ -42,7 +42,7 @@ class ReceiveIntentPlugin : FlutterPlugin, MethodCallHandler, EventChannel.Strea
"fromSignatures" to fromPackageName?.let { getApplicationSignature(context, it) }, "fromSignatures" to fromPackageName?.let { getApplicationSignature(context, it) },
"action" to intent.action, "action" to intent.action,
"data" to intent.dataString, "data" to intent.dataString,
"categories" to intent.categories.toList(), "categories" to intent.categories?.toList(),
"extra" to intent.extras?.let { bundleToJSON(it).toString() } "extra" to intent.extras?.let { bundleToJSON(it).toString() }
) )
//Log.e("ReceiveIntentPlugin", "intentMap: $intentMap") //Log.e("ReceiveIntentPlugin", "intentMap: $intentMap")