online/offline undefined

2 posts, 0 answers
  1. sebastien
    sebastien avatar
    1 posts
    Member since:
    May 2015

    Posted 23 May 2015 Link to this post

    I am trying to force Everlive to go online of offline,however whenever I launch the app I get an "undefined" function for the call.

     I use a Native app with Appbuilder and the IOs companion app.

     var Everlive = require("../lib/everlive");
        var el  = new Everlive({
                apiKey: 'mykey',
                offlineStorage: true
  ; <-- does not seem to be defined


    Is this feature working ?


    The service itself does work because I am able to remove and add data to my dataservice tables.



  2. Vasil
    Vasil avatar
    19 posts

    Posted 25 May 2015 Link to this post

    Hello Sebastien,

    It seems you are initializing the SDK correctly. Please specify which version of the SDK you are using. The offline storage functionality was added in version 1.3.0. However, I'd recommend using the latest version, which is 1.3.1. You can find it here:

    You can also use the el.isOffline() and el.isOnline() methods to check the state of the SDK. One more thing I can recommend is checking out the offline mode sample app:

    Please, let me know if this fixes the issue you are experiencing.

    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
Back to Top