it might be late @vishal_ratna , but i guess the exception was regarding the RemoteServiceException and your suggest throws RemoteException. I also faced similar exception and the message is
Bad notification for startForeground
but couldn't reproduce either way.