android-browser-helper icon indicating copy to clipboard operation
android-browser-helper copied to clipboard

PostMessage request has failed due to an internal error on the browser message channel.

Open onkar-rentomojo opened this issue 1 year ago • 2 comments

Read this First If you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the trusted-web-activity tag, which is also monitored by the team.

Describe the bug Open your app URL - post message works properly and data flow is proper - open external url in new tab and comeback to the app - as soon as web sends post message, app crashes. We get -3 error code which is this - PostMessage request has failed due to an internal error on the browser message channel.

Additional context Tested on chrome 117, chrome 119 (dev)

onkar-rentomojo avatar Oct 03 '23 14:10 onkar-rentomojo

Hi @onkar-rentomojo I am trying to setup Postmessage demo from https://developer.chrome.com/articles/post-message-twa/ but it's failed on onRelationshipValidationResult. Could you please tell me how do you specify

private Uri SOURCE_ORIGIN = Uri.parse("my-app-origin-uri");

Is it just package name eg. https://com.mycompany.myapp ?

Cartier0745 avatar Nov 15 '23 18:11 Cartier0745

@Cartier0745 I have the same issue as you

@onkar-rentomojo any idea ?

shunxing avatar Feb 06 '24 16:02 shunxing