I don't think that there is a way to do this without special privileges. Have you thought about not making the user restart the app?
On Mon, Oct 21, 2013 at 3:05 PM, Elvis Pfutzenreuter <[email protected]> wrote: > Is there any way for an app to close itself? I found things like > attributing a new URL to location.href, but this keeps the new > URL opened under app's "shell". > > Context: if app receipt validation fails, the user needs to make > some action (e.g. enabling network, installing from Marketplace) > and then restart the app. It would be best if the app closes instead > of forcing the user of using the long-press on Home button. > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g > -- Best, Gareth _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
