Skip to content

Commit

Permalink
Testing setup for background alert issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joeljfischer committed Apr 22, 2022
1 parent 5b2d53c commit 434404d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Example Apps/Example Swift/ProxyManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Example Apps/Shared/AppConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down

0 comments on commit 434404d

Please sign in to comment.