In onReceivedData, renamed argument rawData to data.