This question is locked. New answers and comments are not allowed.
Hi all, I'm new to Icenium, but not to development.
I'm attempting several of the Cordova API samples (trying in Mist and Graphite), but can't get any of them to work. Even the simplest sample won't work, such as this one, which uses "notification.alert" to display a popup dialog.
I cannot find any debugging or log info to help, and whether I attempt to run in the simulator using Mist, or in the simulator using Graphite, the app runs (0 errors, 0 warnings), but the popup dialog doesn't appear. When I run on the device (iPhone), the app runs but again the popup dialog doesn't appear.
Additionally, every time I've tried the Mist simulator (with any sample), it starts with this alert message "Unexpected error:Script error. (URL: , LineNumber: 0)", which also isn't much help. Having the error at line 0 seems like it might indicate a dependency issue, but that is supposed to be the whole point of Icenium, that dependencies are all managed and satisfied on the server? - so it must be something else.
OT, but while I'm here: can anyone point me to any samples that do a login to a remote service, call a HTTP REST API, get a result? That would be really useful. I'm also interested in samples that illustrate scanning a barcode, scanning a QR code, taking a photo, and uploading/downloading files.
Any advice or suggestions welcome.
Geoff.
I'm attempting several of the Cordova API samples (trying in Mist and Graphite), but can't get any of them to work. Even the simplest sample won't work, such as this one, which uses "notification.alert" to display a popup dialog.
I cannot find any debugging or log info to help, and whether I attempt to run in the simulator using Mist, or in the simulator using Graphite, the app runs (0 errors, 0 warnings), but the popup dialog doesn't appear. When I run on the device (iPhone), the app runs but again the popup dialog doesn't appear.
Additionally, every time I've tried the Mist simulator (with any sample), it starts with this alert message "Unexpected error:Script error. (URL: , LineNumber: 0)", which also isn't much help. Having the error at line 0 seems like it might indicate a dependency issue, but that is supposed to be the whole point of Icenium, that dependencies are all managed and satisfied on the server? - so it must be something else.
OT, but while I'm here: can anyone point me to any samples that do a login to a remote service, call a HTTP REST API, get a result? That would be really useful. I'm also interested in samples that illustrate scanning a barcode, scanning a QR code, taking a photo, and uploading/downloading files.
Any advice or suggestions welcome.
Geoff.
7 Answers, 1 is accepted
0
Jan-Dirk
Top achievements
Rank 1
answered on 15 Nov 2012, 03:12 PM
Geoff,
Have you tried the full example and click the 'Show alert' text?
And this doesn't work?
Have you tried the full example and click the 'Show alert' text?
And this doesn't work?
0
Geoffrey
Top achievements
Rank 1
answered on 16 Nov 2012, 01:19 AM
Hi Jan-Dirk, thanks for your reply.
[quote]Jan-Dirk said:
Have you tried the full example and click the 'Show alert' text?
And this doesn't work?[/quote]
Yes, that's the one I tried, the Full Example. The "Show Alert" link is displayed, but when I tap it (on the device) or click it (in the simulator), nothing happens.
Thanks
Geoff.
[quote]Jan-Dirk said:
Have you tried the full example and click the 'Show alert' text?
And this doesn't work?[/quote]
Yes, that's the one I tried, the Full Example. The "Show Alert" link is displayed, but when I tap it (on the device) or click it (in the simulator), nothing happens.
Thanks
Geoff.
0
Geoffrey
Top achievements
Rank 1
answered on 16 Nov 2012, 07:41 AM
Perhaps there is something I need to add/enable/include/configure in order to use these samples?
I've found a "Plugins" section in Icenium's Properties section, but there are no Cordova objects listed there - only something called "Child Browser".
Thanks in advance.
Geoff.
I've found a "Plugins" section in Icenium's Properties section, but there are no Cordova objects listed there - only something called "Child Browser".
Thanks in advance.
Geoff.
0
Hello Geoff,
sdobrev
Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
You can check out our documentation about using plugins in Icenium here.
Hope this helps,sdobrev
Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Jan-Dirk
Top achievements
Rank 1
answered on 16 Nov 2012, 10:36 AM
Geoff,
There is no need for plugins to get this to work.
I copied the full example code into a blank project and changed the reference to Cordova from
To
That was all to get the example running. Icenium is not using version numbers in their cordova.js in a new project.
I think that you will get this example working with the change above.
Good luck!
There is no need for plugins to get this to work.
I copied the full example code into a blank project and changed the reference to Cordova from
<script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
To
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
That was all to get the example running. Icenium is not using version numbers in their cordova.js in a new project.
I think that you will get this example working with the change above.
Good luck!
0
Geoffrey
Top achievements
Rank 1
answered on 16 Nov 2012, 11:08 AM
[quote]Jan-Dirk said:
I copied the full example code into a blank project and changed the reference to Cordova from
[/quote]
You are right, that did it! I feel a fool making such a rookie mistake - somehow I thought that libraries were being linked from the server-side. But looking into the project files I see a "cordova.js" there.
Thank you for your time and patience to help me. I'm excited with this platform and I'm looking forward to playing with it now!
Cheers
Geoff.
I copied the full example code into a blank project and changed the reference to Cordova from
<script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>To
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>That was all to get the example running. Icenium is not using version numbers in their cordova.js in a new project.
[/quote]
You are right, that did it! I feel a fool making such a rookie mistake - somehow I thought that libraries were being linked from the server-side. But looking into the project files I see a "cordova.js" there.
Thank you for your time and patience to help me. I'm excited with this platform and I'm looking forward to playing with it now!
Cheers
Geoff.
0
Jan-Dirk
Top achievements
Rank 1
answered on 16 Nov 2012, 11:13 AM
Sometimes you just oversee the simple things :-)
Glad that I could be of help Geoff, I have been running in several issues the past weeks and I know the help of others can be of great value.
Glad that I could be of help Geoff, I have been running in several issues the past weeks and I know the help of others can be of great value.