Made service a foreground service to stop it being destroyed. Added data decoding to fix the "missing bytes".