function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kisorekumar mohanrajkisorekumar mohanraj 

unable to view the canvas app in lightning

{!pramod_nishane}{!pramod_nishane}
Hi Kisorekumar,

Can you check your connected app settings-
Edit your Connected app-> Check the "Canvas" checkbox and put you canvas app url in it.
also include "Lightning Component" in Locations.

if you already did the same then check your lightning component code.
Below is the sample code for showing Canvas app in Lightning component.

CanvasApp.cmp​
<aura:component description="canvasly" implements="force:lightningQuickAction,force:appHostable,
 flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,
 forceCommunity:availableForAllPageTypes" access="global">
    <force:canvasApp developerName="Your_Connected_App_Name"  />
</aura:component>


And try editing home page in lightning and adding above CanvasApp.cmp in your preferable section and save.
You will see your canvas app on Home page.

Let me know in case of any concerns.

Please mark this answer as the solution/ best answer if it solves your purpose so that it can help other community members.

Thanks,
Pramod Nishane
Salesforce Consultant
Varasi LLC
www.varasi.com