This is a migrated thread and some comments may be shown as answers.

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

8 Answers 67 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan
Top achievements
Rank 1
Ryan asked on 07 Apr 2013, 11:40 PM
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 :(

8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Apr 2013, 11:24 AM
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.
0
Ryan
Top achievements
Rank 1
answered on 08 Apr 2013, 03:09 PM
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
0
Ryan
Top achievements
Rank 1
answered on 08 Apr 2013, 03:21 PM
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
0
Steve
Telerik team
answered on 09 Apr 2013, 11:18 AM
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.
0
Ryan
Top achievements
Rank 1
answered on 10 Apr 2013, 03:19 PM
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
0
Steve
Telerik team
answered on 11 Apr 2013, 08:58 AM
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.
0
Ryan
Top achievements
Rank 1
answered on 11 Apr 2013, 02:47 PM
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
0
Steve
Telerik team
answered on 16 Apr 2013, 09:29 AM
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.
Tags
Report a bug
Asked by
Ryan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or