NovaOS
GithubHomeLaunchNeed help?
  • Welcome to NovaOSđź‘‹
  • Get started
    • Access NovaOS
  • How to
    • NovaOS How To
      • Setting a custom wallpaper
      • Changing default openers
      • Using default apps
        • Nova Files App
      • Data recovery
      • Using the Tasks Dock
    • Publish to Nova Store
    • Protips
    • Feedback and suggest
    • Support NovaOS
  • docs
    • Basics
      • Introduction
      • Timing
      • File system
        • Overview on files
        • File management
      • User choices
        • Settings Keys
        • Choose files
      • Managing self
        • The Open Launch Protocol
        • The EventBusWorker
    • Standards
      • Styling standards
      • Error standards
    • Networking
      • Rotur In NovaOS
    • Features
  • References
    • The NovaOS Check list
    • Methods
      • Database management
      • File management
    • NTX Actions
    • Projects
  • Epic
    • Achievements
Powered by GitBook
On this page

Was this helpful?

  1. docs
  2. Basics

Timing

Green Flag Request

The greenflag serves as a prompt dispatched precisely during post application launch. It functions as an app instigator, managing the initial execution of the application. On a more pragmatic level, greenflag is simply a function, dedicated to run the script content of the application during app launch. The greenflag request delineates the procedural pathway through this function, which, in turn, is invoked by the App launcher directly into the application WebView. (Every app has their own unique greenflag broadcast, they will not interfere.)

But, from NovaOS 1.5, the greenflag function is not required for an application, and orphaned scripts will get executed in order.

Sample code:

function greenflag() {
  initialiseUI();
}
PreviousIntroductionNextFile system

Last updated 6 months ago

Was this helpful?