add Android onmessage logic for hot/cold start