capacitor-event-bird 0.0.2 → 0.0.3

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.
@@ -21,15 +21,11 @@ public class CapacitorEventBirdPlugin: CAPPlugin, CAPBridgedPlugin {
21
21
 
22
22
  @objc func logout(_ call: CAPPluginCall) {
23
23
  DispatchQueue.main.async {
24
- if let sceneDelegate = UIApplication.shared.connectedScenes
25
- .first?.delegate as? SceneDelegate {
26
- sceneDelegate.showLoginScreen()
27
- call.resolve()
28
- } else if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
24
+ if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
29
25
  appDelegate.showLoginScreen()
30
26
  call.resolve()
31
27
  } else {
32
- call.reject("Unable to access root view controller")
28
+ call.reject("Unable to access AppDelegate")
33
29
  }
34
30
  }
35
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-event-bird",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "returns events back to native env",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",