Skip to content

Fix bug using surveys with iOS6.

Compare
Choose a tag to compare
@alex-hofsteede alex-hofsteede released this 05 Dec 23:51
· 2479 commits to master since this release

This release fixes a bug in version 2.2.0 of the Mixpanel library where surveys shown iOS6 devices would cause an application crash.

Cause

We switched to using boundingRectWithSize:options:attributes:context: instead of the deprecated sizeWithFont: without doing a runtime check to see if the feature was supported on the user's device.

Affected users

Users were affected if all the following conditions were met.

  • The user was running iOS6
  • They were running an app using Mixpanel library v2.2.0
  • They were shown a survey

Solution

This release (2.2.1) fixes the issue in the Mixpanel library. We have also modified our server code so that affected users will not be shown surveys, and will therefore not encounter the bug.