• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

window.parent.postMessage not working for android app

Devanand

Lurker
Feb 28, 2018
1
0
I have a HTML e-learning course installed on clients app.

So client can launch the HTML course and navigate through the course.

Our HTML course have some messages to communicate with app.
In javascript I have written like this,

var msg = {
messageId: GetMessageId(),
timestamp: GetTimeStamp(),
};
window.parent.postMessage(msg, '*');


But the code is not working for android mobile app, while its working on chrome or any other browsers.

Please let me know about the solution as I am not a android developer.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones