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

Use single instance for Core Telephony network info #111

Conversation

ghugues
Copy link
Contributor

@ghugues ghugues commented Feb 6, 2021

Description

Currently this SDK creates a new instance of CTTelephonyNetworkInfo on every hit. This can cause performances issues and crashes. This issue has already been discussed publicly and fixed on several open-source SDKs. See :
https://stackoverflow.com/questions/14238586/coretelephony-crash
flurry/flurry-ios-sdk#200
amplitude/Amplitude-iOS#13

Solution

Use a single shared instance of CTTelephonyNetworkInfo.

@ghugues ghugues force-pushed the fix/single-core-telephony-instance branch from e06d5d9 to 90e9552 Compare February 6, 2021 08:50
@nsagnett
Copy link
Contributor

Thanks for your feedback ! your suggestion has been added in 2.23.0 release (5ae3532#diff-7a9f9cf818db945492fb65614f44dadbe21b3e45887f386dd0d23b0a78f7b361)

@nsagnett nsagnett closed this Mar 30, 2021
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

Successfully merging this pull request may close these issues.

2 participants