Skip to content

PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.push.PushHostApi.getToken" #82

@zy1041081552

Description

@zy1041081552

My Flutter version is 3.19.6. I have installed version 3.3.3 and it is running on an Android phone. However, I am unable to obtain the token through the Push.instance.addOnNewToken callback method.

When I attempted to actively call Push.instance.token to obtain the token, the following error occurred.

E/flutter (18671): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.push.PushHostApi.getToken"., null, null)
E/flutter (18671): #0 PushHostApi.getToken (package:push/src/serialization/push_api.dart:319:7)
E/flutter (18671):
E/flutter (18671): #1 _MyAppTwoState.build. (package:test_push/main1.dart:414:37)
E/flutter (18671):
E/flutter (18671):
E/m.frog.overseas(18671): FrameInsert open fail: No such file or directory

I made some adjustments and found that there were issues in the source code section.

Image

The value of "pigeonVar_replyList" is null.

I read the integration documentation of the plugin and operated according to it. There was no additional configuration for the channel in the documentation.

What is the reason for this?

Looking forward to your reply. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions