Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AntiMap Log: run in background #1

Open
trentbrooks opened this issue Jan 29, 2012 · 3 comments
Open

AntiMap Log: run in background #1

trentbrooks opened this issue Jan 29, 2012 · 3 comments

Comments

@trentbrooks
Copy link
Owner

Need to update both the openframeworks/iphone and processing/android version of the mobile applications so they run in the background. At the moment the app needs to be active to record the stats, so if you accidentally hit the sleep button or something the stats do not record.

This may require a full port from openframeworks to native ios, and from processing to java. Need to do some more research and tests before making this decision.

@atypical
Copy link

Not sure if this is why, but check your plist and make sure that UIApplicationExitsOnSuspend is checked off. When it's on, the app exits entirely when it goes to the background.

@atypical
Copy link

Check this too - http://forum.openframeworks.cc/index.php?topic=5877.0

Love your work on AntiMap btw. Thank you for making it opensource!

@trentbrooks
Copy link
Owner Author

Hey,

Last I checked, I could not get any openframeworks application to 'run in
background' with all sensors running and data being logged - is this what
you were after? I would definitely like to find a solution to this, if you
have tested and know it works I will implement.

Note: in the setup function, line 188, I had...
'ofxiPhoneDisableIdleTimer()' which calls '[UIApplication sharedApplication
].idleTimerDisabled = true;'. Which should be the same thing as mentioned
in the forum post. This only disables the phone from automatically going to
sleep, eg after a minute or two of no interaction.

In the plist, I have 'Application does not run in background' set to 'YES',
this is on purpose until i can find a way to get all sensor data logged
whilst sleeping. I haven't checked it out, but modifying the
ofxiPhoneAppDelegate.mm
might work... http://forum.openframeworks.cc/index.php/topic,5297.0.html

Cheers,
Trent

On Tue, Aug 28, 2012 at 3:38 AM, MDavid Low [email protected]:

Check this too - http://forum.openframeworks.cc/index.php?topic=5877.0

Love your work on AntiMap btw. Thank you for making it opensource!


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-8063696.

Repository owner deleted a comment from Przemocny Feb 19, 2024
Repository owner deleted a comment from Przemocny Feb 19, 2024
@github-staff github-staff deleted a comment from MALIKSHAHID786 Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@atypical @trentbrooks and others