Giter Site home page Giter Site logo

Comments (7)

teerasej avatar teerasej commented on August 30, 2024

Did you install Ionic's SQLite plugin?

from ionic-example-sqlite.

babitabhandari avatar babitabhandari commented on August 30, 2024

Yes I have Installed SQLite Plugin.But data is not saved.When I run this app in browser the error is shown as:-
Uncaught TypeError: Cannot read property 'openDatabase' of undefined in ng-cordova.min.js file line 10.

and when i click save button it shows an error:-
TypeError: Cannot read property 'transaction' of undefined
at Object.execute (ng-cordova.min.js:10)
at Scope.$scope.save (app.js:55)
at $parseFunctionCall (ionic.bundle.js:21037)
at ionic.bundle.js:53344
at Scope.$eval (ionic.bundle.js:23093)
at Scope.$apply (ionic.bundle.js:23192)
at HTMLButtonElement. (ionic.bundle.js:53343)
at HTMLButtonElement.eventHandler (ionic.bundle.js:11706)
at triggerMouseEvent (ionic.bundle.js:2863)
at tapClick (ionic.bundle.js:2852)(anonymous function) @ ionic.bundle.js:20299(anonymous function) @ ionic.bundle.js:17249Scope.$apply @ ionic.bundle.js:23194(anonymous function) @ ionic.bundle.js:53343eventHandler @ ionic.bundle.js:11706triggerMouseEvent @ ionic.bundle.js:2863tapClick @ ionic.bundle.js:2852tapMouseUp @ ionic.bundle.js:2925

from ionic-example-sqlite.

FarhanJohari avatar FarhanJohari commented on August 30, 2024

same here.. have the same issue.. nothing happens when i'm clicking save or load

from ionic-example-sqlite.

sumithMadhushan avatar sumithMadhushan commented on August 30, 2024

same here. Anyone comeup with any idea why it is happened??

from ionic-example-sqlite.

delajose90 avatar delajose90 commented on August 30, 2024

"Cannot read property 'openDatabase'" error is because you're testing the project on a browser. But I run it on a real device (android) but nothing happens ... any ideas?

from ionic-example-sqlite.

sumithMadhushan avatar sumithMadhushan commented on August 30, 2024

try with this. its worked for me.
db=$cordovaSQLite.openDB({name: "dbname.db",location: 1});

for more details follow this article.
https://sumithmadhushan.wordpress.com/2016/04/12/use-sqlite-in-ionic-framework/

On Tue, Apr 26, 2016 at 11:44 PM, José De la O [email protected]
wrote:

"Cannot read property 'openDatabase'" error is because you're testing the
project on a browser. But I run it on a real device (android) but nothing
happens ... any ideas?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#3 (comment)

from ionic-example-sqlite.

teerasej avatar teerasej commented on August 30, 2024

As @sumithMadhushan mentioned. I found the latest version of cordovaSQLite plugin request location property as a mandatory property.

I just updated the project. then add ionic state restore command in README.md to ensure you will got all important plugin for running this project, cheer!

from ionic-example-sqlite.

Related Issues (8)

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.