<div dir="ltr"><div dir="ltr"><div>If I suggested opt-in settings aren't working, that was not my intention, sorry about that.</div><div><br></div><div>I just meant that, if hemlock.push_notification_data is a string token, that particular setting won't work as an opt-in setting, because it won't be strictly true.</div><div><br></div><div>But, maybe we can use an additional boolean setting, like Michele's, as an opt-in setting, and use hemlock.push_notification_data in the CallHTTP template.</div><div><br></div><div>As for the question of whether opt-in settings work at all in active hooks, I believe they do. I think the method with the ignore_opt_in suffix is only used for certain situations, for example sending an email checkout receipt from the staff client: <a href="https://github.com/evergreen-library-system/Evergreen/commit/7e3a8e2c61f4ee24317d11d478930851671b1c1d">https://github.com/evergreen-library-system/Evergreen/commit/7e3a8e2c61f4ee24317d11d478930851671b1c1d</a>.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jan 23, 2025 at 11:46 AM Ken Cox via Eg-newdevs <<a href="mailto:eg-newdevs@list.evergreen-ils.org">eg-newdevs@list.evergreen-ils.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Jan 23, 2025 at 11:31 AM Morgan, Michele via Eg-newdevs<br>
<<a href="mailto:eg-newdevs@list.evergreen-ils.org" target="_blank">eg-newdevs@list.evergreen-ils.org</a>> wrote:<br>
> As I reported earlier, I did have success using the opt-in setting in an action trigger definition using the checkout.due hook.<br>
> The difference in my test was the value field in actor.usr_setting was set to the string true.<br>
> ...<br>
> So setting the value for the hemlock.push_notification_data to the string true should work for action triggers using passive hooks.<br>
<br>
So that explains it!  Interesting experiment, but not practical for<br>
this purpose, because the hemlock.push_notification_data contains the<br>
actual Firebase Cloud Messaging token needed to send a notification to<br>
a specific device.<br>
<br>
Ken<br>
_______________________________________________<br>
Eg-newdevs mailing list<br>
<a href="mailto:Eg-newdevs@list.evergreen-ils.org" target="_blank">Eg-newdevs@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/eg-newdevs</a></blockquote></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div></div></div></div></div></div></div>