Not all Images display in Phonegap

  • 1
  • Problem
  • Updated 4 years ago
I am developing an App in Phonegap that has reason to display 80 small (
I have tried pre-loading the images, using setTimeout to wait between each but nothing works.
Anybody got any clues as to what I'm doing wrong or is it a Phonegap bug?
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
  • frustrated

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Probably nobody, since you don't post what you have coded, what PGB version you are using, where the images come from (local or remote), how you configured your app, in which OS/version things go wrong and whether or not you are receiving javascript error messages.

Also, if you want to post code, you should wrap it in a CODE element as described under "some HTML allowed".
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Sorry, I was so frustrated after days of stressing I just wanted to 'get it out there' and obviously didn't do a great job :(

The 'broken' image in my original post should actually read -
"...80 small (less-than 4K) .svg images but approx.30 do not display - it is always the same 30, but if I re-arrange the sequence, a different set of approx. 30 do not display, and some of the original not-displayed images now do display (proving the images themselves are OK)."

Below is the only code in a new Phonegap project (index.html) to illustrate/recreate the issue -


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width,height=device-height,target-densitydpi=device-dpi">
<script src="cordova.js"></script>
//
<script src="Filters.js"></script> // array `Icons` of Image names eg. Beds1, Beds2, Beds3,....
// `Filters` folder exists within this `www` folder
<script>
var deviceReady, eRow;

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady()
{ deviceReady = true}

function pageLoaded()
{ if (!deviceReady) {setTimeout(pageLoaded, 25)} else {initialise()}}
function initialise()
{ eRow = document.getElementById('IconCells');
for (IconNumber = 0; IconNumber < Icons.length; IconNumber++)
{eRow.innerHTML += "<img src='Filters/" + Icons[IconNumber] + "_N.svg' style='width:64px; height:64px'>"}
}
</script>
</head>
<body onload='pageLoaded()'>
<table>
<!-- following displays a single Image OK -->
<tr>
<td><img src='Beds6_N.svg' style='width:64px; height:64px'></td>
</tr>
<!-- following contains all 80 Images- `Beds6_N` above is #6 and (along with others) NOT displayed-->
<tr>
<td id='IconCells'></td>
</tr>
</table>
</body>
</html>


Running latest Phonegap Windows10 desktop with latest Phonegap App on iPhone5 & iPad ios 9.3.1
Phonegap is 'out of the box' with almost all plugins loaded.
No errors are shown - images just don't display.

Hopefully this is enough info for someone to see what I have got wrong - but please let me know if I can provide any more or better info to assist.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Hi Ian,
thanks for posting some more information. Here are my thoughts:

1. On a daily basis, developers who use Phonegap Desktop app report trouble here. That's understandable, because the Phonegap Desktop app prepares for local builds. Not for the use of Phonegap Build. PGB expects a slightly different config and a different directory structure.
It is not a good idea to use the desktop app if you want to build with PGB (albeit not impossible if you know what to change).

2. The issue of partly displayed sets of images with large collections has been posted here in the past (I seem to remember). Testing on several test devices (more/less RAM, different OS, different OS versions) showed that some devices displayed more than others.
How is that in your case? Does it make any difference which of your test devices you are using? What about Android versions?

3. I am not sure why you are waiting for 'deviceready' (since you aren't using any Phonegap API's or plugins) and why it's done this remarkable way.

4. You let the poor device work hard. You want it to simultaneously
- run that loop
- manipulate the DOM each time by adding a piece of innerHTML to a table cell
- load each image
- rescale that image.(I suppose)
It might make a difference if you:
- made sure the images have the correct dimensions locally already, so you wouldn't need the width/height attributes of the img element
- created the full html string in the loop first, then updated the dom just once.
As in:
var imageString = "";
for (IconNumber = 0; IconNumber < Icons.length; IconNumber++)
{imageString += "<img src='Filters/" + Icons[IconNumber] + "_N.svg' >"}
eRow.innerHTML += imageString;


5. I assume that the user will not see all 80 images at once (on a regular phone or tablet screen). He will probably need to scroll through this 'gallery'.
Wouldn't you want to consider a user interface which loads the images only when necessary (once the user scrolls down to see more)? It would speed up the page display and generally offers a more modern user experience.
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Thanks Petra,

1. I'm using the Desktop to develop/test the App before building the 'apha' product (obviously this is my first app and first PhoneGap so I'm learning as I go and the thought of Apple reviewing it before even I think it's ready is intimidating to say the least - not to mention their turn-around time I've read about). Your aside comment that the Build requires different configuration/directory structure worries me - can you elaborate on what will need to be changed?

2. Same result on both iPhone5 & iPad, so unsure on other devices - including Android which I have not attempted yet (mainly as I don't have access to one yet).

3. `Deviceready` is there to ensure my issue have nothing to do with Cordova, Why do you think it is so `remarkable`?

4. This is simply a quick & nasty test to show the issue - not the `real` version which does exactly what you suggest.

5. It is possible that the user WILL see all 80 on 1 screen on devices that have a screen large enough (eg. iPad) - for those that do 'overflow', the user will be so daunted by being presented with 80 images that by the time they collect their thoughts, the remainder will be rendered off-screen :)

in summary, are you saying not to worry about the issue as when I build it, all will be good?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
1.a- Why worry about Apple's review? They will not review before you finsished developing, testing on test devices and uploading it to the Store.
This has nothing to do with using the Phonegap Desktop app.

1.b- You seem to be (partly?) unaware of the difference between PGB and building locally.
I suggest you read:
- https://github.com/jessemonroy650/top...
- the many recent posts about this topic in this forum, for instance
http://community.phonegap.com/nitobi/...
(especially my reply that starts with: "Here's feedback on your zip file")

3. Why do you think it is so `remarkable`?
Well, while loading the page, you add the eventListener for deviceready. As soon as the page is fully loaded, you check whether or not deviceready has fired using a variable 'deviceready'. If not, you wait 25 milliseconds and check again.
That way, you're not using the callback functions properly. Instead of using the asynchronous way javascript is executed, you create an iteration of attempts.
It would be much better to properly make use of callback functions:

- add an eventListener for 'DOM loaded'
- in its callback, add an eventListener for 'devicready'
- in its callback, perform everything that depends upon API and plugins.

Since your image collection doesn't depend on anything Phonegap injects, you may as well start right away, without waiting for a deviceready event.

4. ???
Why do you show some quick and nasty code here, for forum denizens to see and reference, when your 'real code' is different? How is anyone supposed to know what the real cause of the problem is, then?
How would you feel if you were a mechanic in a repair shop, and the customer tells you: "My Ford doesn't start properly. Here you have my wife's little Toyota to check. I'll keep the real problem in the garage until you have any ideas about what causes the trouble."?

in summary, are you saying not to worry about the issue as when I build it, all will be good?
That's not what I said. I still have no idea aout the root cause of the problem, as it might be dependant on
- your code
- the device
- the OS/version

In fact, I have yet to see an app that displays 80 images at a time, especially not in a web shop or product list, since usually these will be fetched from a remote server and not from the app's assets.
Are you really going to publish an app update (including Store reviews!) every time an product or image is changed, added or removed?

Furthermore, since you haven't even built the app and tested it, I am not sure if this is just a Phonegap Mobile app limitation.
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Hi Petra,

1. I'm gobsmacked!!
Stupid me thought the Desktop/App was meant for exactly what I'm doing - developing/testing/prototyping before going to the next step of 'proper' building to then submit to the AppStore!! Obviously I (and seemingly a lot others) are wrong - I'm so confused/disappointed/let down I don't really even now know where to go next .........

2++ The rest is now somewhat academic ....

At the risk of getting slapped again, do you know of anywhere I can go that provides a step-by-step plain english way of achieving what I thought I was doing?
Can I migrate what I have done to date across to PGB? If so, how?
You want to help me?
All the documentation I've read over the past 3mths never made all this obvious (or even hinted at it) and certainly never explained what the Desktop/App is supposed to achieve and therefore how to actually develop Apps using Phonegap (at least I never found it!).
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
No big problem.
In fact, you already made two important steps:
1. You got a first feel of what it's like to create a hybrid app
2. You now know a bit of the difference between local builds and PGB.

Next, you have a couple of options:
- install Phonegap, SDK's, plugins, etc., so you can build locally. This is free of charge (unlimited apps) and you can even make custom changes to plugins and app internals. Drawback is, that you will have to set up and maintain several development environments
- install nothing and use Phonegap Build

Here's what I do (and I only use Phonegap Build, the cloud service):
- once, when I started years ago, I created a Phonegap/Cordova project (like the default HelloWorld project) locally, because I thought that's where to start.
- then I found out about the PGB Docs, the PGB Blog and this forum. I started reading, posting, researching
- then, from that default project, I created something that can be built with PGB. The thread I linked to previously explains which steps are needed.
The result was a simple app, that builds, passes my tests and could even be published.

For each next, serious project (meanwhile 30+), I simply take a copy of my first project, adapt to the latest PGB changes/requirements and go from there.

Your source for PGB always consists of either of ZIP file or a Git repo, with:
- both index.html and config.xml in the root directory (!!)
- all other assets in the root or in any other directory from that root, as you wish. The naming of the directories is NOT predefined by PGB, so you can have any directory names
- do never include plugin sources, platform sdk's and generated files (like cordova.js, info.plist or androidManifest.xml) in your assets. Just include your html, javascript, images, stylesheets.

All the documentation I've read over the past 3mths never made all this obvious
Probably because you read Phonegap, Cordova and PGB documentation in a nice mix, and a bunch of forum articles that assumed one platform or the other.

Stupid me thought the Desktop/App was meant for exactly what I'm doing - developing/testing/prototyping before going to the next step of 'proper' building to then submit to the AppStore!!
And you were right.....as long as "proper building" means: build locally on your machine with the whole environment set up.
However, if you want to avoid that hassle and use Phonegap Build, the cloud service, then forget about playing with the Desktop App, start writing code in your favorite code editor, zip up the bunch including a config.xml and enjoy.
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
I THINK I LOVE YOU :)

Here's me having visions of having to scrap the last 3+months work and start again - since reading your last response I've been investigating Sencha, Ionic and Smartface!

I'll now make the small changes to get everything into one `www` folder (with sub-folders of images) to zip and use the Cloud service.
I assume I need to install something that communicates with the Cloud service (PGB?) - where/how do I get that?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I assume I need to install something that...
You don't install anything. Not even something that communicates with the cloud service.
It's free (with some limitations) and it's right there in your browser.

See https://build.phonegap.com/
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
While I was waiting for your response I found site and started reading - got as far as -
Convert an Apple developer certificate to a P12 file on Windows

To develop apps via Build, you must use a P12 certificate file. You generate this certificate based on the Apple iPhone developer certificate file you receive from Apple.

Given I don't have access to a Mac, am I now stopped?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
No. You can create such files on Windows.
http://www.joshmorony.com/how-to-crea...

However, if you want to publish an iOS app to the iTunes Store, you will have to buy, borrow, steal or lease a Mac.
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Thanks :)

Done all that - now just gotta wait up to 48hours for Apple to `process by Membership` :[

In the meantime, can I send you the .zip for you to peruse and see if there's anything wrong with it> If ok, where to/how?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I don't do private mails or such, here on the board. This is a public place.
If your zip file is available online somewhere, please post its url and I'll be happy to have a look later today.
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Fair enough! :)
Dropbox OK?
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Here is some feedback:

1. As I explained in the link above, PGB expects your index and config to be in the ROOT of the zip file, not in some directory called /www or otherwise.
Remove the /www directory level from the zip

2. Config: you are using all old plugins from the PGB repo, which was deprecated almost a year ago.
Use the latest versions of the plugins from npm. Be aware that they are named differently.
See the Plugins section of the PGB Docs and the Blog entry from September 04, 2015.

3. Config: your default icon should be named 'icon.png'. See the Icons and Splashscreen section of the PGB Docs

4. Config: you should adjust your paths to icons and splashes as soon as you have eliminated the /www

5. Config: you have included assets for blackberry and webos, although these platforms aren't even built by PGB. Remove them
Also, you have assets for winphone, although you have configured this platform not to be built. Remove them.

6. You have
<plugin version="1" name="cordova-plugin-whitelist"/>
That version doesn't exist in npm. Remove the version attribute.

7. You have
<engine name="ios" spec="~4.0.1"/>
With PGB, you can't use the engine element (and why would you, anyway?)

8. You have
<preference value="default" name="orientation"/>
but you hardly have any landscape splashes included in your config. This way, Apple will reject the package.
Add those splashes.
Also add icons and splashes for the larger dimension of Android

8b. ....and where are all those configured icons and splashes? You don't have the /res directory, where they apparently should reside (according to your config) in your zip file.

9. In your javascript, you're doing things like
function Hand()
{ document.body.style.cursor = "pointer"}

Are you aware that you are working on a touchscreen device app, and no 'hand' cursor will be available?
Also, such script will not properly work in such environment:
document.cookie = Name + '=null; expires=Fri, 31 Dec 1999 0:00:01 UTC'.
You'd better use sessionStorage, instead.

Also, be careful with
thisURL = decodeURIComponent(window.location).split('?');
In iOS9.x, the window.location object is broken (google it!), so this part of your script will be buggy.

Apparently, you have just taken the default config and not (yet) bothered to apply the necessary changes and additions for your app. In fact, it's a bit of a mess, still.
Why did you want me to check it if you haven't put any work into it, yet?
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Hi Petra,

Sorry if I'm giving you grief - you are correct that I simply took the 'out of the box' config.xml file - I honestly didn't know where else to start :[

I've corrected the errors you highlighted (I think) and generated the various Splash / Icon images (all in `SplashIcon` folder). I couldn't find any definitive instructions of exactly what sizes to use for SlashScreens & Icons on the 3 majors so hopefully the bits I gleaned from a number of sources is correct and complete.

I simply removed all references to plugins as I read somewhere if they're NOT specified, Build will insert the required latest versions.

I also remember reading WhiteList causes newbies like me lots of problems - any light you can shed on this would be greatly appreciated - just like the immense help you have been/given to date!

The revised flattened zip is in Dropbox at: https://www.dropbox.com/s/ovbmyz8z71h...

Cookies & mouse events are in the code so the App code will also run unchanged on Desktop browsers (and hopefully not cause problems when running as an App) - I appreciate this is unnecessary 'baggage' for the App and if you can suggest a better way of achieving the same end, please let me know (it determines if running on HTML5-capable devices and uses localStorage in preference to Cookies).

Again, sorry for making you shake your head in disbelief, your assistance really is greatly appreciated!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
No prob, really.
I just glanced over (because I was about to leave the house for a couple of hours) and noticed that the code in your config doesn't validate. The online W3C validator finds about 75 errors.

Use https://validator.w3.org/#validate_by...
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Oops!
I thought ` />` was just a 110% correct way of writing `>` so I changed them all .... see, told you I was an idiot!

I put them back and all's now good according to the validator (what a great little feature that is!)

Try again -
https://www.dropbox.com/s/jg7dkwslprn...
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Some feedback, in random order (several points are just a bit picky):

1. According to the PGB docs the default icon (whatever that is - I haven't found out yet) should be called 'icon.png', not 'Icon.png'.

2. Do you have any idea why you have
<icon src="SplashIcon/icon-fr-xxhdpi.png" platform="android" qualifier="fr-xxhdpi"/>?
BTW, I would add the xxxhdpi size as well.

3. Since you're not building for 'winphone', I would suggest you remove those assets

4. You're missing the splashes for iPhone6(+). These are required, otherwise Apple review will reject the app. Also, for iOS, you only have one landscape splashscreen.
(Are you sure your app should display in landscape at all?)

5. For iPad, you will need the statusbar plugin (otherwise it won't scale correctly).

6. Since you like the validation feature of W3C, try and validate your html files.
(Hint: be prepared for a shock!)
(Second hint: don't try to correct all errors, though. Most of them are meant to be 110% correct; however, whenever you feel "something is not working", then see if 110% correct html solves the problem. Most of the errors will mention missing quotes)

7. Your way of working with 'deviceready' is still remarkable. You're still not using the callbacks properly, as suggested above.

[Disclaimer: of course, I haven't worked my way through all dozens of files, so this list will most likely not be complete]
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Thanks heaps Petra,

I will attend to the errors/omissions later, but I really need to get this off my chest .....

Given you are obviously very good at this and 'know your stuff' I dare say better than most inside Adobe and you are at the bleeding edge of development closely interfacing with newbies like me (and not-so-newbies), can I suggest you find the 'expert' in charge of market penetration /customer liason inside Adobe and 'put a rocket up them' about their documentation!

As someone just joining the 'community' and seeing huge benefits in Phonegap, I can only say the quality of documentation is appalling. I have found it misleading, patchy, nowhere near complete and seemingly purposely obtuse.

I wonder how many times you and really helpful people like you have answered the same questions.

None of this is rocket science or a secret, yet nowhere that I can find is a simple, plain English step-by-step guide to writing Phonegap Apps.

How hard would it be for someone inside Adobe to sit down and write a document that explains every option in the config.xml file, it's choices and consequences.

How hard it is for that someone to detail all the possible icon/splash combinations and let people like me simply 'fill in the blanks'.

In fact a little utility could be written to generate them all given one large icon and splash. Taking that a little further, a GUI front end to the config could ask simple questions and generate all the necessary entries based on the responses/options taken - at least this would get 90% of newbies running in no time!

How much time have I (and now you) wasted in falling over answers that must arise every time someone starts using Phonegap

And the big answer you gave me re Desktop vs Build is just absolutely amazing that it is not written in big bold letters on Page 1.

There, now I feel better :)
Seriously, if it wasn't for your help Adobe would probably have 1 less user by now - me!

I can't thank you enough and I hope to can find the mental giant inside Adobe to pass this on to.

Cheers, Ian
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
1. According to the PGB docs the default icon (whatever that is - I haven't found out yet) should be called 'icon.png', not 'Icon.png'.
Done

2. Do you have any idea why you have
?
No - `fr-xxhdpi` was in the `out-of-the-box' file and while I could find no reference to it via google, thought I'd better play along!
BTW, I would add the xxxhdpi size as well.
Changed `fr-xxhdpi` to `xxxhdpi`

3. Since you're not building for 'winphone', I would suggest you remove those assets
Aren't I? -oops.... added <platform name="winphone" />
Do I need any thing else for Winphone?


4. You're missing the splashes for iPhone6(+). These are required, otherwise Apple review will reject the app. Also, for iOS, you only have one landscape splashscreen.
Done
(Are you sure your app should display in landscape at all?)
No technical reason why not, so if they REALLY want to - go for it

5. For iPad, you will need the statusbar plugin (otherwise it won't scale correctly).
is this an exception to `if not referenced Build will insert required, latest plugins`

6. Since you like the validation feature of W3C, try and validate your html files.
(Hint: be prepared for a shock!)
Yeah, I ran it on a couple of them and obviously I'm showing my age by using obsolete tag attributes instead of css - I'll correct this when the app is in `alpha` stage
(Second hint: don't try to correct all errors, though. Most of them are meant to be 110% correct; however, whenever you feel "something is not working", then see if 110% correct html solves the problem. Most of the errors will mention missing quotes)
Point taken, but assuming I have time, I'll attempt to correct ALL errors

7. Your way of working with 'deviceready' is still remarkable. You're still not using the callbacks properly, as suggested above.
Each 'page' includes `Common.js` after 'cordova.js` in Phonegap Desktop - how do I force this sequence with Build if it's inserting the required cordova.js?
`Common.js` contains:
var deviceReady = false;
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady()
{deviceReady = true;}
then each 'page' has the `remarkable` code onLoad - I use an `empty` shell to create new pages, so many have this code for now (unnecessarily) until I get to review the whole project at `alpha` stage
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
5. Build will not simply insert plugins. It will not analyse your code and magically add them.
If you need plugins, you must specify them in your config.

7. I think you basically miss a good understanding of how javascript callback functions work (which is a general JS programming topic, not specifically PGB). Also, you should read up on 'deviceready', which unfortunately is only well documented in the Cordova docs, not at PGB.
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
5. There's the case for that GUI again!
Didn't think it was too magical if I have iPad icon/splash stuff in the config - are you saying I DO have to include ALL plugins in contradiction to what I've read about Build auto including them, or just this one?

7. At the risk of being presumptuous I don't think I misunderstand (but I will re-read what I can find). Maybe it's the simplistic way I've implemented it that is raising your eyebrows - can you post/email an example of how you implement it?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
5. You don't include all (thousands) plugins, just the ones you need. PGB can't do that automatically...how is it supposed to know which of the many geolocation, sqlite, or network plugins you prefer? How would it know that you wrote your own plugins?

7. Yes, you are beating the purpose of callbacks by writing a listener loop which checks if your deviceready variable has finally been set.
Above, in this thread, I gave you the order of callbacks to use.
You may want to find a short tutorial online about this topic. As I said, it's general javascript stuff, not specific to PGB.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Thanks Ian. I appreciate the kind words.
I agree that the docs are not what you might expect from Adobe. Neither is their customer support organization.

Over the past years, plenty of people have written tutorials, blog articles and books, though. The trouble is that such documents get outdated really quickly....but these remain available online. You can guess what happens.

On the other hand: there is indeed some Adobe documentation available about PGB. It's linked in the menu bar of this forum (Docs and Blog).
Unfortunately, most beginners are no real IT people and refuse to read large portions of technical documentation. They rather "ask a quick question" here. For this large group (in my perception) even more documentation would be wasted effort.
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
I understand - still reckon a big obvious Page1 and that GUI I suggested would be a huge help (given Phonegap is free, pretty hard to justify spending time on improving it I guess).
Thank god there are people like you out there :)
Photo of Ian Howse

Ian Howse

  • 45 Posts
  • 0 Reply Likes
As you can see I've put back the plugins I believe the App needs - but ...
- I'm using Google Maps so I assume I do NOT need Cordova's geolocation?
- I'm using the Camera (plugin included) - do I also need media-capture?
- most are coded as `org.apache.cordova......` others just `cordova....` which is correct?
I think deviceReady is OK - at worst I'm guilty of placing the wait loop too early (before I actually need to know) - again, that's another 'tidy-up' task for later.
https://www.dropbox.com/s/nf3y0f26pml...

Another query I think falls into the `stupid question` category: as the Buttons and Filters folders (containing various images used throughout the App) are included in the Build, does that mean they're loaded as part of the `compiled` app therefore any consideration to preloading can be completely ignored as they're already on the device (ignoring Desktop browsers)?