-
Notifications
You must be signed in to change notification settings - Fork 18
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
App interfaces don't work inside Gadgetbridge #55
Comments
Just to be clear, this is the I encountered this before with openstmap and didn't have a chance to look into it fully, but as far as I could see it's some issue with how char code 255 (0xff) is received and pushed to JavaScript. Without it the functions in Comms that end up receiving files/data/etc don't know that the transmission has ended. |
Thanks for clarifying! (Yes - I was under the impression those were the same thing 🙃) |
You can debug by connecting your phone with adb, then going to chrome://inspect/#devices in Chrome once the app loader is loaded in Gadgetbridge. Paste this into the console:
Then you get But:
Gives The code is getting there ok though because:
gives The idea was we use the JSON library to create a JS string, but I wonder what Android thinks is in that String - whether it's char code 255 or 65533 |
I've had trouble using adb directly. But I can use wireless debugging with Android Studio to build and install to my phone. I'll try and read up on it again. |
I just added some code that should help with downloads too - although for it to work for must stuff I'll need to update the app loader (turns out we can't download Blob, so we have to download with base64 links instead) |
...I have not tested them all, but this is generally my experience.
Example with Schedulers interface:
Logcat that starts on step 3 above is attached:
logcat-clicking-scheduler-floppy-disk-icon-in-app-loader-in-gadgetbridge.txt
I don't know what the approach should be. Maybe it's hard to implement e.g.
Recorder
s interface inside Gadgetbridge. One could imagine the downloaded file being stored in Gadgetbridge's Export/Import directory - but I don't know how hard that would be to implement. But the Scheduler one shouldn't be too hard to get working I'd think - but I know hardly anything about webviews so maybe shouldn't say too much.The text was updated successfully, but these errors were encountered: