Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
how to send JS message from source to flutter using webview_flutter

Am using webview_flutter in my flutter app which views a web page comes from the backend of my project. some times I need to use JS to send a message from the web page to my flutter app .. and am using this method for this :

the web page

theCenter.postMessage(myElement.innerHTML); //Sending whatever content as a string

Flutter App

JavascriptChannel(
 name: 'theCenter',
 onMessageReceived:
 (JavascriptMessage message) {
    controller.getNewCenter(message.message);
     }),

The error now comes from the webpage itself as it shows me this error in the console:

Uncaught (in promise) ReferenceError: theCenter is not defined
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!