I have previously raised a request to know the what will be the alternate solution to get the list of apps runnning in background in xamarin(Andriod and iOS) since GetRunningTasks is not supporting for higher versions.
I have tried using below code but it says GetRunningTasks is decrepated.
ActivityManager m = (ActivityManager)this.GetSystemService(ActivityService); var runningTaskInfoList = m.GetRunningTasks(10); foreach (var item in runningTaskInfoList) { string first = item.BaseActivity.ShortClassName; string current = item.TopActivity.ShortClassName;
}