notifiable-apns-apnotic 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 962d13629648b33d24f7767c6f6f874051905ce5405b5a04dadeef1f01757661
4
- data.tar.gz: 988c8c6459f9ebece9afebc1817fe22f8b0ae335c4eb99ece23e0f410ed56f8d
3
+ metadata.gz: fe799647c4f290d1532794b3517cd5c55d99603b953701d73a1d78e18d9605e4
4
+ data.tar.gz: a65db57a700bb47dd3d3b6a0419723de4b248fd50a975111bdf69792a90a0568
5
5
  SHA512:
6
- metadata.gz: a8da618b9fb538d0f861e2bc368671c13e6a4e46bc6631346001aaf52b8d5ed07dea8369292b65ef98587c669f63a32a46d630a21055c15fa06e15818d9b03b1
7
- data.tar.gz: 26bffe1a47acc9b3d505717bf280df5506d1a0060a2aa8e68989107444239d08d44453998ce8738a61ca0905d0281a783b5bba7feaf9c4f77e165baf2f82e74d
6
+ metadata.gz: 17f297f0f3dda3ef3639438fe65059c5c588218fe30906030783a6afa6cb387889e99e7b9e6ba876b29af13e99aca176126412b48a947ea53d2520af20d6b89f
7
+ data.tar.gz: 90815786ec2c607feec6e38d1e1c98d5bd160568909171da5834a7118a4d12ddb3f74483565d1692b3de78a3e0d90aea4efdebf33637c413276613cbd6f877e3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- notifiable-apns-apnotic (0.3.6)
4
+ notifiable-apns-apnotic (0.3.7)
5
5
  apnotic (~> 1.6.0)
6
6
  grocer (~> 0.7.1)
7
7
  notifiable-core (>= 0.1.3)
@@ -69,10 +69,10 @@ module Notifiable
69
69
  payload.alert = {}
70
70
  payload.alert[:title] = notification.title if notification.title
71
71
  payload.alert[:body] = notification.message if notification.message
72
- payload.sound = notification.sound || 'default'
73
72
  payload.category = notification.category if notification.category
74
73
  payload.content_available = notification.content_available if notification.content_available
75
74
  payload.priority = 5 if notification.content_available # infer valid priority if content_avalible flag is true
75
+ payload.sound = notification.sound || notification.content_available ? nil : 'default'
76
76
  payload.badge = notification.badge_count if notification.badge_count
77
77
  payload.custom_payload = notification.send_params
78
78
  payload.thread_id = notification.thread_id if notification.thread_id
@@ -1,7 +1,7 @@
1
1
  module Notifiable
2
2
  module Apns
3
3
  module Apnotic
4
- VERSION = "0.3.6"
4
+ VERSION = "0.3.7"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-apns-apnotic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2019-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: notifiable-core