+ Start a Discussion
ctli.mobilelab1.3929660824463127E12ctli.mobilelab1.3929660824463127E12 

Saleforce1 Spring'14 Mobile Nav tab issue

Dear Salesforce1 team, 
I have a 3rd party app which I am trying to integrate with spring'14 edition. I can see my custom 3rd party app coming on the Chatter Feed and I can aso see the Mobile Nav in the left NAvigation menu of my Saleforce1 iPAd app. However, when  I click on the left navigation tab for my app, it tries to open my app as a URL and I get the following message "This App must be invoked via a signed request!". 
Need your help in fixing this issue.
Best Answer chosen by ctli.mobilelab1.3929660824463127E12
akhilesh_sfdcakhilesh_sfdc
Make sure that the Connected App Settings for the Canvas app has "Visualforce Page" enabled for it. To check that, go to Setup > Create > Apps. Then select your Canvas app under Connected Apps list and check if "Visualforce Page" is enabled as a location for the canvas.

All Answers

akhilesh_sfdcakhilesh_sfdc
I believe this is a canvas app. To add a canvas app to the left Nav, you probably will have to put the canvas inside a VF page and then expose the VF page as a sidebar tab.
ctli.mobilelab1.3929660824463127E12ctli.mobilelab1.3929660824463127E12
Hi Akhilesh,
I tried the same but getting the following error:

"The canvas app with namespace [null] and API name [MyApp] does not support a location of [Visualforce Page]"

My VF code:
<apex:page >
    <apex:canvasApp applicationName="MyApp"
    height="400px" width="750px"
    border="2" scrolling="yes"/>
</apex:page>

Any idea how can we fix this? Moreover, Spring'14 documentation says the Canvas App can be readily made available in left Nav, so not sure if we really need the VF.

Any inputs would be of great help!

Regards
Sulabh
ctli.mobilelab1.3929660824463127E12ctli.mobilelab1.3929660824463127E12
I even tried with  namespacePrefix="myns" in the VF but still the same error
akhilesh_sfdcakhilesh_sfdc
Make sure that the Connected App Settings for the Canvas app has "Visualforce Page" enabled for it. To check that, go to Setup > Create > Apps. Then select your Canvas app under Connected Apps list and check if "Visualforce Page" is enabled as a location for the canvas.
This was selected as the best answer
ctli.mobilelab1.3929660824463127E12ctli.mobilelab1.3929660824463127E12
Thanks! Akhilesh. This works lie charm after including the Visualforce page as you suggested. But, I am still not sure why it doesnt work without using the VF as Spring'14 gives an option to include Mobile Nav for canvas apps.
Any input wld help but as such this solves my issue! thnaks again :)