Use SQLite plugin on Ubuntu platform


#1

I was developing a Application for Ubuntu platform. But I cannot use Cordova plugin for SQLite. It gives error cordova_not_available. Can anyone point me how to build a ionic app for Ubuntu platform?


#2

How are you deploying your app to Ubuntu? What commands do you run?


#3

First I have added platform using ionic cordova platform add ubuntu

Next I run application with ionic cordova run ubuntu and also I have tried building deb package using debuild command both give same error.


#4

@Sujan12 do you have any idea about how run it cordova plugins on Ubuntu?


#5

I doubt this code exist for ubuntu. see the documentation as per below

you can build apps for ios, android and windows.


#6

You can also build for other platforms that Cordova supports, it just won’t work that well :wink:


#7

Ionic Native SQLite uses https://github.com/litehelpers/Cordova-sqlite-storage/ as the Cordova plugin. I see no Ubuntu implementation for that here unfortunately: https://github.com/litehelpers/Cordova-sqlite-storage/tree/storage-master/src


#8

thanks did not know that :P. Apologies. Just saw that.


#9

I have work with https://github.com/litehelpers/Cordova-sqlite-storage/ plugin for android platform. It’s working fine. Is there are any documentation about build ionic app for Ubuntu platform? Couldn’t find anything yet.


#10

As @ashley_shookhye said Ubuntu is not one of the supported platforms for Ionic.
Also Cordova support for Ubuntu is very light, there are not very many plugins that have code for Ubuntu.

If you really want to go ahead I think you will have to Google a lot to find working Cordova plugins for native stuff.


#11

@Sujan12 and @ashley_shookhye thanks for your help. I will try little bit more and I will update this if I find any solution.