mmine 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1987eaebb795a789663acee6d8f0baa1809dc20372035081fa732774cc5a988
4
- data.tar.gz: af08d7e4c231a75d7bbec89e0e7275f509753169d7ac0db0cdcfe240ad886124
3
+ metadata.gz: bf9a08bc4802f52fd00fb4f981a3f7b48cff3710d302701251b1bf2a7e285f2d
4
+ data.tar.gz: 1292599de1aea93a63d125fb4b6acec7964434ce0e598ae86f2ab5161e2e0ba7
5
5
  SHA512:
6
- metadata.gz: 4384c96a3394dd2ba46447437b81378fe34c5221bc078db8b7d08b81644b01fdbf37e93c15a26d1e43e562135592ed8bea8e53a47fc4924d73bdaef1e97e2083
7
- data.tar.gz: 65c086406a02cdd1080912c7ab58bda7d164d574f52133a1b7d3ec5ddbfabf2141d5344f7ab4b00e056f6e0baa35639304ddbee9561d42e58a93e50a8c537979
6
+ metadata.gz: bcf33351a6111b16b950ceafe606760d80bbb13c3cbdd18ec9034b8af5a4de093fc5feddb9ee479516b08375129050e8eec9a76f90049d5169857dc2398f60e9
7
+ data.tar.gz: 759f7473f8ed744e774e5ad8b43b6754ec9a410da82e9131650936ba3597413c03ce59ef3b24385faaddcf43cfd610f349c287a9f9464c41065767a2c38f888c
data/lib/mmine/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mmine
2
- VERSION = "0.13.0"
2
+ VERSION = "0.13.1"
3
3
  end
@@ -12,8 +12,15 @@ class NotificationService: UNNotificationServiceExtension {
12
12
  override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
13
13
  self.contentHandler = contentHandler
14
14
  self.originalContent = request.content
15
- MobileMessagingNotificationServiceExtension.startWithApplicationCode(<# put your Application Code here #>)
16
- MobileMessagingNotificationServiceExtension.didReceive(request, withContentHandler: contentHandler)
15
+
16
+ // Check if notification is from Infobip
17
+ if MM_MTMessage.isCorrectPayload(request.content.userInfo) {
18
+ MobileMessagingNotificationServiceExtension.startWithApplicationCode(<# put your Application Code here #>)
19
+ MobileMessagingNotificationServiceExtension.didReceive(request, withContentHandler: contentHandler)
20
+ } else {
21
+ // Pass through non-Infobip notifications
22
+ contentHandler(request.content)
23
+ }
17
24
  }
18
25
 
19
26
  override func serviceExtensionTimeWillExpire() {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Kadochnikov
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.22.0
19
+ version: 1.27.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.22.0
26
+ version: 1.27.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.3.26
76
+ rubygems_version: 3.5.23
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Mobile Messaging iOS Notification Extension Integration Tool made at Infobip