Giter Club home page Giter Club logo

Comments (2)

pasin avatar pasin commented on August 11, 2024

It turns out this is not the issue. What happened during the test was:

  1. Started ToDoLite Android with ForestDB from Android Studio. Logged in with Facebook and use the app.
  2. Closed the app from Android Studio. Change Storage Engine in Application.java to use SQLite.
  3. In build.gradle, commented out the dependency to couchbase-lite-android-forestdb.
  4. Rerun the app WITHOUT uninstalling the app (so facebook token still exists).
  5. When reran the app, the app did auto-login with the existing facebook token. As the token was still valid, the login process will not ask for the user's name from the facebook so the user's name will be null. Also we could assume that the user profile document should have already been created from the previous login.
  6. When the database was first open, as there was no forestdb library linked to the app, the upgrading from ForestDB -> SQLite (which should throw exception) process was skipped. Hence the new database with SQLite storage is newly created. Then the new user profile was recreated with null user's name.

from todolite-ios.

pasin avatar pasin commented on August 11, 2024

ToDoLite-Android can prevent this scenario by always checking if the user profile document exists or not, if not, it will need to request to facebook to get the user's name.

As of now, we can close this issue as no issue.

from todolite-ios.

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.