Error - no index.html present

  • 1
  • Problem
  • Updated 4 years ago
Hi there,

Nearly every time I upload a zip archive I get 'No index.html' present.

Then if I delete the app and create a new one and upload the same zip it generally works fine.

I would welcome any suggestions as to the problem. Latest app id is 2111831

Thanks

Geoff
Photo of Geoff

Geoff

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
If your zip file is available online somewhere, please post its url and I'll be happy to have a look.
Photo of Geoff

Geoff

  • 3 Posts
  • 0 Reply Likes
It is here :

http://www.kapa.ie/www.zip

Thank you very much !
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
OK, here is some feedback:

1. In your config, remove the comment line prior to the root element.

2. Of several splashes, the landscape version is missing

3. You have <gap:splash src="Default.png" /> for a "default splash" (which doesn't exist for iOS). However, the PGB docs say:
The default splash must be named splash.png and must reside in the root of your application folder.

4. You have <plugin name="cordova-plugin-whitelist" version="1" />
This version doesn't exist. Better remove the version attribute.

5. You are building for Android and iOS. However, there are no icons and splashes for Android. You need to add them

6. You are using all old, deprecated plugins from the pgb repo. Use the latest versions of the plugins from npm, instead. Please, be aware that these are named differently!

7. In your index.html, make sure the line <!DOCTYPE html> is the first line of the document. You have leading spaces, now.

If the message 'No index.html present' still displays after correcting these issues, please try a different zip tool and rebuild. Perhaps the server has trouble unzipping your package in the first place.
Photo of Geoff

Geoff

  • 3 Posts
  • 0 Reply Likes
Hi Petra,

Thank you very much for your help. I'll make the changes as above and post back if I still have issues.

Geoff