Lync Presence on SharePoint hosted add-in

%3CLINGO-SUB%20id%3D%22lingo-sub-71088%22%20slang%3D%22en-US%22%3ELync%20Presence%20on%20SharePoint%20hosted%20add-in%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-71088%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20build%20a%20SP%20Hosted%20add-in%20that%20also%20shows%20the%20Lync%20presence%20real%20time%20via%20the%20add-in%20part.%20However%2C%20I%20can%20only%20get%20the%20hover%20to%20show%20the%20Lync%20contact%20card%2C%20etc.%20However%2C%20the%20presence%20indicator%20(jellybean)%20would%20not%20change%20with%20the%20change%20is%20Lync%20status.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20added%20the%20app%20web%20to%20Trusted%20Sites%20in%20my%20IE%20settings%20(for%20DEV%20sites%20this%20is%20automatic).%20This%20does%20not%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20a%20feeling%20that%20the%20Active-X%20namectrl%20cannot%20modify%20the%20html%20inside%20an%20iframe%2C%20so%20I%20did%20another%20round%20of%20tests.%20Loaded%20a%20standard%20SP%20page%20using%20a%20page-viewer%20webpart.%20This%20time%20though%20I%20see%20that%20the%20presence%20indicator%20changes%20inside%20the%20page-viewer%20webpart%20(again%20a%20iframe).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20different%20when%20it%20is%20an%20iframe%20of%20an%20appweb%3F%20Is%20CORS%20to%20blame%20somewhere%20since%20the%20app-web%20is%20a%20different%20domain%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnybody%20got%20this%20working%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-71088%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73794%22%20slang%3D%22en-US%22%3ERe%3A%20Lync%20Presence%20on%20SharePoint%20hosted%20add-in%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73794%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20still%20struggling%20to%20figure%20this%20out.%20I%20cannot%20find%20any%20reference%20to%20this%20that%20might%20help.%20Any%20developer%20in%20the%20community%20who%20has%20built%20something%20similar%20or%20has%20been%20able%20to%20workaround%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I am trying to build a SP Hosted add-in that also shows the Lync presence real time via the add-in part. However, I can only get the hover to show the Lync contact card, etc. However, the presence indicator (jellybean) would not change with the change is Lync status.

 

I have added the app web to Trusted Sites in my IE settings (for DEV sites this is automatic). This does not help.

 

I had a feeling that the Active-X namectrl cannot modify the html inside an iframe, so I did another round of tests. Loaded a standard SP page using a page-viewer webpart. This time though I see that the presence indicator changes inside the page-viewer webpart (again a iframe).

 

What is different when it is an iframe of an appweb? Is CORS to blame somewhere since the app-web is a different domain?

 

Anybody got this working?

1 Reply
Highlighted

I'm still struggling to figure this out. I cannot find any reference to this that might help. Any developer in the community who has built something similar or has been able to workaround this?