edoctor-sendbird-calls 1.0.1-beta.10 → 1.0.1-beta.11

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.
@@ -384,10 +384,11 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
384
384
  SendBirdCall.pushRegistry(registry, didReceiveIncomingPushWith: payload, for: type, completionHandler: nil)
385
385
  }
386
386
 
387
- @available(iOS 10.0, *)
388
387
  func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Void) {
389
388
  print(TAG + "pushRegistry incoming call")
390
- // SendBirdCall.addDelegate(self, identifier: "RNSendBirdCalls")
389
+ if !SendBirdCall.hasDelegate(identifier: "RNSendBirdCalls") {
390
+ SendBirdCall.addDelegate(self, identifier: "RNSendBirdCalls")
391
+ }
391
392
  SendBirdCall.pushRegistry(registry, didReceiveIncomingPushWith: payload, for: type) { uuid in
392
393
  guard uuid != nil else {
393
394
  let update = CXCallUpdate()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edoctor-sendbird-calls",
3
- "version": "1.0.1-beta.10",
3
+ "version": "1.0.1-beta.11",
4
4
  "description": "edoctor-sendbird-calls",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",