Import Cordova plugin into a NativeScript project?

5 posts, 0 answers
  1. Christian
    Christian avatar
    6 posts
    Member since:
    Dec 2013

    Posted 15 Jan 2015 Link to this post

    Hi,

    I'd like to find out how I can import a Cordova plugin into a NativeScript project. I'm using NativeScript CLI.
    If not possible, is there another way to use sqlite within my NativeScript project?

    Thanks,

    Chris
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 19 Jan 2015 Link to this post

    Hi Christian,

    Here's a copy of my reply to the support thread you opened, having the same title:

    Sorry to have to say that, but NativeScript is different from hybrid apps by nature, hence no Cordova plugin can be used inside the application.

    As per SQLLite, we created a proof-of-concept project in the early days of NativeScript. It is possible, however we did not include these capabilities to any preview, hence functionality not available now.

    We will try adding it SQLLite functionality to the official v1.0 release.

    Let me know of your vision of the API and the usage of a possible DB/SQLLite module. We will really appreciate it!


    Kind regards,
    Erjan Gavalji
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Andrew
    Andrew avatar
    10 posts
    Member since:
    Jun 2014

    Posted 19 Jan 2015 Link to this post

    Hi Erjan

    The SQLite capability is central to what I have been doing using Xamarin for the past few years.

    I have for example built a sync capability between SQLite and SQL Server. This capability is presently rather tightly coupled to the rest of my platform.

    I would be very interested in "hacking around" with the SQLite implementation you have created once the UI controls go live in the February version of NS. At this point I should be able to migrate all of my device C# code to NS and begin to test NS in earnest.

    There is no need for this to be used in production for the coming months and would represent an ideal opportunity to deeply understand NS.

    Best regards

    Andrew
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 21 Jan 2015 Link to this post

    Hi Andrew,

    the data story is one of the most important scenarios we are looking to cover in NativeScript, so we will offer you with a full stack implementation for it.

    We are working on a data sync component which will be available for iOS, Android and Windows. you can read more about it here - http://www.telerik.com/datasync-beta.

    You will get access to the SQLite and you will also be able to work in offline mode and sync changes with a cloud server when internet connection is present.

    This should be available as a preview for NativeScript sometime in March.

    Please let me know if you have more questions about it.

    Regards, Valentin.Stoychev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Andrew
    Andrew avatar
    10 posts
    Member since:
    Jun 2014

    Posted 21 Jan 2015 Link to this post

    Thanks Valentin

    Have signed up for the beta.

    Regards

    Andrew
Back to Top