TODO: get inbox count to reset iOS badge number.
Slight error handling.
Clean up notification JSON formatting.