native.requestExit() with timer?

Hi

Am just implementing the Google Play licensing code in my app and am following the tutorial here: http://coronalabs.com/blog/2013/03/26/androidizing-your-mobile-app/

I have the following code …

if not event.isVerified then --failed verify app from the play store native.requestExit() --assuming this is how we handle pirates end

… which will just immediately close the app. Can the exit request be put on a timer.performWithDelay so there’s time to display a message?

thanks,

David

You could easily change the native.requestExit() to a native.showAlert() (or however you want to handle it) and then in the native.showAlert()'s handler call native.requestExit() then. 

Rob

You could easily change the native.requestExit() to a native.showAlert() (or however you want to handle it) and then in the native.showAlert()'s handler call native.requestExit() then. 

Rob