Which one is preferable local storage or sql lite in a Mobile App?

Manish Goyal

Manish Goyal

@manish-r2Hoep Oct 27, 2024
Hello Friends

I am working on a mobile application that will be compatible on all the major mobile platforms

Such as Iphone, Black berry , Android

I am using phone gap for this

But i am having one problem ?

My app requires authentication code to be stored in mobile, so which one should i prefer for this purpose, Local Storage or sqlLite?

Can anyone explain me pros and cons of both

Basically i don't have any db implementation so i also want to avoid any db queries

Thanks in advance

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • rahul69

    rahul69

    @rahul69-97fAOs Sep 27, 2012

    well if u r storing other info also such as Users information etc. then u should go for SQLite , but for a single attribute it would be a waste of resources in my opinion. SQLite use will introduce db implementation and as u have not used anywhere else, it would be an additional overhead. So it is better not to use it unless necessary.👍
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Sep 27, 2012

    Hello Rahul

    Thanks for replyiing

    Actually the problem is local storage is not preferable since if user will change the browser to access the app, in that case my local storage value won't work