Skip to content

[test] Capacitor Investigation Additions #691

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

stevensJourney
Copy link
Collaborator

Overview

The purpose of this PR is mainly to attempt to reproduce and debug the issue from https://discord.com/channels/1138230179878154300/1401770441911177276

Additional logging has been added to:

  • Log any uncaught exceptions in the DB worker to a logger in the main JS context.
  • Log VFS debug logs - this is in the hopes that this might expose any additional details if the issue is reproducible. I'm not sure yet if we'd want to expose this as part of the API.

Our capacitor demo is rather simple. We don't have any external logging or error reporting services. I've configured a custom Logger to store all logs and make them presentable in the application. This is somewhat of a diagnostics view in the application. The purpose of this is mainly to make debugging possible, but it could be a nice general addition (perhaps without persisting the logs).

I've added a local only table and widgets to modify the data to the Capacitor demo. This is mainly since the Capacitor demo does not have a full fledged upload connector. For testing it would be nice to perform SQLite operations. Again, this might be a nice general addition to the demo.

Generally this also improves the layout and responsiveness of the capacitor demo.

Screenshots for those who are interested:

image image

Copy link

changeset-bot bot commented Aug 8, 2025

🦋 Changeset detected

Latest commit: 7037846

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@powersync/web Patch
@powersync/diagnostics-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant