Also I made this tasker project for the Hik Connect app notifications which will automatically silence and dismiss the notifications during certain hours that can be reconfigured, and also includes a quick setting toggle so you can turn on and off the notifications at your will. It does not mess with the android notification status for the app, so the app won't nag you to turn on notifications or not which was one of things that I also thought was corrupting the app and causing the problem
Project: LPR alerts quick button
Profiles
Profile: Motion Alerts: Quick Button Setup
Event: Monitor Start
Enter Task: LPR Alerts: Quick Button Setup
A1: If [ %LPRAlertsAreEnabled ~ true ]
A2: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Active
Can Use On Locked Device: On ]
A3: Else
A4: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Inactive
Can Use On Locked Device: On ]
A5: End If
Profile: Nighttime
Time: From 9:00PM Till 8:59AM
Enter Task: LPR Alerts: Disable
A1: AutoNotification Categories [
Configuration: Manual Apps: com.connect.enduser
Importance Or Disable: None (Disabled)
Timeout (Seconds): 60
Structure Output (JSON, etc): On ]
A2: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Inactive
Can Use On Locked Device: On ]
A3: Variable Set [
Name: %LPRAlertsAreEnabled
To: false
Structure Output (JSON, etc): On ]
Profile: Daytime
Time: From 9:00AM Till 8:59PM
Enter Task: LPR Alerts: Enable
A1: AutoNotification Categories [
Configuration: Manual Apps: com.connect.enduser
Importance Or Disable: High
Timeout (Seconds): 60
Structure Output (JSON, etc): On ]
A2: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Active
Can Use On Locked Device: On ]
A3: Variable Set [
Name: %LPRAlertsAreEnabled
To: true
Structure Output (JSON, etc): On ]
Tasks
Task: LPR Alerts: Enable
A1: AutoNotification Categories [
Configuration: Manual Apps: com.connect.enduser
Importance Or Disable: High
Timeout (Seconds): 60
Structure Output (JSON, etc): On ]
A2: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Active
Can Use On Locked Device: On ]
A3: Variable Set [
Name: %LPRAlertsAreEnabled
To: true
Structure Output (JSON, etc): On ]
Task: LPR Alerts: Quick Button Setup
A1: If [ %LPRAlertsAreEnabled ~ true ]
A2: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Active
Can Use On Locked Device: On ]
A3: Else
A4: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Inactive
Can Use On Locked Device: On ]
A5: End If
Task: LPR Alerts: Disable
A1: AutoNotification Categories [
Configuration: Manual Apps: com.connect.enduser
Importance Or Disable: None (Disabled)
Timeout (Seconds): 60
Structure Output (JSON, etc): On ]
A2: Set up Quick Setting Tile [
Number: 3rd
Task: LPR Alerts
Status: Inactive
Can Use On Locked Device: On ]
A3: Variable Set [
Name: %LPRAlertsAreEnabled
To: false
Structure Output (JSON, etc): On ]
Task: LPR Alerts
<This is a task for a manual quick button toggle. It needs to be named the same as the button>
A1: Anchor
A2: If [ %LPRAlertsAreEnabled eq true ]
A3: Perform Task [
Name: LPR Alerts: Disable
Priority: %priority
Structure Output (JSON, etc): On ]
A4: Else
A5: Perform Task [
Name: LPR Alerts: Enable
Priority: %priority
Structure Output (JSON, etc): On ]
A6: End If