Skip to content

Commit

Permalink
Merge pull request #2 from spinneyio/feature/android-notification-count
Browse files Browse the repository at this point in the history
Feature/android notification count
  • Loading branch information
WojtAcht committed Oct 11, 2021
2 parents 7230065 + b273da4 commit 36440b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Clojure wrap for Firebase Cloud Messaging that allows You to send push notificat
### Installation
Leiningen coordinates:
```clj
[clj-push-notifications "1.0.2"]
[clj-push-notifications "1.0.3"]
```
### Example of usage:
First get Your credentials (google-services.json file) from Firebase console, and add them to Your project path (or some config file):
Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(defproject clj-push-notifications "1.0.2"
(defproject clj-push-notifications "1.0.3"
:description "Firebase cloud messaging client."
:url "https://github.com/spinneyio/clj-push-notifications"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.0"]
[com.google.firebase/firebase-admin "6.12.2" :exclusions
[com.google.firebase/firebase-admin "8.1.0" :exclusions
[com.google.errorprone/error_prone_annotations
io.grpc/grpc-api
io.grpc/grpc-core
Expand Down
3 changes: 2 additions & 1 deletion src/clj_push_notifications/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
(.setIcon "stock_ticker_update")
(.setColor "#f45342")
(.setTitle title)
(.setClickAction type))
(.setClickAction type)
(.setNotificationCount badge))

android-notification (.build android-notification)

Expand Down

0 comments on commit 36440b2

Please sign in to comment.