Samsung A-serie 2019 (A30, A40, A50, A70)

Open phone settings, select "Apps" item.

Find "Speedtrap Alert" in apps list and select it.

Click "Battery" option.

Make sure that "Allow background activity" is checked.