BroadcastReceiver Samsung Galaxy Watch 4

Hi, all
In my app I have receiver which should start service after such intent: (BOOT_COMPLETED, QUICKBOOT_POWERON)

    <receiver
        android:name=".service.TrackingServiceBroadcastReceiver"
        android:exported="true"
        android:enabled="true">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <action android:name="android.intent.action.QUICKBOOT_POWERON" />
        </intent-filter>
    </receiver>

Class receiver:

class TrackingServiceBroadcastReceiver : BroadcastReceiver() {
   override fun onReceive(context: Context?, intent: Intent?) {
    Toast.makeText(context, "Receiver intent ${intent.toString()}", Toast.LENGTH_LONG).show()
    if (intent?.action.equals(Intent.ACTION_BOOT_COMPLETED)) {
        val trackingIntent = Intent(context, TrackingService::class.java)
        context?.startForegroundService(trackingIntent)
        Log.i(">>>>> SERVER START", "START?????")
    }
}

}

When watch reboots or switch on, this intent doesn’t work (
Any suggestions, pls)

Hi,
As far as I know, there are some restriction applied on Samsung Galaxy Watch4 for using Foreground service. And this is decided by both Samsung and Google. You can try with AlarmManager instead of foreground service. As I did not try this, so can not confirm that it will work for sure, but you can try once.
This link may help you to implement with Alarm Manager:
https://stackoverflow.com/questions/44188455/how-to-start-broadcastreceiver-in-boot

Please share the result or your findings here, so that others can also get help from your answer.

Thanks.