We can open app by below code
//open app if app no background /killed
val intent = context.packageManager.getLaunchIntentForPackage(context.packageName)
intent!!.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT)
context.startActivity(intent)
If you want to pass data from Native to Flutter then you should be implement MethodChannel
/ EventChannel
Refer below link for Native to Flutter Native to Flutter communication
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.