+ Start a Discussion
Yash SadeghiYash Sadeghi 

Return value on mobiel application

currently I am creating a barcode scanner on SF1 through the application pic2shop.
For this I have created a Visualforce Page.
So far I am able to scan but for some reason after the scan has been executed the barcode is not properly returned on my SF1 application so that I could use. I would be grateful for any advice.

The code: 

<apex:page standardController="Furniture__c">
     <div style="width: 30%">
        <a id="link" href="#" style="text-decoration: none">
            <img style="background: blue; display: block; margin: auto;" width="80%" src="/img/icon/t4v35/standard/product.svg"/>
        <div style="font-family: sans-serif; text-align: center">
            Tap icon above to scan a piece of furniture

   //// var furnitureRedirectUrl = "pic2shop://scan?callback="+encodeURIComponent("salesforce1://furniture__c/view?furniture__cid=a0D58000004LIbK");

      var furnitureRedirectUrl = "com.salesforce.salesforce1://furniture__c/view?furniture__cid=a0D58000004LIbK";  
      var a = document.getElementById("link");  
      a.href = "pic2shop://scan?callback // EAN =" + encodeURIComponent(furnitureRedirectUrl);  

Thank you