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

fix(android): Move bridge localUrl initialization to initWebView #6685

Merged
merged 2 commits into from Jun 28, 2023

Conversation

jcesarmobile
Copy link
Member

In plugin's load() method, getLocalUrl() is null because it's being set after the plugin initialization.

I've moved the code related to the localUrl creation to the initWebView() so it's available in load() method.

Once it's merged we can revert the changes made in Cookies plugin to init the plugin after the local url is set.

Copy link
Contributor

@ItsChaceD ItsChaceD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, except the authorities variable should be private. We should do the same logic for 4.x as well

@carlpoole
Copy link
Member

Testing this with Portals, I think it's okay I just want to be sure

Copy link
Member

@carlpoole carlpoole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with Portals and doesn't seem to affect it. Thanks!

@jcesarmobile
Copy link
Member Author

LGTM, except the authorities variable should be private. We should do the same logic for 4.x as well

good catch, I thought about it but then forgot after pasting the line

@jcesarmobile jcesarmobile merged commit 7f5f0ca into main Jun 28, 2023
6 checks passed
@jcesarmobile jcesarmobile deleted the null-local-url branch June 28, 2023 08:29
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

Successfully merging this pull request may close these issues.

None yet

4 participants