Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference not found #5

Open
ishamkdk opened this issue Jun 9, 2016 · 4 comments
Open

Reference not found #5

ishamkdk opened this issue Jun 9, 2016 · 4 comments

Comments

@ishamkdk
Copy link

ishamkdk commented Jun 9, 2016

Thanks for the breakthrough solution. Since the solution has JavaScript injection, when another page is opened, Webview will clear all the JavaScript for the previous page along with injected JavaScript.This is causing added JavaScript interface is not available.

@bsneed
Copy link
Contributor

bsneed commented Jun 9, 2016

Hi @ishamkdk,

I don't know that we intended for that to work as it was built for a single-page web app, however upon load, you could modify the code to make the injection process happen again.

@ishamkdk
Copy link
Author

ishamkdk commented Jun 9, 2016

Hi @bsneed,

I was trying to inject JS every time when new page starts loading in onPageStarted() method. But this seem like not fixing the issue. Please let me know if you have any suggestion. Thanks in advance.

@bsneed
Copy link
Contributor

bsneed commented Jun 9, 2016

I don't normally do Android development, just did that to prove it could be done. It's been maintained by others since, so if you're pointing to 'master', try the 'ao_update23' branch. This project is in need of being merged and branches cleaned up, so apologies for that. Anyway, they've made quite a few changes from my original implementation so check those out and see if they work better.

@ishamkdk
Copy link
Author

@bsneed Thanks for the support. Looks like in ao_update23' branch code has been broken. Anonymous functions are no more working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants