SQLite Plugin issue (or I'm just doing something dumb)

9 posts, 0 answers
  1. Ryan
    Ryan avatar
    6 posts
    Member since:
    Apr 2013

    Posted 07 Apr 2013 Link to this post

    so I'm following the SQLite plugin example on Icenium's GitHub (thanks for providing that btw) and I've got the plugin checked in my project properties and I'm loading the scripts like so inside the HEAD tag:

    <script src="cordova.js"></script>
    <script src="Plugins/SQLite/SQLitePlugin.js"></script>

    The problem is when I run my simulator it never can find the plugin script file???  It's like it's not there.  I see it in my project structure, and it's in the right place as per the path specified above but it never can load it.  The only thing odd about my dev environment is I'm running a Windows 7 x64 VM on my Macbook Pro...dunno what that could be doing to it though??  I"m basically dead in the water here and I REALLY need this plugin :)

    any ideas??

    EDIT: I tried it on my macbook with Chrome and Icenium Mist...same problem :(
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 08 Apr 2013 Link to this post

    Hello Ryan,

    Cordova plug-ins do not work in the Icenium simulator, you would have to publish on actual device in order to test your application. We are aware that this represents certain amount of inconvenience, but for the time being this is the only viable solution.

    Please excuse us for the temporary inconvenience.

    Greetings,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
  3. Ryan
    Ryan avatar
    6 posts
    Member since:
    Apr 2013

    Posted 08 Apr 2013 Link to this post

    I understand that they don't work in the simulator, my problem is that Icenium doesn't even load the script file.  So even when I deploy it to a device for testing the SQLite plugin isn't there for me to even use.

    I'm using the correct path when I load the plugin's script file, it's just not able to find it for some reason.  It acts like it's not there.  

    reread my original post for more details
  4. Ryan
    Ryan avatar
    6 posts
    Member since:
    Apr 2013

    Posted 08 Apr 2013 Link to this post

    I realize the plugins don't work in the simulator, that's not the issue I'm facing

    I can't even get my project to load the plugin's script file for me to use, whether I'm running my app in the simulator or on device.  It's acting like it's not even there??  reread my original post for a description of the problem.

    It's basically like I've got the wrong path for the plugin script file, but I'm actually using the correct one
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Apr 2013 Link to this post

    Hello Ryan,

    In your original post you only talked about this being a problem in the simulator and therefore our answer.
    We are unable to reproduce the issue you describe locally and would appreciate if you provide us with the account from which you logged in to create the application and its name, so we can review it.

    Additionally, as you've used our SQLite Plugin as starting point, are you able to run it on your end or it exhibits the same problems?

    Kind regards,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
  6. Ryan
    Ryan avatar
    6 posts
    Member since:
    Apr 2013

    Posted 10 Apr 2013 Link to this post

    I can't use any of the plugins at all...none of them are able to load, they all have this same weird path issue

    ryan.day@davita.com is the account I'm using for this project
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 11 Apr 2013 Link to this post

    Hello Ryan,

    There are several reasons why the plug-in would not load:
    1. You have not included the plug-in in the project properties.
    2. You have not added reference to the plug-in in your page i.e.
      <script src="cordova.js"></script>
      <script src="Plugins/SQLite/SQLitePlugin.js"></script>
    3. The path to the plug-in is not valid.
    4. You're trying to use the plug-in in the simulator.

    Please check those steps in your project again and verify you comply with them. As mentioned in our last post, you have theSQLite Plugin demo available as starting point, so you can go from there.

    All the best,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
  8. Ryan
    Ryan avatar
    6 posts
    Member since:
    Apr 2013

    Posted 11 Apr 2013 Link to this post

    oh crap sorry guys I went and removed the plugin stuff out of my project...moved on and decided to use localStorage for now, completely forgot you were gonna take a look at my project :(

    very sorry...okay so I went back and put the plugin code back into my project like I had it before so take a look at it again for me.  When you run in the simulator the console window should show a message about "failed to load resource" regarding the SQLitePlugin.js file

    Now if that's the expected behavior i.e. when you say it doesn't work in the simulator you mean it just won't load period then that's fine.  but if it should at least load the JS file when I run the simulator then I guess I still have a problem on my end.

    Take a look at my stuff now (ryan.day@davita.com) and see what you think

    Thanks,
    RD
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 16 Apr 2013 Link to this post

    Hello Ryan,

    Thanks for the additional information. The "failed to load resource" error in the console whenever you're using any of our plug-ins is expected and you can ignore it. This behavior is expected as the plug-ins are not physically present in your project, although you see them in the project tree. As you probably know by now, we're currently working on generic plug-in support and once we have that, this confusing error would be gone, as any user would be able to add any plugin he wishes directly to his project.

    Regards,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
Back to Top