CustomizationHelper.m also
includes stub implementations of onHybridAppTokenError and onHTTPError that you can implement. The onHybridAppTokenError
method is called when Hybrid App token authentication failure occurs, so it is a good
idea to use this callback as an opportunity to refresh the HTTP headers again. A
common way to do this is to maintain member variables that contain the values for the
headers you want to set. Implement the setHttpHeaders function to use the values in those member variables
when it sets the headers, then, in onHybridAppTokenError, you can update the member variables with the new
header values, and then call setHttpHeaders again,
for example:
[[CustomizationHelper getInstance]
setHttpHeaders];