Is it possible to register a Flutter app as an Android Intent Filter and to handle Incoming Intents?

后端 未结 2 1233
[愿得一人]
[愿得一人] 2021-02-18 16:26

One can launch another Activity using an Intent from a Flutter app: https://github.com/flutter/flutter/blob/master/examples/widgets/launch_url.dart

import \'pac         


        
2条回答
  •  暖寄归人
    2021-02-18 16:54

    To my knowledge, there is no way to handle incoming Intents from Dart code at this time. Specifically the case of handling incoming URLs is tracked by https://github.com/flutter/flutter/issues/357.

    It's also possible to handle incoming intents from Java code and post the result across to Dart using the HostMessage system documented at https://flutter.io/platform-services/

    Update 2020- Accept incoming intent in the Flutter from Flutter Doc

提交回复
热议问题