Skip to content

Phonegap nuances #21

Description

@niloy

File path should not being with leading /

Something like <img src="/images/foo.png"> would work on a website but wont work on phonegap. Because while a browser looks for the image from the root of the website, phonegap looks for the file from the root of the filesystem. Also applies to url() in css files.

SVG requires fixed height and width

Give fixed height and width to SVG images or they might stop rendering.

Changing the application icon

While the docs says to put <icon src=...> in the config.xml to change the app icon, I couldn't make it to work. So for android, I just pasted the icon image at platforms/android/res/drawable which worked.

Unsigned APK files wont be installed on phones

Before distrubuting an APK file, it must be signed using jarsigner. Steps to generate and sign apk file here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions