if (result["gt_registration_id"] != null) {
        var port = chrome.runtime.connect({name: "GT_IDS_AVAILABLE"});
        port.onMessage.addListener(function(msg) {
          callback(msg);
        });