WhereYouGo :0.9.2
Android: 5.1.1
Cartridge: Own
I'm building my own cartridge and during my field tests, I got some strange behavior. After checking the openWIG Library you're using, I discovered two missing things in the Zone Class:
- Event "OnSetActive": this event should be thrown on a change of the active property (and only the active property). You can use this event on all major builders (Wherigo Builder, Earwigo and Urwigo). This can be easily added in the if-Statement at line 77 of the Zone.java file.
- Property "State" (and "zoneState"): Earwigo and Urwigo use the property name "State" and Wherigo Builder "zoneState". Both property are missing in the openWIG Library. When the zone is active, this property should be set to one of the values "NotInRange", "Distant", "Proximity" or "Inside". This can also be easily added to the method "setcontain" of the Zone Class.
This are in my opinion important corrections.
Tank you!