I am listening to incoming sms by WakefulBroadcastReceiver, which spawns a WakefulIntentService to log in that sms to google spreadsheet.But the problem is that the Intent service gets killed in between of execution, hence the writing of the sms details to google spreadsheet does not complete.
Is it because of it being a time taking task(>10s)? And if yes then how do I deal with it?
I am using wakefulIntentService because i want to handle the incoming sms event even while device sleeping. Initially I used an asynctask for the same, but that did not work while device was sleeping.