AppAuth-iOS icon indicating copy to clipboard operation
AppAuth-iOS copied to clipboard

AppAuth browser is not retain same screen when user goes on another app to copy code and come back to the app that was in the background.

Open VijyendraSisodia-iOS opened this issue 1 year ago • 2 comments

Is your feature request related to a problem you're having? Please describe. AppAuth browser is not retain same screen when user goes on another app to copy code and come back to the app that was in the background. Once user goes to copy code on another app and come back AppAuth restart journey from login page.

Describe the solution you'd like User click on Login screen and want to use login details from another app or screen. If Application goes in background still AppAuth should retain same screen where user left. Currently user navigate to back on first login screen. every time user lose all entered detail and restart journey from login. User unable to login if they want to copy and paste login detail from external app.

VijyendraSisodia-iOS avatar Dec 27 '24 11:12 VijyendraSisodia-iOS

Hi @VijyendraSisodia-iOS,

I was unable to reproduce this in Example-iOS_Swift-Carthage (using SPM instead of Carthage) (video). I was able to navigate away from the app and open multiple other apps while the webview persisted.

Are you able to reproduce this in any of the example apps? If so please provide repro steps.

camden-king avatar Dec 30 '24 15:12 camden-king

@camden-king We still facing issue and able to replicate in our application. Could you or someone help us to fix this. We are using below function to open secure web browser

    **appDelegate.currentAuthorizationFlow = OIDAuthorizationService
        .present(authorisationRequest, presenting: controller, prefersEphemeralSession: false) { authCodeResponse, error in**

But When user goes in background and comes back, secure browser goes away.

VijyendraSisodia-iOS avatar Jan 06 '25 11:01 VijyendraSisodia-iOS