Nook Color - Overriding Inactivity Suspension

I got this note from the B&N approval team about our first app submissions:

“Rejected: Your application overrides the internal suspension mechanism when on a Nook Color. Our devises are set to suspend after 2 minutes of inactivity yet had not suspended after 5+ minutes. Please make sure your application allows user’s devises to suspend according to their settings and resubmit.”

I was wondering if anybody might now how we would be able to go about fixing this?
We are using Corona for the apps, and I would think that allowing the device to suspend due to interactivity would be the default for an app. I don’t believe we are adding anything in our code to override this internal suspension mechanism.

On a Nook Tablet that we are testing on, the device suspends properly after 2 minutes of inactivity.
We do not have a Nook Color to test on, but if any of you have an idea on what might be causing this with our apps, your feedback would be greatly appreciated!

Thanks in advance! [import]uid: 42083 topic_id: 27881 reply_id: 327881[/import]

Well to turn the idle off usually you use:

system.setIdleTimer( false )

So I’d assume you have that somewhere, or that setting it to true would stop this from happening. [import]uid: 10903 topic_id: 27881 reply_id: 112848[/import]

Thanks crssmn - we did check all of our code for this system.setIdleTimer call and we are not using it in main.lua or any of the other .lua files of the app. Any other ideas? It definitley seems to happen only on the Nook Color and not on the Nook Tablet. [import]uid: 42083 topic_id: 27881 reply_id: 112891[/import]

There may be a build settings option, I would check there. If not try saying

system.setIdleTimer( true )

and see what happens. [import]uid: 10903 topic_id: 27881 reply_id: 112897[/import]

What a truly enlightened yet straightforwardly simple idea!
Thanks! It should be true by default, but we’ll definitely try setting it to true.
Just, somewhere at the top of main.lua I suppose… [import]uid: 42083 topic_id: 27881 reply_id: 112906[/import]

ranflas,

I just tested build 840 on our Nook Color and the device correctly went to sleep after 2 minutes of inactivity while the Corona app was running. So, it doesn’t look like a bug on our end. I suspect one of the following is the issue:

  1. The setIdleTimer() is being set false somewhere in the code, like crssmn was saying. Perhaps in a 3rd party Lua library that you are using?

  2. The Nook app reviewers messed up and their screen timeout on the Nook Color is set higher than 2 minutes. [import]uid: 32256 topic_id: 27881 reply_id: 113082[/import]

Thanks Joshua - we’ve resubmitted the apps that were rejected, this time using build 840 and with the system.setIdleTimer(true) line of code added at the top of main.lua

Hopefully the reviewers will get the result they are looking for with the screen timeout and approve the apps for sale.

I appreciate your help with testing on the Nook Color!
[import]uid: 42083 topic_id: 27881 reply_id: 113126[/import]

Just wanted to let you all know that the resubmitted apps have been approved by B&N.
I am assuming that using the latest stable build 840 is what fixed the issue, though I’m sure it didn’t hurt to include the system.setIdleTimer(true) line of code.

Very excited to officially be a Nook Developer now, all thanks to Corona!
Thanks everyone for your help! [import]uid: 42083 topic_id: 27881 reply_id: 113223[/import]

Glad your app was accepted. Congrats!

Oh and our idle timer was never broken. There’s no magical fixes in build 840 related to the feature. I think the B&N app reviewers must have forgotten that they set the screen timeout to something higher than 2 minutes on their Nook Color. That’s the only explanation that I can think of. [import]uid: 32256 topic_id: 27881 reply_id: 113233[/import]

Hi All - I am glad I found this thread.

Just want to let you know that our latest submission (using build 840) was also rejected by NOOK. I double checked our code and we don’t set the idle Timer at all (so we left it at default). I am going to explicitly system.setIdleTimer(true) and resubmit…

[import]uid: 41124 topic_id: 27881 reply_id: 115455[/import]

Good luck! [import]uid: 42083 topic_id: 27881 reply_id: 115460[/import]

I had the same issue recently too, and will try this quick fix! I am sure it will work. Will report once I get either rejected or accepted!

Thank you all for all your support. This is what makes Corona SDK the best in the World :slight_smile: [import]uid: 75258 topic_id: 27881 reply_id: 115524[/import]