apnotic 1.6.1 → 1.7.0
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 -0
- data/lib/apnotic/notification.rb +5 -1
- data/lib/apnotic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ae71d53585d79f023006333f32688ff88ccf7ae92c3c639831ece42a05a2de3
|
4
|
+
data.tar.gz: a4b9ba46513dfb766c303d9ba72ad99e0db0122258967414f34e7c0236aa53bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55d81b9a2d59f19f6725cc1f7f163769123b91bfe84a4b1517810d6c8f3f6b533a12e66c535f9337a81356957c426388eb361551075b646d6b1ac34e61145e89
|
7
|
+
data.tar.gz: 6ee59aada3067fc897c259d9a8c41c6fd94c6ac68e3d1e2e7bed402aa7284bdf51fe67dad7a428f4583fe82257b85e06bf680320d3c57e8bd2d12cca8da172b1
|
data/README.md
CHANGED
@@ -315,6 +315,9 @@ These are all Accessor attributes.
|
|
315
315
|
| `category` | "
|
316
316
|
| `custom_payload` | "
|
317
317
|
| `thread_id` | "
|
318
|
+
| `target_content_id` | "
|
319
|
+
| `interruption_level` | Refer to [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363) for details. iOS 15+
|
320
|
+
| `relevance_score` | Refer to [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363) for details. iOS 15+
|
318
321
|
| `apns_id` | Refer to [Communicating with APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for details.
|
319
322
|
| `expiration` | "
|
320
323
|
| `priority` | "
|
data/lib/apnotic/notification.rb
CHANGED
@@ -4,7 +4,8 @@ module Apnotic
|
|
4
4
|
|
5
5
|
class Notification < AbstractNotification
|
6
6
|
attr_accessor :alert, :badge, :sound, :content_available, :category, :custom_payload, :url_args, :mutable_content, :thread_id
|
7
|
-
|
7
|
+
attr_accessor :target_content_id, :interruption_level, :relevance_score
|
8
|
+
|
8
9
|
def background_notification?
|
9
10
|
aps.count == 1 && aps.key?('content-available') && aps['content-available'] == 1
|
10
11
|
end
|
@@ -21,6 +22,9 @@ module Apnotic
|
|
21
22
|
result.merge!('url-args' => url_args) if url_args
|
22
23
|
result.merge!('mutable-content' => mutable_content) if mutable_content
|
23
24
|
result.merge!('thread-id' => thread_id) if thread_id
|
25
|
+
result.merge!('target-content-id' => target_content_id) if target_content_id
|
26
|
+
result.merge!('interruption-level' => interruption_level) if interruption_level
|
27
|
+
result.merge!('relevance-score' => relevance_score) if relevance_score
|
24
28
|
end
|
25
29
|
end
|
26
30
|
|
data/lib/apnotic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apnotic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Ostinelli
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http2
|