The stop() method runs on the EDT, and might occur after iOS has "snapped" a screenshot of your app to use in the task bar. It works this way to give you a little bit more time inside stop() before iOS will cut your app off.
One thing you could try is to register a handler for the DidEnterBackground event in NSNotificationCenter ( https://developer.apple.com/documentation/foundation/nsnotification.name/1623071-uiapplicationdidenterbackground), in which you show some sort of native dialog in front of the app screen. Steve On Tue, Jun 6, 2017 at 11:22 AM, <[email protected]> wrote: > Hi > > I'm trying to change what's displayed on the current Form when the app > enters into background so I can hide sensitive information from the snap > shot. Doing what Apple suggests here https://developer.apple.com/ > library/content/qa/qa1838/_index.html > > Whatever I do to the currentForm inside stop() seem to take effect after > it resumes. I tried removeAll components or adding an image but it only > shows after the app is resumed. Is there a way to manipulate the form like > in the above article? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/ > group/codenameone-discussions. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/codenameone-discussions/5da91d76-cfbd-4733-91b9- > 7dbe70e2192c%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/5da91d76-cfbd-4733-91b9-7dbe70e2192c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWpC05TmuWxdZ4AYaJt_EDbnjKYfXfGT9oak771tvgoBQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
