CleverTap / clevertap-ios-sdk

CleverTap iOS SDK
https://clevertap.com
MIT License
54 stars 51 forks source link

App crash - CTAlertViewController showFromWindow #292

Closed Praphin closed 6 months ago

Praphin commented 8 months ago

Describe the bug App is getting crashed with following error Fatal Exception: NSInternalInconsistencyException UIViewController is missing its initial trait collection populated during initialization. This is a serious bug, likely caused by accessing properties or methods on the view controller before calling a UIViewController initializer. View controller: <CTAlertViewController: 0x10f813ff0>

Screenshots

Screenshot 2023-09-25 at 10 19 58 PM Screenshot 2023-09-25 at 10 20 14 PM

Environment (please complete the following information):

akashvercetti commented 8 months ago

@Praphin We will investigate this on Xcode 15. Meanwhile could you please update to our latest version v5.2.0 and try this out? Also, could you please provide the steps to reproduce and integration code if possible? Sounds like an event is fired from the AppDelegate which triggers an alert in-app.

Praphin commented 8 months ago

@akashvercetti I can update version and check on the next release. Meanwhile any plans for above PR on Master release ?

akashvercetti commented 8 months ago

@Praphin we are planning to release a new version this week.

vkochukov commented 8 months ago

@akashvercetti I sorry to write a comment in this issue, but it seems to me that this is the same problem. clevertap-react-native has a similar issue.

Could you please fix it there too?

Environment: Xcode version: Xcode 15 CleverTap React Native SDK Version: 1.2.0 Device: iPhone 15 OS: iOS 17

akashvercetti commented 8 months ago

@vkochukov we will release a fix for react native too. We will keep you updated on the release 👍

kartikthakur2022 commented 6 months ago

Please release fix for https://github.com/CleverTap/clevertap-cordova also. Thanks

akashvercetti commented 6 months ago

We have released a fix for this in our latest release for: