Javi Posted June 29, 2022 Posted June 29, 2022 1 hour ago, Geddy said: @Javi - is it possible to add the option to select all notifications on the app history log and delete them? Currently you have to swipe them out individually (two steps) or if you hit the trashcan then hit the minus then delete (three steps). Would love if you hit the trash can and a select all option came up or instead of each notification having the minus sign make a check box then trash all selected. Other side of that...is it even necessary to have the notification history in the app? If I've cleared it out of the notification area on the phone it's been received. Why must it also be kept in the app? Just like to clean them out and I don't get many notifications...I feel the pain for those that gets lots of notifications. Added delete all to the list, on iOS there is also a third option of swiping all the way to the left which takes it down to one step. @Steve L's issue is common, for this reason history exists. Notifications older than 3 months will be deleted automatically. There is also an acknowledgement parameter, if the notification in the list has a filled circle by the icon the notification has not been acknowledged. 2
Steve L Posted June 29, 2022 Posted June 29, 2022 Can you explain Notification Groups? I can't figure out what the use model is.
Javi Posted June 29, 2022 Posted June 29, 2022 17 minutes ago, Steve L said: Can you explain Notification Groups? I can't figure out what the use model is. https://wiki.universal-devices.com/index.php?title=UD_Mobile#Group_Setup Basically you add a group in the groups section (bottom of the settings page), then click on one of the devices (devices section is above groups section), then enable membership in the group from the Device page.
Steve L Posted June 29, 2022 Posted June 29, 2022 Thanks, but what I wanted to know is WHY I would want to use a group - what's it for? When would using a group be appropriate?
Javi Posted June 29, 2022 Posted June 29, 2022 4 minutes ago, Steve L said: Thanks, but what I wanted to know is WHY I would want to use a group - what's it for? When would using a group be appropriate? To send a notification to a group of devices instead of all devices. or Although not included on the wiki you can send a notification to an individual device. The issue with this is when you change phones the device id changes, so you would have to change all the notification to match the new id. If you create a group for your device, when you get a new phone you will just have to add the device to the group instead of changing all notification to match the new id. 1 1
Steve L Posted July 1, 2022 Posted July 1, 2022 Feature request (if not already done). Is it possible to add variables to the body of the message? For example, I have a notification for "Door unlocked by keypad". I'd love to be able to add the user number to the message. I know I can set up separate conditions (and notifications) for each user with if..and.., but it would be nice to not have to do that for multiple users.
Javi Posted July 1, 2022 Posted July 1, 2022 This is possible with both network resources or using a Node Server. Both options require Admin Console setup as this has not yet been added to mobile UI. EDIT: Added instructions to our wiki here: https://wiki.universal-devices.com/index.php?title=UD_Mobile#Variable_Substitution Network Resources: Network resource variable evaluation is on a seperate thread and is evaluate when run. So if this is triggered by a program and the variable changes before evaluation the new value will be shown. This is not the case when using the Node Server https://wiki.universal-devices.com/index.php?title=ISY-994i_Series:EMail_and_Networking_Substitution_Variables title=My Test Title&body=My Test Body ${sys.time} Node Server: Node Server developers can use the subject line of the current Notification framework. The Notification Node Server recently added UD Mobile notifications with this parameter. See the following post for an example. The notification node server allows users to use the Notification Subject Line. This is evaluated during program run so does not have the same issues as network resources. 1
Steve L Posted July 1, 2022 Posted July 1, 2022 Thanks - so if I understand this correctly, the following body should work? It may be a bit before I can test this. title=Door Unlock KP&body=Door unlocked by user $(sys.node.ZW007_1.USRNUM)&sound=sms_notification.wav
Javi Posted July 1, 2022 Posted July 1, 2022 22 minutes ago, Steve L said: Thanks - so if I understand this correctly, the following body should work? It may be a bit before I can test this. title=Door Unlock KP&body=Door unlocked by user $(sys.node.ZW007_1.USRNUM)&sound=sms_notification.wav Looks correct, you can test the network resource and see the result.
Steve L Posted July 1, 2022 Posted July 1, 2022 It didn't do the substitution. I thought maybe I needed to specify the node for Access Control (ZW007_306N001), but still no substitution. I get the literal text. This is what Admin shows: I then tried using $(sys.time), as in the example, and got no substitution either, so I'm obviously missing some key thing. Here's the resource for that test:
Javi Posted July 1, 2022 Posted July 1, 2022 3 minutes ago, Steve L said: It didn't do the substitution. I thought maybe I needed to specify the node for Access Control (ZW007_306N001), but still no substitution. I get the literal text. This is what Admin shows: I then tried using $(sys.time), as in the example, and got no substitution either, so I'm obviously missing some key thing. Here's the resource for that test: This is only substituted when sent. Update -> Save (single resource) -> Save (all resources) -> Click the name of the resource -> Test
Steve L Posted July 1, 2022 Posted July 1, 2022 I did do the test, as well as actually triggering the notification from a program - no difference. Tried a couple of other things. $(sys.time) works in an email notification, but USRNUM doesn't. Perhaps USRNUM is not the right thing to use here, but I don't know what else would be. Is there a way from admin to see what values are available? Door was unlocked by user $(sys.node.ZW007_1.USRNUM) $(sys.node.ZW007_306N001.USRNUM) at 1:58:32 PM $(sys.time) doesn't work in a resource notification.
Javi Posted July 1, 2022 Posted July 1, 2022 Invalid chars use "{}" not this "()". Copy the resource body I posted and it should work. 1
Steve L Posted July 1, 2022 Posted July 1, 2022 Augh! Yes, that was it. All working now. I'll blame my ancient eyes.
sjenkins Posted July 7, 2022 Posted July 7, 2022 @Javi just want to say what a wonderful job you have done with the notifications (sound, delete, groups!!!). I am slowly moving from my prowl push service (over 10years with it) to the app. One 'low level' request. I use the notifications a lot to let me know what is going on. would me 'nice' if when you looked at the notification it would become 'not new'. Means you do not need to ack every notifications just go into the app every so often to view them and scroll through them. Now I tend to delete them as its quick but I lose my history then. Again, great job. This app keeps getting better faster than I can implement the improvements! 2
Javi Posted July 7, 2022 Posted July 7, 2022 Hi @sjenkins, Added request to our issue tracker https://github.com/UniversalDevicesInc/UD-Mobile-iOS/issues/64
Recommended Posts