when enablePush is called in javascript.
This allows the application to determine when to...