Notice: You're viewing an old version of the Nylo documentation.
Consider upgrading your project to Nylo 6.x.
Advanced

Scheduler



Introduction

Nylo allows you to schedule tasks in your app to happen once, daily, or after a specific date.

After reading this documentation, you will learn how to schedule tasks in your app.


Schedule Once

You can schedule a task to run once using the Nylo.scheduleOnce method.

A simple example of how to use this method:

Nylo.scheduleOnce('onboarding_info', () {
    print("Perform code here to run once");
});


Schedule Once After Date

You can schedule a task to run once after a specific date using the Nylo.scheduleOnceAfterDate method.

A simple example of how to use this method:

Nylo.scheduleOnceAfterDate('app_review_rating', () {
    print('Perform code to run once after DateTime(2025, 04, 10)');
}, date: DateTime(2025, 04, 10));


Schedule Once Daily

You can schedule a task to run once daily using the Nylo.scheduleOnceDaily method.

A simple example of how to use this method:

Nylo.scheduleOnceDaily('free_daily_coins', () {
    print("Perform code to run once daily");
});