After we added appboy-ios-sdk to our project, some users reported app crash. The crash logs indicates that crash point is related to appboy sdk, but we couldn't understand what is problem exactly. Currently, the crash occurs rarely so we are not able to reproduce the crash and analyze the reason.
It's happening in variety of os version, devices.
Some additional points we consider are:
The app crashes caused by other reason increases about 10 times after sdk is added.
After we remove the sdk from released app, other crashes are also reduced.
Describe your environment.
Info
Value
Platform Name
ios, ipad
Platform Version
many versions
SDK Version
3.22.0
Integration Method
cocoapods
Xcode Version
Xcode 11.4.1
Repro rate
sometimes 0.3%
What did you do?
The codes we added to implement sdk are following,
** Call Appboy startWithApiKey with following options
* ABKEndpointKey, ABKInAppMessageControllerDelegateKey, ABKIDFADelegateKey
Add push notification
Customize InappMessages
Connect with Appsflyer
What did you expect to happen?
Braze SDK is integrated properly and creating sessions.
What happened instead?
Braze SDK makes crashes in rare case.
Steps to reproduce
Add pod 'Appboy-iOS-SDK' to the Podspec file.
Add [Appboy startWithApiKey:inApplication:withLaunchOptions:]; method in application:didFinishLaunchingWithOptions: method in AppDelegate.m.
Report
After we added appboy-ios-sdk to our project, some users reported app crash. The crash logs indicates that crash point is related to appboy sdk, but we couldn't understand what is problem exactly. Currently, the crash occurs rarely so we are not able to reproduce the crash and analyze the reason.
It's happening in variety of os version, devices.
Some additional points we consider are:
Describe your environment.
What did you do?
What did you expect to happen?
Braze SDK is integrated properly and creating sessions.
What happened instead?
Braze SDK makes crashes in rare case.
Steps to reproduce
pod 'Appboy-iOS-SDK'
to the Podspec file.[Appboy startWithApiKey:inApplication:withLaunchOptions:];
method inapplication:didFinishLaunchingWithOptions:
method inAppDelegate.m
.requestAuthorizationWithOptions
,registerForRemoteNotifications
(we just add this code as described in manual)userNotificationCenter
,registerDeviceToken:deviceToken
inuserNotificationCenter
IDFADelegate
classAppDelegate : UIResponder <UIApplicationDelegate, AppsFlyerTrackerDelegate, ABKInAppMessageControllerDelegate, ABKInAppMessageUIDelegate>
onInAppMessageDismissed
,onInAppMessageButtonClicked
,beforeInAppMessageDisplayed
inAppDelegate
Code Snippet
So many codes.. But I wonder some mistaking points make these crash.
We call requestAuthorizationWithOptions:options & registerForRemoteNotifications one more time after this code snippet. Does it affect to app crash?
Are you doing any feature customizations that may relate to the issue? Can you share the code snippet?
Project that demonstrates the issue
https://apps.apple.com/kr/app/bermuda-random-live-video-chat/id1217714999?l=en
But currently we removed sdk from project, so you can't see the problem.
If you need more information to solve this issue, please tell us. We will provide the information as possible.