Comments (6)
@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.
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.
At which stage of the course did this error occur?
from mynotes-course.
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.
@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.
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)
- firebase_options.dart file is missing. HOT 4
- We got an error adding your GPG key. Please verify the input is a valid GPG key. HOT 1
- Initial Repository access
- Classes and mixins can only implement other classes and mixins. Try specifying a class or mixin HOT 1
- UpdateNotes method in step-15 updates all notes instead of only one note HOT 3
- Notes are not shown in view.
- Bug on update.
- type 'Null' is not a subtype of type 'int' in type cast
- Has Firebase changed. Getting error in code from Video HOT 1
- Error in Ch 31: Expected a value of type 'DatabaseNote', but got one of type 'Null'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mynotes-course.