Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class AppDelegate: ExpoAppDelegate, UNUserNotificationCenterDelegate {
}

// Cover the UI before the OS captures the app-switcher snapshot, so sensitive data never ends up on disk.
// Called by `SceneDelegate`, UIKit doesn't send the app-level active/resign callbacks under the scene lifecycle.
// Called by `SceneDelegate` on background/foreground, UIKit doesn't send the app-level callbacks under the scene lifecycle.
func showPrivacyOverlay() {
guard privacyOverlay == nil, let window else {
return
Expand Down
4 changes: 2 additions & 2 deletions ios/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
forward(userActivity: userActivity)
}

func sceneWillResignActive(_ scene: UIScene) {
func sceneDidEnterBackground(_ scene: UIScene) {
appDelegate?.showPrivacyOverlay()
}

func sceneDidBecomeActive(_ scene: UIScene) {
func sceneWillEnterForeground(_ scene: UIScene) {
appDelegate?.hidePrivacyOverlay()
}

Expand Down
Loading