Show:

Users.AppUser Class

Extends Base.Users.AppUser
Module: Users

Class representing 'AppUser' rows in the 'Users' database

Constructor

Users.AppUser

(
  • fields
)

Parameters:

  • fields Object

    The fields values to initialize table row as an associative array of {column: value} pairs

Methods

handlePushNotification

()

This is the default implementation. Please override it in your adapter classes.

pushNotification

(
  • notification
)

Pushes a notification to the user on an external platform

Parameters:

  • notification Object
    • alert String

      Can contain placeholders like {{userId1}}

    • href String

      Will be prefixed by app's base url

    • ref String

      For tracking notiication performance in analytics

setUp

()

The setUp() method is called the first time an object of this class is constructed.