Remind your users to give your app a like!
PHP JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
web
LICENSE
README.md

README.md

Remind

About

Remind is a simple library to remind your users to give your app a heart. A day after the user installs your app they will receive a timeline pin reminding them to heart your app.

Setup

Ensure your application is setup to use Pebble Timeline

Copy the contents of lib/reminder.js to the top of your pebble-app-js.js file. In your ready event call Reminder.remind({..params...})

NOTE: Reminder makes use of a timeline launchcode of 125435 to allow the user to open the app.

A Reminder Object accepts the following parameters

Name Type Argument Default Description
app string (required) The name of your app
message string (optional) Please give %app% a heart if you like it! Thanks! The message to send your users
time PHP DateInterval formatted string (optional) 1 Day The time to wait before the reminder is shown

Example:

//Remind code here
Pebble.addEventListener('ready', function() {
    Reminder.remind({
        app: 'Demo', //Required
        message: 'Please like my awesome app :P', // Optional - A custom message to send your users when reminding them
        time: 'P1W2DT3H5M' //Optional - 1 week, 2 days, 3 hours and 5 minutes
    });
}

Uses PHPebbleTimeline to push the pins