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

Unable to load miniapps in WebView: Refusing to load for invalid virtual URL #392

Open
5AbhishekSaxena opened this issue Nov 17, 2021 · 5 comments

Comments

@5AbhishekSaxena
Copy link

5AbhishekSaxena commented Nov 17, 2021

Describe the bug
The miniapps are loading successfully in few mobile devices like Pixel 3 XL emulator with Android 10.0 but it is not loading in most of the devices after the recent Android WebView update.

I also tried running the superapp in the 94.0.xx and 95.0.xx WebView versions but it isn't loading the miniapps and I'm getting the errors(please refer the logs).
I also tested the app with older WebView versions like 83.0.4103.101 and it was able to load the miniapps successfully.

This is probably due to compatibility issues with the recent updates of Android WebView.

To Reproduce
Steps to reproduce the behavior:

  1. Try to load the miniapp

Expected behavior
The SDK should load the miniapps as expected.

Screenshots/Logs

2021-11-17 13:23:15.312 11812-11812/com.example.app D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.example.app activity: com.example.app.ui.MainActivity@271e56e
2021-11-17 13:23:15.327 11812-11812/com.example.app D/EgretLoader: EgretLoader(Context context)
2021-11-17 13:23:15.328 11812-11812/com.example.app D/EgretLoader: The context is not activity
2021-11-17 13:23:15.332 11812-11812/com.example.app W/chromium: [WARNING:navigation_controller_impl.cc(288)] Refusing to load for invalid virtual URL: https://mscheme.<appId>/miniapp/index.html
2021-11-17 13:23:15.334 11812-11812/com.example.app W/ContentCatcher: Failed to notify a WebView

Smartphone (please complete the following information):

  • Device: Poco f1
  • OS: Android 10.0
  • SDK Version 3.8.0

Additional context
N/A

@5AbhishekSaxena
Copy link
Author

Description updated

@abeshjha
Copy link

@5AbhishekSaxena how did you launch the mini apps for some devices? can you give me your email so that I can contact you. I need to learn to use this sdk

@rleojoseph
Copy link
Collaborator

@abeshjha . We could support you if you are willing use our SDK & platform. Let us know.

@abeshjha
Copy link

abeshjha commented Feb 16, 2023 via email

@abeshjha
Copy link

abeshjha commented Feb 18, 2023 via email

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

3 participants