Ticket Created
over 3 years ago

CIQQA-788

triggering onTemporalEvent works bad

windows, sdk 4.0.6

Now when I choose from simulator's menu background events it simple call onTemporalEvent even there is no such event waiting to handle!

This command should only speed up the call  of onTemporalEvent if I previously called registerForTemporalEvent.

Now I have to write some code to prevent situations that are not possible in reality and of course have to use annotation debug/release (2 functions - and remember about changes in both \) if i want to save memory.

Parents
  • How much have you done with a background service?  I don't think what you see is a bug, but actually a feature.  

    With the menu in the sim you can trigger a temporal event at any time, and not have to wait for the registered time for it to run.  You can't do something like it on a real device, as it's something to speed up development,  If you only want the background to run based on the registered time/duration, don't use the menu in the sim.  Also, understand that the registered time is based on when you first register the event, not when you start your app in the sim.

    Real devices are different in other ways, where a background can run multiple time when the main app isn't running.  An example is if you are recording a run, the temporal event will run as scheduled, but the main app doesn't run.  If you are running a CIQ device app, the temporal event won't run at all

Comment
  • How much have you done with a background service?  I don't think what you see is a bug, but actually a feature.  

    With the menu in the sim you can trigger a temporal event at any time, and not have to wait for the registered time for it to run.  You can't do something like it on a real device, as it's something to speed up development,  If you only want the background to run based on the registered time/duration, don't use the menu in the sim.  Also, understand that the registered time is based on when you first register the event, not when you start your app in the sim.

    Real devices are different in other ways, where a background can run multiple time when the main app isn't running.  An example is if you are recording a run, the temporal event will run as scheduled, but the main app doesn't run.  If you are running a CIQ device app, the temporal event won't run at all

Children
No Data