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 Command

Featured Replies

Posted

So I set up a Geofence with simple Enter and Exit commands, but the Enter command doesn't seem to work.  I want to set the value of a state variable to 1 when I enter, and set it to 0 when I exit.  But for some reason UD Mobile doesn't allow me to enter the correct value for config.

Steps I followed:

  • Edit the Geofence
  • Click on Command Value, brings up popup
  • Click on Value
  • Click on value 0 to bring up value entry window
  • Click on the existing 0, change it to 1, click Save
  • Window now shows Value 1, click Save
  • Click Save in upper right corner
  • Back to Geofence screen, under Enter Commands it shows "SET Value, Value = 0 ()".  I click Save anyway.
  • Now when I exit and enter the geofence, the value never changes to 1.  I can manually set the state var to 1 and it changes to 0 when I leave, but never changes to 1 when I enter
  • Just for kicks, if I go back to the Enter Commands selection to look at the value, the window shows 0 still - don't know if this is supposed to represent a default or show the current value.

Anyway, this seems like a UD Mobile Geofence setup bug?

 

14 minutes ago, peterathans said:

So I set up a Geofence with simple Enter and Exit commands, but the Enter command doesn't seem to work.  I want to set the value of a state variable to 1 when I enter, and set it to 0 when I exit.  But for some reason UD Mobile doesn't allow me to enter the correct value for config.

Steps I followed:

  • Edit the Geofence
  • Click on Command Value, brings up popup
  • Click on Value
  • Click on value 0 to bring up value entry window
  • Click on the existing 0, change it to 1, click Save
  • Window now shows Value 1, click Save
  • Click Save in upper right corner
  • Back to Geofence screen, under Enter Commands it shows "SET Value, Value = 0 ()".  I click Save anyway.
  • Now when I exit and enter the geofence, the value never changes to 1.  I can manually set the state var to 1 and it changes to 0 when I leave, but never changes to 1 when I enter
  • Just for kicks, if I go back to the Enter Commands selection to look at the value, the window shows 0 still - don't know if this is supposed to represent a default or show the current value.

Anyway, this seems like a UD Mobile Geofence setup bug?

 

Hi @peterathans,

I cannot replicate this behavior so please first verify you have the latest app version as I believe there was an edit bug in an initial release. Then try synchronization in case anything has changed with the system. 

 

If that does not work: Is this iOS or Android?  State or integer variable? 

  • Author

I'm running 1.0.24.

Running iOS 16.3, modifying a state variable.

Can you verify synchronization was done?  

The values for enter and exit commands are the commands sent. 

Just tested and I can set and edit both Enter and Exit commands for State variables, can you share a screen shot of the same screen?

47945.jpg

  • Author

Yeah that's the problem, the first arrow you show "Value = 1 ()" I can never get to show anything but "Value = 0 ()".  Maybe I'm not entering the value correctly?  Shouldn't be much room for error with a simple value dialog box.

And yes synchronization was done, because this is a new state variable that I added just for testing UD Mobile geofence.  I added it using the admin console then did a synchronize at UD Mobile to get the variable to show up.

Edited by peterathans
Added second paragraph

Sorry to keep pressing this, but have you synchronized?

If that does not work please open a ticket and include a zipped copy of the App's Backup file or Send the file to me via Private Message and I'll try to replicate.

  • Author

Yeah the first thing I did was add a new state var and synchronize - I PM'd the backup file just now.

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.