-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error loading page #65
Comments
Are you using |
I'm using
|
Log
|
Having the same issue in https://github.com/crmne/cluster-headache-tracker-android |
@crmne that repo seems to be working for me maybe try adding this to see if there are any errors in the logs?
|
@map7 do you have a public repo where you can reproduce the error?
|
Thanks for the reply @EmilioCristalli ! It works there because I set Note that while working locally, it is still failing in Google Play console with SDK 33 as shown by this screenshot: Here's a debug log from a locally emulated tablet with SDK 30: |
@crmne It looks like your page is returning a 406, if you open the same url from a browser you can also see the error |
@EmilioCristalli thank you! I wasn't aware of how Hotwire throws errors in case of a 406. That is because by default Rails does this: class ApplicationController < ActionController::Base
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
allow_browser versions: :modern
end I now commented it out and it works also on older devices. It would be great to add this to the guide so people don't stumble upon the same thing. |
I can also verify that if I change the 'minSdk' from 28 to 32, and I use the "Pixel 9 Pro API 33" device the Hotwire Native Demo works |
Updated the API recommendation so that the hotwire demo app will load in the emulator. Ref: hotwired/hotwire-native-android#65
I've pushed a change to the documentation to clarify this on the Getting Started page. |
I've followed the tutorial at https://native.hotwired.dev/android/getting-started and when I start the app through the 'Pixel 9 Pro API 30' emulator on Ubuntu 24.04 it fails to load the website displaying 'Error loading page'.
I'm using Android Studio 2024.2.1 Patch 1. I can create an empty Android app and start the 'Hello world' example fine.
The text was updated successfully, but these errors were encountered: