//This is your Everlive API key.
var everliveApiKey = 'EVERLIVE_API_KEY';

//This is your Android project number. It is required by Google in order to enable push notifications for your app. You do not need it for iPhone.
var androidProjectNumber = 'GOOGLE_PROJECT_NUMBER';

//Set this to true in order to test push notifications in the emulator. Note, that you will not be able to actually receive 
//push notifications because we will generate fake push tokens. But you will be able to test your other push-related functionality without getting errors.
var emulatorMode = false;

var app = (function () {
    'use strict';
    
    window.onerror = function myErrorHandler(errorMsg, url, lineNumber) {
        alert(url + ":" + lineNumber + ": " + errorMsg);
        return false;
    }
    
    var onDeviceReady = function() {
        if (!everliveApiKey || everliveApiKey == 'EVERLIVE_API_KEY') {
            $("#messageParagraph").html("Missing API key!<br /><br />It appears that you have not filled in your Everlive API key.<br/><br/>Please go to scripts/app/main.js and enter your Everlive API key at the beginning of the file.");
            $("#initializeButton").hide();
        } else if ((!androidProjectNumber || androidProjectNumber == 'GOOGLE_PROJECT_NUMBER') && device.platform.toLowerCase() == "android") {
            $("#messageParagraph").html("Missing Android Project Number!<br /><br />It appears that you have not filled in your Android project number. It is required for push notifications on Android.<br/><br/>Please go to scripts/app/main.js and enter your Android project number at the beginning of the file.");
            $("#initializeButton").hide();
        }
    };

    document.addEventListener("deviceready", onDeviceReady, false);

    //Initialize the Everlive SDK
    var el = new Everlive({
        apiKey: everliveApiKey
    });

    var mobileApp = new kendo.mobile.Application(document.body, { transition: 'slide', layout: 'mobile-tabstrip' });

    //Login view model
    var mainViewModel = (function () {
        
        var successText = "SUCCESS!<br /><br />The device has been initialized for push notifications.<br /><br />";
        
        var _onDeviceIsRegistered = function() {
            $("#initializeButton").hide();
            $("#registerButton").hide();
            $("#unregisterButton").show();
        };
        
        var _onDeviceIsNotRegistered = function() {
            $("#unregisterButton").hide();
            $("#registerButton").show();
            $("#messageParagraph").html(successText + "Device is not registered in Everlive. Tap the button below to register it.");
        };
        
        var _onDeviceIsNotInitialized = function() {
            $("#unregisterButton").hide();
            $("#initializeButton").show();
            $("#messageParagraph").html("Device unregistered.<br /><br />Push token was invalidated and device was unregistered from Everlive. No push notifications will be received.");
        };
        
        var _onDeviceRegistrationUpdated = function() {
            $("#messageParagraph").html("Device registration updated.");
        };
        
        var onAndroidPushReceived = function(args) {
            alert('Android notification received: ' + JSON.stringify(args)); 
        };
        
        var onIosPushReceived = function(args) {
            alert('iOS notification received: ' + JSON.stringify(args)); 
        };
        
        //Initializes the device for push notifications.
        var enablePushNotifications = function () {
            //Initialization settings
            var pushSettings = {
                android: {
                    senderID: androidProjectNumber
                },
                iOS: {
                    badge: "true",
                    sound: "true",
                    alert: "true"
                },
                notificationCallbackAndroid : onAndroidPushReceived,
                notificationCallbackIOS: onIosPushReceived
            }
            
            $("#initializeButton").hide();
            $("#messageParagraph").text("Initializing push notifications...");
            
            var currentDevice = el.push.currentDevice(emulatorMode);
            
            currentDevice.enableNotifications(pushSettings)
                .then(
                    function(initResult) {
                        $("#tokenLink").attr('href', 'mailto:test@example.com?subject=Push Token&body=' + initResult.token);
                        $("#messageParagraph").html(successText + "Checking registration status...");
                        alert();
                        return currentDevice.getRegistration();
                    },
                    function(err) {
                        $("#messageParagraph").html("ERROR!<br /><br />An error occured while initializing the device for push notifications.<br/><br/>" + err.message);
                    }
                ).then(
                    function(registration) {                        
                        _onDeviceIsRegistered();                      
                    },
                    function(err) {                        
                        if(err.code === 801) {
                            _onDeviceIsNotRegistered();      
                        }
                        else {                        
                            $("#messageParagraph").html("ERROR!<br /><br />An error occured while checking device registration status: <br/><br/>" + err.message);
                        }
                    }
                );
        };
        
        var registerInEverlive = function() {
            var currentDevice = el.push.currentDevice();
            
            if (!currentDevice.pushToken) currentDevice.pushToken = "some token";
            el.push.currentDevice()
                .register({ Age: 15 })
                .then(
                    _onDeviceIsRegistered,
                    function(err) {
                        alert('REGISTER ERROR: ' + JSON.stringify(err));
                    }
                );
        };
        
        var disablePushNotifications = function() {
            el.push.currentDevice()
                .disableNotifications()
                .then(
                    _onDeviceIsNotInitialized,
                    function(err) {
                        alert('UNREGISTER ERROR: ' + JSON.stringify(err));
                    }
                );
        };
        
        var updateRegistration = function() {
            el.push.currentDevice()
                .updateRegistration({ Age: 16 })
                .then(
                    _onDeviceRegistrationUpdated,
                    function(err) {
                        alert('UPDATE ERROR: ' + JSON.stringify(err));
                    }
                );
        };
        
        return {
            enablePushNotifications: enablePushNotifications,
            registerInEverlive: registerInEverlive,
            disablePushNotifications: disablePushNotifications,
            updateRegistration: updateRegistration,
        };
    }());
    

    return {
        viewModels: {
            main: mainViewModel
        }
    };
}());

@@ -4630,16 +4630,8 @@
     
-alert();
 %0A   

Update main.js