What would be the best way of linking a broadcast receiver to a Composable? At first I thought the best idea would be to use a live data / android viewmodel scenario, but
this does not seem to work (unless I am doing it wrong): my values are always null on arrival. I also tried to simply pass the broadcast receiver data into a function and
send that to my Composable. My values are updated when I use the function (using a Toast message) outside the Composable, but not when I pass the values to the Composable. Any ideas?