Git Product home page Git Product logo

Comments (6)

jayavardhanjv avatar jayavardhanjv commented on August 10, 2024 1

@tameralshazly Does Firebase support chrome and edge? When I was trying to run the app on these two, it always showed up some issues about Firebase. But all systems work well on android phone and emulator.

it works very well. i am using the chrome/ web. but there are some errors when it comes to the chrome or web. best if you use the emulator or android phone.

from mynotes-course.

akashgreninja avatar akashgreninja commented on August 10, 2024

Hey did you get the solution ?
my mistake was I didn't put the constants for sqflite properly like
`
const dbName = 'notecrs.db';
const noteTable = 'notes';
const userTable = 'user';
const idColumn = 'id';
const emailColumn = "email";
const UserIdColumn = "userId";
const textColumn = 'text';
const createNoteTable = ''' CREATE TABLE IF NOT EXISTS "notes" (
"id" INTEGER NOT NULL,
"userId" INTEGER NOT NULL,
"text" TEXT,
PRIMARY KEY("id"),
FOREIGN KEY("userId") REFERENCES "user"("id")
);
''';

const createUserTable = '''CREATE TABLE IF NOT EXISTS "user" (
"id" INTEGER NOT NULL,
"email" INTEGER NOT NULL UNIQUE,
PRIMARY KEY("id" AUTOINCREMENT)
);
''';
`

I had put const UserIdColumn = "user_Id";

from mynotes-course.

rt234cw avatar rt234cw commented on August 10, 2024

At which stage of the course did this error occur?

from mynotes-course.

tameralshazly avatar tameralshazly commented on August 10, 2024

I faced the same problem , expected DatabaseNote but received null value.
The problem i believe is in the DB thing
mainly because i was running chrome/edge web as my web device, but the path provider is actually made for Android (i did't try it yet on an iphone)
I tried to run on pixel emulator, and finally it works great :)
i hope this helps and no words can express how thankfull am I to Mr. Nahavandipoor @vandadnp .
Thanks
T
@Mkay-coder
it was step 14, i.e. chapter 31
@rt234cw

from mynotes-course.

rt234cw avatar rt234cw commented on August 10, 2024

@tameralshazly
Does Firebase support chrome and edge? When I was trying to run the app on these two, it always showed up some issues about Firebase. But all systems work well on android phone and emulator.

from mynotes-course.

athyg avatar athyg commented on August 10, 2024

I faced the same problem , expected DatabaseNote but received null value. The problem i believe is in the DB thing mainly because i was running chrome/edge web as my web device, but the path provider is actually made for Android (i did't try it yet on an iphone) I tried to run on pixel emulator, and finally it works great :) i hope this helps and no words can express how thankfull am I to Mr. Nahavandipoor @vandadnp . Thanks T @Mkay-coder it was step 14, i.e. chapter 31 @rt234cw

I'm having the same issue in Chapter 31, and also running app on web (chrome), instead of an android phone, as per demo. It seems that code implemented in this chapter is tailored to smart phone devices, rather than a web app. Is there a version of code that works on the web?

from mynotes-course.

Related Issues (11)

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.