Giter Club home page Giter Club logo

Comments (6)

Terkyz avatar Terkyz commented on May 30, 2024 1

By remembering synchronized devices I mean that there is no need that every time I want to synchronize Passy, I must read the QR code, but just by pressing the update button when I am in the same network and the host is on, it will update.

Your way of making this work seems well thought out, I would suggest adding some notes so that the user is aware that it only happens with the app open and doesn't think it's a bug.

from passy.

GleammerRay avatar GleammerRay commented on May 30, 2024 1

Glare synchronization layer implemented - e88711c.

Glare synchronization layer is a powerful RESTful API layer that can serve as a base for a server daemon. I can not promise the daemon to be available in the next release (coming out in about a month), as it already takes care of plenty other features and issues. However, it will be one of the priority features after the next release comes out.

from passy.

GleammerRay avatar GleammerRay commented on May 30, 2024

True, classic server based synchronization should be an option. However, what do you mean by remembering the synchronized devices?

I can see this working this way:

  1. Host device has a server IP and port specified in settings and the server feature switched on.
  2. Client devices have the host IP address and port entered in their settings.
  3. Synchronization happens whenever clients log in and every minute while they are logged in + there is a manual synchronization feature (pull down to synchronize, like refresh in mobile browser).

Since this is flutter, it is not possible to make it work while the app is closed. I would also prefer keeping current synchronization code instead of inventing a new method, which would mean that synchronization only happens when a person is logged into their account. I realize that this would mean that people would be unable to synchronize multiple accounts at once, but opening ports while not logged in seems like a security concern to me.

from passy.

GleammerRay avatar GleammerRay commented on May 30, 2024

Hello! I apologize for failing to deliver this feature for a long time now.

Status update: the standalone server functionality has been implemented today. There's still server installer functionality left to implement, but that should not be too hard. Only that and Flutter UI are left to be made for this feature, it is ready to be included in the next release.

I will notify you again once the feature is included in a stable release.

from passy.

GleammerRay avatar GleammerRay commented on May 30, 2024

@Terkyz great news! The feature is implemented in https://github.com/GlitterWare/Passy/releases/v1.7.0.

You can access it via ⚙️ -> Synchronization servers. The setup process is available for desktop computers. You may also use passy cli command (.\passy.exe cli on Windows) for installation, if you wish (see passy cli help on the install commands for more information).

The server is fully standalone. It utilizes the same codebase as Passy thanks to Dart's command-line compilation support. The tool I made to facilitate this is called Passy CLI which is the same thing that the browser extension uses to talk to the Passy database.

Edit 1: The server does not require any additional authorization for it to run and can be easily added to autostart. Do note that you're going to need another v1.7.0 instance to connect to it as it uses a new synchronization process that was not supported before. This can be done via ⚙️ -> Synchronization servers -> Connect.

from passy.

GleammerRay avatar GleammerRay commented on May 30, 2024

Additionally, I want to thank you for proposing this feature. Passy's new synchronization server provides a safe way of synchronization that may be utilized for GlitterWare's official online synchronization solution that may come later next year.

from passy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.