-
Notifications
You must be signed in to change notification settings - Fork 100
Add a bridge between WebView JavaScript and native Android code. #53
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
Add a bridge between WebView JavaScript and native Android code. #53
Conversation
This commit adds a bridge between Android WebView and the native Android code so that we can call native Android methods from inside JavaScript when it is running inside WebView.
app/src/main/java/to/dev/dev_android/view/main/view/MainActivity.kt
Outdated
Show resolved
Hide resolved
This will open up so much room for versatility |
app/src/main/java/to/dev/dev_android/util/AndroidWebViewBridge.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for initiating this @VarunBarad ! This is going to add some exciting features!
@maestromac It is saying that "Merging is blocked - The base branch restricts merging to authorized users." |
It might have blocked the merging because I pushed a commit to this branch after your approval. That commit was only for updating my fork's feature branch with the changes that were pushed on |
Sorry @VarunBarad , I should've mention that you don't need to worry about the out-of-date warning because your branch did work locally...but there was indeed an issue with master. I resolved it but I shouldn't have ignored it in first place 😅 |
What type of PR is this? (check all applicable)
Description
This commit adds a bridge between Android WebView and the native Android code so that we can call native Android methods from inside JavaScript when it is running inside WebView.
This will later allow for porting more features to native code while still using the web-view for everything else.
Related Tickets & Documents
Screenshots/Recordings (if there are UI changes)
[optional] What gif best describes this PR or how it makes you feel?