android-miniapp
android-miniapp copied to clipboard
Unable to load miniapps in WebView: Refusing to load for invalid virtual URL
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:
- 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
Description updated
@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
@abeshjha . We could support you if you are willing use our SDK & platform. Let us know.
Hi. Yes please help me. I am unable to display mini apps. I am willing to use your SDK and platform. How should I proceed?
Regards, Abesh
On Thu, Feb 16, 2023 at 8:19 AM Leo Joseph @.***> wrote:
@abeshjha https://github.com/abeshjha . We could support you if you are willing use our SDK & platform. Let us know.
— Reply to this email directly, view it on GitHub https://github.com/rakutentech/android-miniapp/issues/392#issuecomment-1432407843, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJR6NPGBHNRUTA4A2J32PILWXWISFANCNFSM5IH5RV6Q . You are receiving this because you were mentioned.Message ID: @.***>
I have invested a lot of time in this. Can you just CONFIRM to me if I can use this sdk without having RAS project ID and subscription key or not? If yes, how should I specify it and if not, how can I obtain it?
On Thu, Feb 16, 2023 at 2:16 PM Abesh Jha @.***> wrote:
Hi. Yes please help me. I am unable to display mini apps. I am willing to use your SDK and platform. How should I proceed?
Regards, Abesh
On Thu, Feb 16, 2023 at 8:19 AM Leo Joseph @.***> wrote:
@abeshjha https://github.com/abeshjha . We could support you if you are willing use our SDK & platform. Let us know.
— Reply to this email directly, view it on GitHub https://github.com/rakutentech/android-miniapp/issues/392#issuecomment-1432407843, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJR6NPGBHNRUTA4A2J32PILWXWISFANCNFSM5IH5RV6Q . You are receiving this because you were mentioned.Message ID: @.***>