diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2022-04-22 12:04:41 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2022-04-22 12:04:41 -0400 |
commit | 434404ddb18b0c08d0b1cb795081e77c030098e8 (patch) | |
tree | 93e0850698d95a74caad4163c804d94e105f85b3 /Example Apps/Example Swift/ProxyManager.swift | |
parent | 5b2d53c2464f282077b650d424691ec4d23d1078 (diff) | |
download | sdl_ios-434404ddb18b0c08d0b1cb795081e77c030098e8.tar.gz |
Testing setup for background alert issuetesting/java-suite-1779-ios-test
* https://github.com/smartdevicelink/sdl_java_suite/issues/1779
Diffstat (limited to 'Example Apps/Example Swift/ProxyManager.swift')
-rw-r--r-- | Example Apps/Example Swift/ProxyManager.swift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Example Apps/Example Swift/ProxyManager.swift b/Example Apps/Example Swift/ProxyManager.swift index efd364784..d0f1a16f8 100644 --- a/Example Apps/Example Swift/ProxyManager.swift +++ b/Example Apps/Example Swift/ProxyManager.swift @@ -178,7 +178,11 @@ extension ProxyManager: SDLManagerDelegate { // The SDL app is in the foreground. Always try to show the initial state to guard against some possible weird states. Duplicates will be ignored by Core. subscribeButtonManager.subscribeToPresetButtons() case .limited: break // An active NAV or MEDIA SDL app is in the background - case .background: break // The SDL app is not in the foreground + case .background: + DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { + let alertView = SDLAlertView(text: "Background Alert", buttons: []) + self.sdlManager.screenManager.presentAlert(alertView) + } case .none: // The SDL app is not yet running or is terminated firstHMILevelState = .none |