Given the following code snippit. When a user browses to the "lead" or "contact" details screen the application does not fire the event onAppActivated(). The only way i can get it to work is to click on the "more integrations" tab, and then click back on my application tab and then it will fire. It will not fire when the lead is initially loaded. Can anyone offer some advice?
var client;
$(document).ready( function() {
app.initialized().then(
function(_client)
{
client = _client;
_client.events.on("app.activated", onAppActivated);
_client.events.on("app.deactivated", onAppDeactivated);
},
function(error){});
});
function onAppActivated() {
// Do something
}
1 person has this problem
Bharath.raja_old
said
almost 2 years ago
Could you give a little more info on where you have positioned the app?
Dan Haddad
Having trouble to get my app to load.
Given the following code snippit. When a user browses to the "lead" or "contact" details screen the application does not fire the event onAppActivated(). The only way i can get it to work is to click on the "more integrations" tab, and then click back on my application tab and then it will fire. It will not fire when the lead is initially loaded. Can anyone offer some advice?
1 person has this problem