Broadcast Receiver doesn’t work on Activity Recognition Android Kotlin
I’m trying to get activity transition from users on Pixel 2 API 30, Kotlin. The logs from onReceive doesn’t appear, so I guess the fun doesn’t call. It worked only once without changing anything. Class ActivityTransitionReceiver.kt package com.example.licenta_1 import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.util.Log import android.widget.Toast import com.example.licenta_1.placeholder.Constants import com.google.android.gms.location.ActivityTransitionResult import java.text.SimpleDateFormat import … Read more