<applicationContext.getSystemService(SmsManager::c...
# stackoverflow
u
applicationContext.getSystemService(SmsManager::class.java) returning null inside a Service Viewed quite a few similar questions so far, but none ended up a solution. I'm trying to start up a foreground service in order to handle SMS messaging. This service is started when the app is first opened and does work on background threads via kotlin coroutines. This process remains active even when the app has been closed. I'm not too well versed on the various Contexts, but I would have thought applicationContext would exist for the lifetime of the app, but the call I make to get the...