summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2022-04-22 12:04:41 -0400
committerJoel Fischer <joeljfischer@gmail.com>2022-04-22 12:04:41 -0400
commit434404ddb18b0c08d0b1cb795081e77c030098e8 (patch)
tree93e0850698d95a74caad4163c804d94e105f85b3
parent5b2d53c2464f282077b650d424691ec4d23d1078 (diff)
downloadsdl_ios-testing/java-suite-1779-ios-test.tar.gz
Testing setup for background alert issuetesting/java-suite-1779-ios-test
* https://github.com/smartdevicelink/sdl_java_suite/issues/1779
-rw-r--r--Example Apps/Example Swift/ProxyManager.swift6
-rw-r--r--Example Apps/Shared/AppConstants.m4
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)";