Skip to content

Commit cee0838

Browse files
committed
Remove launch options
1 parent 2d2a08b commit cee0838

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

cordova-airship/src/ios/AirshipCordovaAutopilot.swift

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ public class AirshipPluginLoader: NSObject, AirshipPluginLoaderProtocol {
1212
public static func onApplicationDidFinishLaunching(
1313
launchOptions: [UIApplication.LaunchOptionsKey : Any]?
1414
) {
15-
AirshipCordovaAutopilot.shared.onLoad(launchOptions: launchOptions)
15+
AirshipCordovaAutopilot.shared.onLoad()
1616
}
1717
}
1818

1919
@MainActor
2020
final class AirshipCordovaAutopilot {
2121

2222
public static let shared: AirshipCordovaAutopilot = AirshipCordovaAutopilot()
23-
private var launchOptions: [UIApplication.LaunchOptionsKey : Any]?
2423
private var settings: AirshipCordovaPluginSettings?
2524
private var pluginInitialized: Bool = false
2625
private var onLoad: Bool = false
@@ -31,26 +30,20 @@ final class AirshipCordovaAutopilot {
3130
AirshipProxy.shared.delegate = self
3231

3332
if pluginInitialized, onLoad {
34-
try? AirshipProxy.shared.attemptTakeOff(
35-
launchOptions: self.launchOptions
36-
)
33+
try? AirshipProxy.shared.attemptTakeOff()
3734
}
3835
}
3936

40-
func onLoad(launchOptions: [UIApplication.LaunchOptionsKey : Any]?) {
37+
func onLoad() {
4138
self.onLoad = true
42-
self.launchOptions = launchOptions
4339
if pluginInitialized, onLoad {
44-
try? AirshipProxy.shared.attemptTakeOff(
45-
launchOptions: self.launchOptions
46-
)
40+
try? AirshipProxy.shared.attemptTakeOff()
4741
}
4842
}
4943

5044
func attemptTakeOff(json: Any) throws -> Bool {
5145
return try AirshipProxy.shared.takeOff(
52-
json: json,
53-
launchOptions: self.launchOptions
46+
json: json
5447
)
5548
}
5649
}

0 commit comments

Comments
 (0)