flutter,iOS通知跳转问题

用户2106959
2020-08-13 10:55 193 1

flutter开发的,iOS版本,通知的数据也是都能够拿到,就是在Navigator.push 时没有任何反应,代码如下,

 onOpenNotification: (Map<String, dynamic> message) async {
        jpush.clearAllNotifications(); //清除通知栏上所有通知
        print('---------------------------------2');
        var _id = message['customer'];
        var _organization = message['organization'];

        Navigator.push(
            context,
            new MaterialPageRoute(
                builder: (context) => new HomeMan(
                    manId: _id, tabInitial: 0, organization: _organization)));
        // spikToDetailJpush(_id, _organization);
      },

1个回答

热门排序
  • 极光支持
    2020-08-14 00:45

    能获取到参数,极光的任务就完成了,后面的Navigator.push和极光无关

gptbots-widget