Description
Currently, encoding operations in the push activation state machine silently ignore errors by passing nil for the error parameter. Specifically, in Source/ARTPushActivationStateMachine.m, the call to encodeLocalDevice:error: passes nil, which means encoding failures are not detected or reported to the state machine.
This could lead to malformed requests being sent if encoding fails, without any error being logged or reported to the user.
Location
File: Source/ARTPushActivationStateMachine.m (around lines 193-205 in the current version)
Backlinks
Recommendation
Capture and handle encoding errors appropriately by:
- Passing a valid error pointer to encoding operations
- Checking for encoding failures
- Logging errors and emitting appropriate failure events when encoding fails
┆Issue is synchronized with this Jira Task by Unito
Description
Currently, encoding operations in the push activation state machine silently ignore errors by passing
nilfor the error parameter. Specifically, inSource/ARTPushActivationStateMachine.m, the call toencodeLocalDevice:error:passesnil, which means encoding failures are not detected or reported to the state machine.This could lead to malformed requests being sent if encoding fails, without any error being logged or reported to the user.
Location
File:
Source/ARTPushActivationStateMachine.m(around lines 193-205 in the current version)Backlinks
Recommendation
Capture and handle encoding errors appropriately by:
┆Issue is synchronized with this Jira Task by Unito