Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Issue #118: Phonegap Build: Notification doesn't show app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Feb 2, 2016
1 parent d97506d commit cffac4a
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docs/PHONEGAP_BUILD.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
## PhoneGap Build Support
# PhoneGap Build Support

- [PhoneGap Build Support](#phonegap-build-support)
- [Including the plugin](#including-the-plugin)
- [Adding Resources](#adding-resources)

## Including the plugin

Including this plugin in a project that is built by PhoneGap Build is as easy as adding:

Expand All @@ -15,3 +21,19 @@ into your app's `config.xml` file. PhoneGap Build will pick up the latest versio
```

Note: version 1.3.0 of this plugin begins to use Gradle to install the Android Support Framework. Support for Gradle has recently been added to PhoneGap Build. Please read [this blog post](http://phonegap.com/blog/2015/09/28/android-using-gradle/) for more information.

## Adding resources

Because PhoneGap Build does not support running hooks if you want to include custom image or sounds you will need to use a *beta* feature to include these files.

### Android

To add custom files, create a directory called `locales/android/` in the root of your PGB application zip / repo, and place your resource files there. The contents will be copied into the Android `res/` directory, and any nested sub-directory structures will persist. Here's an example of how these files will be compiled into your APK:

```
<www.zip>/locales/android/drawables/logo.png --> <android_apk>/res/drawables/logo.png
<www.zip>/locales/android/raw/beep.mp3 --> <android_apk>/res/raw/beep.mp3
<www.zip>/locales/android/values-fr/strings.xml --> <android_apk>/res/values-fr/strings.xml
```

Existing directories will be merged, but at this time any individual files you include will overwrite their target if it exists.

0 comments on commit cffac4a

Please sign in to comment.