fcm 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/fcm.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c66c86d3d3691b424672e80b59a82960bb4ff54d
|
4
|
+
data.tar.gz: '091c4d8413d499f23d87f419e0b0f0f560242bb7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9540aeb7f04c0a80d2777511261a87d5e6fc08e88dc6806775c23b83aa2df10cf10c80d6aa7abfdeb9140e92ab47e37c6e1c507555b813500fa5b85892be24f
|
7
|
+
data.tar.gz: 96121c74b6e7ecea819fbc9db61b5cea64b8d2eff054620950bc9f73d4da270fe0b5cfd8ce31152f0075c71b87d4c7620bc1be12f1e387917dc4f7435250c0cb
|
data/README.md
CHANGED
@@ -64,9 +64,10 @@ With [device group messaging](https://firebase.google.com/docs/cloud-messaging/n
|
|
64
64
|
Then you will need a notification key which you can create for a particular `key_name` which needs to be uniquely named per app in case you have multiple apps for the same `project_id`. This ensures that notifications only go to the intended target app. The `create` method will do this and return the token `notification_key`, that represents the device group, in the response:
|
65
65
|
|
66
66
|
```ruby
|
67
|
-
|
67
|
+
params = {key_name: "appUser-Chris",
|
68
68
|
project_id: "my_project_id",
|
69
|
-
registration_ids: ["4", "8", "15", "16", "23", "42"]
|
69
|
+
registration_ids: ["4", "8", "15", "16", "23", "42"]}
|
70
|
+
response = fcm.create(*params.values)
|
70
71
|
```
|
71
72
|
|
72
73
|
### Send to Notification Key
|
data/fcm.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fcm"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.5"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Kashif Rasul", "Shoaib Burq"]
|
9
9
|
s.email = ["kashif@spacialdb.com", "shoaib@spacialdb.com"]
|
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
|
-
s.add_runtime_dependency('httparty', '~> 0.
|
24
|
+
s.add_runtime_dependency('httparty', '~> 0.1')
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kashif Rasul
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-11-
|
12
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: '0.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: '0.1'
|
28
28
|
description: fcm provides ruby bindings to Firebase Cloud Messaging (FCM) a cross-platform
|
29
29
|
messaging solution that lets you reliably deliver messages and notifications at
|
30
30
|
no cost to Android, iOS or Web browsers.
|