Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPAppDelegateProxy does not receive events when using a UIApplicationDelegateAdaptor in a SwiftUI App #207

Open
moyerr opened this issue Jul 19, 2023 · 0 comments

Comments

@moyerr
Copy link

moyerr commented Jul 19, 2023

We attempted to migrate to a SwiftUI App for our application's main entry point, and we wanted to continue to leverage the SDK's automatic handling of UIApplicationDelegate events. SwiftUI supports UIKit app delegates through the UIApplicationDelegateAdaptor, so we used this hoping to preserve existing functionality from the MParticle SDK.

Unfortunately, doing so causes the application to crash after logging the following message:

Could not cast value of type 'MPAppDelegateProxy' (0x10d00ac38) to 'SwiftUI.AppDelegate' (0x113e93708)

Is there a way the MPAppDelegateProxy could be updated to support the SwiftUI UIApplicationDelegateAdaptor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant