ZohoDevelopers / embeddedApp-js-sdk

Js SDK for Zoho Embeded app
Apache License 2.0
48 stars 27 forks source link

ZOHO.embeddedApp.on("PageLoad", ...) it's only triggered the first time #19

Open clopezICRSoft opened 2 years ago

clopezICRSoft commented 2 years ago

Hello.

I'm developing a telephony widget and this method doesn't work as the doc says:

 ZOHO.embeddedApp.on("PageLoad",function(data)
  {
    console.log(data);
    //Custom Bussiness logic goes here
  })

ZOHO.embeddedApp.init();

I want to receive this event every time I navigate to an entity, but I only get this event when the telephony widget is loaded the first time. If I navigate to other entities once the widget's been initialized I don't receive the event.

It's easy to reproduce.

Regards