I'm trying to set up a macro that will fire when a particular notification is present in my notification bar. The problem is that it does not consistently detect this notification or any notifications.
First, sometimes the app doesn't fire at all because it appears that it's been shut down. If I start the app it will then start noticing the notifications. I did turn off power optimization for this app but that still isn't solving the problem. Some aspect of my phone appears to be killing this app randomly and I'm not sure why.
Second, and the main issue, is that sometimes even when the app is running it will not recognize that there's a notification present. I have it set up to only notice certain applications and even certain types of notifications from those applications. However, even if I set it up to trigger on ANY notification from ANY app it still doesn't fire even when a notification is present in the bar. However if I set it to trigger when NO notifications are present, the trigger will fire even when a notification is sitting right there in the notification bar. So I know the problem is that it simply isn't recognizing notifications that are there. I can deal with the first issue because it's only occasionally that the app gets shut down. It's this issue that's really a problem since the app is running but it simply isn't doing what I want it to do because it doesn't recognize any notifications. In other words, if I could only get one of these issues fixed, it would be this one.
Any ideas would be appreciated.
First, sometimes the app doesn't fire at all because it appears that it's been shut down. If I start the app it will then start noticing the notifications. I did turn off power optimization for this app but that still isn't solving the problem. Some aspect of my phone appears to be killing this app randomly and I'm not sure why.
Second, and the main issue, is that sometimes even when the app is running it will not recognize that there's a notification present. I have it set up to only notice certain applications and even certain types of notifications from those applications. However, even if I set it up to trigger on ANY notification from ANY app it still doesn't fire even when a notification is present in the bar. However if I set it to trigger when NO notifications are present, the trigger will fire even when a notification is sitting right there in the notification bar. So I know the problem is that it simply isn't recognizing notifications that are there. I can deal with the first issue because it's only occasionally that the app gets shut down. It's this issue that's really a problem since the app is running but it simply isn't doing what I want it to do because it doesn't recognize any notifications. In other words, if I could only get one of these issues fixed, it would be this one.
Any ideas would be appreciated.