Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9195863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:43:22+00:00 2026-06-17T21:43:22+00:00

Surprisingly hard to find good insight into this, but I need to detect when

  • 0

Surprisingly hard to find good insight into this, but I need to detect when the Cordova webview has finished loading so that I can run some initialization code on the native side. This code makes callbacks to the webview’s javascript so the javascript must be in place and loaded (hence the need to be notified when webview has finished loading.

The only examples I’ve found are for detecting when a WebViewClient has finished loading, but I need to know when the initial phonegap webview has finished loading.

I’m newer to Android, coming in from the iOS world, and used to having a webviewDidFinishLoading method available to me. Hopefully there is a similar way to handle this in java for Android.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:43:23+00:00Added an answer on June 17, 2026 at 9:43 pm

    Here’s a possible work-around you can explore:

    Create an Apache Cordova Plugin for Android and call like this in your JavaScript code:

    document.addEventListener("deviceready", onDeviceReady, false);
    
    function onDeviceReady() {
       if (isAndroid) {
           cordova.exec(function(winParam) {}, function(error) {}, "service", "webviewDidFinishLoading", []);
       }
    }     
    

    cordova.exec details here. isAndroid details here.

    You would add the native code you need to execute after the WebView has started inside the webviewDidFinishLoading method of the service plugin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like a really basic question that has been surprisingly hard to find
I have been searching on this but it is surprisingly hard to come by
It has been surprisingly hard to find a code example of downloading multiple files
Surprisingly I've been unable to find anyone else really doing this, but surely someone
Surprisingly I was only able to find one previous question on SO about this
Surprisingly I could not find a straight-forward answer to this question on here yet.
Surprisingly enough I couldn't find the answer to this question. I am trying to
I'm having surprisingly bad luck finding a decent resource for this. But What I'm
Surprisingly, this Apple page has Element.prototype equal to undefined , so I cannot use
I searched for this here and on google and surprisingly couldn't find an answer.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.