diff options
Diffstat (limited to 'Example Apps')
-rw-r--r-- | Example Apps/Example Swift/ProxyManager.swift | 6 | ||||
-rw-r--r-- | Example Apps/Shared/AppConstants.m | 4 |
2 files changed, 7 insertions, 3 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 diff --git a/Example Apps/Shared/AppConstants.m b/Example Apps/Shared/AppConstants.m index 20afa0b6c..40717490b 100644 --- a/Example Apps/Shared/AppConstants.m +++ b/Example Apps/Shared/AppConstants.m @@ -9,10 +9,10 @@ #import "AppConstants.h" #pragma mark - SDL Configuration -NSString * const ExampleAppName = @"SDL Example App"; +NSString * const ExampleAppName = @"testingSDLapp"; NSString * const ExampleAppNameShort = @"SDL"; NSString * const ExampleAppNameTTS = @"S D L Example App"; -NSString * const ExampleFullAppId = @"123e4567-e89b-12d3-a456-426655440000"; // Dummy App Id +NSString * const ExampleFullAppId = @"451969947"; // Dummy App Id #pragma mark - SDL Textfields NSString * const SmartDeviceLinkText = @"SmartDeviceLink (SDL)"; |