24 Commits

Author SHA1 Message Date
Ibby
7f368b61be tslint and fix build issues 2017-03-01 21:28:05 -05:00
Rob
2a32624d9d feat(local-notifications): support for icon background color (#1079)
The Cordova plugin Ionic Natives uses allows specifying the background color of the smallIcon.  By not including it in your interface you force users to use the default color for their version of Android.  While the LocalNotification plugin is not well documented, it does include this feature, see Options.java line 253:

```
/**
     * @return
     *      The notification background color for the small icon
     *      Returns null, if no color is given.
     */
    public int getColor() {
        String hex = options.optString("color", null);

        if (hex == null) {
            return NotificationCompat.COLOR_DEFAULT;
        }

        int aRGB = Integer.parseInt(hex, 16);

        return aRGB + 0xFF000000;
    }
```

I've simply added the option to the interface as well as a short description.

This lets you go from the default color (varies by Android version): https://goo.gl/photos/nERcj4GZgapy8aee9
To any color you'd like: https://goo.gl/photos/t8V9WVba8jDU49aHA
And also works if you also specify a large icon: https://goo.gl/photos/gWQYwa12djmdXfYcA
2017-03-01 20:58:53 -05:00
Ibby
d5ac89996f docs(): update docs 2016-12-06 09:20:49 -05:00
Alex Muramoto
3da2831779 docs(all): standardizes and adds return types, also some param fixes 2016-11-29 16:40:50 -06:00
Max Lynch
71916a85dd fix(plugin): don't bind to name field. Fixes #740 2016-10-27 12:48:50 -05:00
Max Lynch
96776567eb feat(plugins): add name field 2016-10-17 20:38:25 -05:00
Andrew Mitchell
c83b0437fa feat(localNotifications): added register and has permission functions (#536) 2016-09-13 08:10:14 -04:00
mhartington
410b3d261f docs(localNotification): update docs 2016-09-07 12:44:35 -04:00
Saurabh Vyas
899c695414 docs(): Missing Comma / Syntax Error (#381)
A comma was missing :)
2016-08-02 18:30:56 -04:00
Guillermo
7952f9ef60 Improvements on documentation (#340)
* Improvements on documentation and some refactor

* ts | js -> typescript (docs)
2016-07-20 11:17:09 -04:00
Guille
34e038d3ca refactor(local-notification): 2016-07-17 19:59:26 +02:00
Ibrahim Hadeed
06146b322f chore(tslint): add tslint & clean up code 2016-04-29 23:56:49 -04:00
Ibrahim Hadeed
9c78837113 Merge branch 'master' of https://github.com/driftyco/ionic-native 2016-04-25 05:32:58 -04:00
Ibrahim Hadeed
e10d744e7b fix(localnotifications): options can be an array 2016-04-25 05:32:36 -04:00
Eduardo Eidelwein Berlitz
f2c85d038a Fix documentation for LocalNotifications plugin 2016-04-05 13:41:35 -03:00
Ibrahim Hadeed
3b7573be7f docs(plugins): add import statements for usage clarity 2016-03-24 13:00:18 -04:00
Ibrahim Hadeed
9ef850c66a fix(plugins): fix optional options 2016-03-13 20:39:40 -04:00
Ibrahim Hadeed
43b7f12415 docs(localnotifications): fix broken docs 2016-03-13 17:23:24 -04:00
Ibrahim Hadeed
959cf288e4 docs(plugins): add missing repo urls 2016-03-12 19:08:47 -05:00
Ibrahim Hadeed
e59371887f docs(plugins): remove install command 2016-03-12 18:56:01 -05:00
Ibrahim Hadeed
1e259da375 fix(plugin): export interfaces 2016-03-12 18:35:58 -05:00
Ibrahim Hadeed
a1bdff6b24 docs(plugins): update docs and plugin params 2016-03-12 18:30:16 -05:00
Ibrahim Hadeed
5d5bae3b78 feat(localnotification): complete functionality 2016-03-10 17:47:16 -05:00
Ibrahim Hadeed
66df0a67a6 feat(plugin): add local notifications 2016-03-10 17:25:24 -05:00