Appboy / appboy-ios-sdk

Public repo for the Braze iOS SDK
https://www.braze.com
Other
165 stars 142 forks source link

ASWebAuthenticationSession web view abruptly closed when the keyboard is shown #221

Closed nsuriadi closed 4 years ago

nsuriadi commented 4 years ago

Report

Describe your environment.

Info Value
Platform Name iOS
Platform Version 12
SDK Version 3.21.1
Integration Method CocoaPods
Xcode Version Xcode 11.3.1
Repro rate All the time

What did you do?

What did you expect to happen?

What happened instead?

Steps to reproduce

Code Snippet

Are you doing any feature customizations that may relate to the issue? Can you share the code snippet?

No.

This issue seems to be originating from ABKInAppMessageWindowController#keyboardWasShown.

InAppMessageBug

Sidenote: I was able to work around this issue in iOS 13 by utilizing a new property (presentationContextProvider) that tells the system in which UIWindow to show the embedded web view in.

hokstuff commented 4 years ago

Hey @n-p-s,

We recommend to avoid displaying an in-app message and running a web authentication session simultaneously. You may be able to use in-app message delegate methods to work around this issue or can use the workaround you already provided.

Thanks, Daniel