search cancel

VIP Authentication Service | User receives 'VIP is Undefined' or 'Console is Undefined' errors with PUSH


Article ID: 163801


Updated On:


VIP Authentication Service


Internet Explorer may display VIP is Undefined or Console is Undefined errors to users in the javascript-based push notification flow. This is a known issue with some IE browsers.


To address this issue, add the following to your VIP integration code for JavaScript, just after the <!-- BEGIN VIP integration code --> header:

<script type="text/javascript">
(function() {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeStamp', 'trace', 'warn'
var length = methods.length;
var console = (window.console = window.console || {});

while (length--) {
method = methods[length];

// Only stub undefined methods.
if (!console[method]) {
console[method] = noop;