iOS: fix a bug and modify logs
iOS: comment the code of setting badge number to 0, since this may clear all notifications in the tray
iOS: code refactoring, add some log information