Before this release, the SDK could cause an uncaught exception on certain Android implementations, when scheduling a future poll request under certain situations. This fix extends a previous fix implemented in the 2.9.1 release of the SDK, which catches SecurityExceptions thrown by the alarm manager when registering an alarm for the next poll. This SecurityException was introduced by Samsung on their Lollipop and later Android implementions, and is thrown when the application has at least 500 existing alarms when registering a new alarm. After recent reports of the alarm manager throwing an IllegalStateException rather than a SecurityException under the same conditions but different Android implementations, this release broadens the exception handling when scheduling a poll request to safeguard against other exception types.
[2.14.1] - 2021-01-14
Fixed
SecurityException
s thrown by the alarm manager when registering an alarm for the next poll. ThisSecurityException
was introduced by Samsung on their Lollipop and later Android implementions, and is thrown when the application has at least 500 existing alarms when registering a new alarm. After recent reports of the alarm manager throwing anIllegalStateException
rather than aSecurityException
under the same conditions but different Android implementations, this release broadens the exception handling when scheduling a poll request to safeguard against other exception types.