<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://blueirissoftware.com/forum/app.php/feed/topic/2946" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2021-12-21T03:02:04+00:00</updated>

	<author><name><![CDATA[Blue Iris]]></name></author>
	<id>https://blueirissoftware.com/forum/app.php/feed/topic/2946</id>

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-12-21T03:02:04+00:00</updated>

		<published>2021-12-21T03:02:04+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11736#p11736</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11736#p11736"/>
		<title type="html"><![CDATA[Push Notifications]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11736#p11736"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br><br>This article discusses how to trouble shoot Push notifications.  <br><br>If you are interested in learning how to create Push notifications or other alerts go to Camera settings -&gt; Alerts tab -&gt; On Alert and click on the <strong class="text-strong">Help button</strong> in the <strong class="text-strong">Action set dialog</strong>.  This will immediately take you to the Alerts and Actions section of Help.<br><br>Furthermore, the Triggers and Alerts section of the online <a href="viewtopic.php?f=23&amp;t=2426" class="postlink">Checklist</a> provides references to articles and webinars for deeper understanding.<br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Troubleshooting</strong></span><br><br>Update to the latest version or the latest stable version of the BI server.  Update to the latest version of the mobile app.  Features/functionality on the mobile app are not guaranteed to run with older versions of the server.<br><br>Divide the problem into server vs mobile app.<br>Did the BI Server send the Push alert?<br><br><strong class="text-strong">Log files</strong><br>The log files will state whether push alerts are being sent from the server.<div style="margin-left:3em"><br>Understanding the logs is key to understanding what is going on.<br><div class="codebox"><p>Code: </p><pre><code>3 12/16/2021 8:30:48.325 AMCam4                MOTION_AB0 12/16/2021 8:30:56.132 AMCam4                DeepStack: Alert cancelled [nothing found] 30ms</code></pre></div>In the above log snippet, Cam4 detected motion at 8:30:48.325.  DeepStack cancelled the alert.  Thus there is no following Push event.<br><div class="codebox"><p>Code: </p><pre><code>3 12/16/2021 8:32:38.420 AMCam4                MOTION_AB0 12/16/2021 8:32:40.975 AMCam4                DeepStack: car:81% [147,273 359,432] 28ms1012/16/2021 8:32:41.238 AMServer              [::]: Connected0 12/16/2021 8:32:41.631 AMCam4                Push: OK to varghesesa’s iPhone1012/16/2021 8:32:41.632 AMServer              [::]: Connected0 12/16/2021 8:32:41.770 AMCam4                Push: OK to Galaxy S10</code></pre></div>In the above log snippet, Cam4 detected motion at 8:32:38.420.  DeepStack identified a car and confirmed the alert.  Thus two Push events fired, one to an iPhone and a second to an Android device.<br><br>Notice with confirmed Alerts, the Push notifications are sent seconds after BI senses Motion.  The gap between the MOTION event and the Alert should not be more than 1-2s.<br><br></div><br> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_question.gif" width="15" height="17" alt=":?:" title="Question"> If the logs state the Push notification was sent, the server settings are fine.  The Mobile app or the Phone has issues.  Skip below section and jump to <strong class="text-strong"><a href="viewtopic.php?f=12&amp;t=2588#Push%20alert" class="postlink">Push alerts</a></strong> section further below.<br><br><strong class="text-strong">No Push alert</strong><div style="margin-left:3em"><br>If you are here, the logs show no Push events.  First confirm the camera is triggering, i.e. Motion events are recorded in the logs.  If not, visit the Triggers and Alerts content in the <a href="viewtopic.php?f=23&amp;t=2426" class="postlink">Checklist</a>.  Some obvious areas to investigate:<div style="margin-left:3em"><br><strong class="text-strong">Cameras</strong><br>Are the cameras working?  <br>See <a href="https://blueirissoftware.com/forum/viewtopic.php?f=11&amp;t=2049" class="postlink">Camera Stream Gotchas</a> article.<br><br><strong class="text-strong">Trigger settings</strong><br>Are you still receiving motion triggers?  The Alerts list will tell you!  Also check the Cancelled alerts folder.  <strong class="text-strong">If not, there is a problem with the Trigger tab.</strong><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2222" class="postimage" alt="clip list_alert.PNG" onclick="viewableArea(this);" /></dt></dl></div></div><br>If the camera does trigger, the BI server settings (global settings, alerts tab) are causing BI to NOT send the Push notification.  This section helps troubleshoot issues associated with the BI server NOT sending Push alerts.  <br><br><strong class="text-strong">Permissions</strong><div style="margin-left:3em">Walk through <a href="viewtopic.php?f=24&amp;t=2943" class="postlink">permissions article</a>.<br></div><br><br><strong class="text-strong">Alerts tab - Action Map</strong><div style="margin-left:3em">If the motion trigger is present, there is a problem with the Alerts tab.<br><br>I would look closely at my Push notification settings.  One common mistake is the Profiles for the alert are NOT active for the Profile you are testing.<br>Camera settings -&gt; Alerts tab -&gt; On Alert.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2223" class="postimage" alt="mobile gotchas action map profiles.png" onclick="viewableArea(this);" /></dt></dl></div><br>If you do not know how to debug alerts, watch the <a href="https://www.youtube.com/c/BlueIrisSupport/videos" class="postlink">Triggers and Alerts webinar</a>.  The information is also available in the Alerts and Actions section of Help (Testing the Action Set).<br><br></div><strong class="text-strong">Alerts tab</strong><div style="margin-left:3em">Alerts are turned off (accidentally) on the camera.<br><br>Revisit the Camera settings -&gt; Alerts tab.  <br>A common mistake is you accidentally turned off Alerts.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2224" class="postimage" alt="mobile devices gotchas_recent alerts.png" onclick="viewableArea(this);" /></dt></dl></div><br>One user accidentally switched Any to All.  With all the Zones checked you are effectively telling BI the Motion had to cross ALL zones for an alert to trigger.<br>I have yet to see a use case where a user had all zones set.  Basically, he cancelled alerts for all motion triggers coming from the motion sensor.</div></div><br> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_question.gif" width="15" height="17" alt=":?:" title="Question"> <span style="font-size:100%;line-height:116%"><strong class="text-strong"><a name="Push alert">Push alert</a></strong></span><br><br>Log states alerts are sent<div style="margin-left:3em"><br><strong class="text-strong">Send alternative alerts</strong><div style="margin-left:3em">Leverage BI functionality to test further.<br>If all of the above permissions are set correctly and Push notifications are still NOT working, then create/test an Email / SMS alert.<br>If those alerts work, then you know the issue probably does NOT reside with your Server permissions or motion trigger settings.<br>This is a strong hint that something is wrong with mobile phone settings or the mobile app.<br><br></div><strong class="text-strong">Apple / Android Push servers</strong><div style="margin-left:3em">It's very possible, the issue could reside with Apple/Android Notification Servers, your mobile device or maybe even your cellular provider.<br>If you created an SMS alert as stated above and the SMS alert is responsive, you can assume BI sent the Push correctly as well.<br><br><strong class="text-strong">Firewall settings</strong><br>Maybe your firewall is blocking ports for Push notifications?  <br>Highly unlikely.  Most firewalls do not prevent outbound traffic.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2226" class="postimage" alt="mobile push ports.png" onclick="viewableArea(this);" /></dt></dl></div><br></div>If issue is still not resolved, include mobile app info to the ticket for BI engineering to review.  <br>See <strong class="text-strong">Next steps / Submitting a ticket</strong> section in <a href="viewtopic.php?f=11&amp;t=2211" class="postlink">Mobile devices article</a>.<br><br><br></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Tue Dec 21, 2021 3:02 am</p><hr />
]]></content>
	</entry>
	</feed>
