package info.nightscout.androidaps.receivers import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import info.nightscout.androidaps.plugins.general.persistentNotification.DummyService class AutoStartReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { if (intent.action == Intent.ACTION_BOOT_COMPLETED) context.startForegroundService(Intent(context, DummyService::class.java)) } }