Fixed the retry issue on IOS push.
Merge pull request #13 from brian-zhao-bex/error-handle

Fixed the retry issue on IOS push.