Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Geofence Enter/Exit Command to run a program

Featured Replies

Posted

I looked in the UD Mobile wiki for the answer to this but didn't see it.  I know I can ADD an Enter and/or EXIT comment for UD Mobile geofence that will run an AC defined program.  There are 3 parameters: 

  • Node: which is the program name
  • Command: Enabled appears to be the default
  • Enabled: True appears to the be the default

For Command: The options are Enabled, Run at Startup, Run If, Run Then, Run Else, & Stop. I assume these all directly correspond to their right click counterparts in the AC and that Enabled means the program will run if executed. Correct? Is there a good example of why I'd choose something other than Enabled? 

For Enabled: Is this different than the Enabled under Command?  It's a bit confusing. 

Thanks. 

Solved by Javi

Go to solution
  • Solution

The "Enabled" Command for a program Enables (True) or Disables (False) the program.  This will not run the program.

Depending on how the program is setup, you likely want Run IF, Run Then, or Run Else command which will run the program.

 

I needed something to do, so I started testing the UD Mobile Geofence function.  Very easy to setup and it is doing its thing. Upon exiting the zone, a variable GEO_SW is being set to 0, entering the zone to 1.  Program GEO TEST MSG is being used to send a UD Mobil message with the state of the value. So far, very impressed.  Will use to turn on my garage lights after sunset at some point.  

IMG_2678.thumb.PNG.9197375e5058c9802fe647ee79bebb88.PNG

 

GEO TEST MSG - [ID 0050][Parent 004E]

If
        $GEO_SW is 1
 
Then
        Set 'SERVER - NOTIFICATION / Notification Controller / UD Mobile' Send Message Content 42 Notification ID (ID=42)
 
Else
        Set 'SERVER - NOTIFICATION / Notification Controller / UD Mobile' Send Message Content 42 Notification ID (ID=42)
 

Edited by TUhl01

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.