• Syan Pillar
  • NEWBIE
  • 0 Points
  • Member since 2016


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
There is a requirement of using ios as front end and salesforce as backend.How to establish connection between these two.
Can somebody please help me.

Thanks in advance.
When writing script and navigating it to detailed page I am getting an below error.

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://sateeshsfdev-dev-ed.lightning.force.com') does not match the recipient window's origin ('https://sateeshsfdev-dev-ed--c.ap2.visual.force.com').

 Code.
<script src="/soap/ajax/33.0/connection.js" type="text/javascript"></script>
    <script type="text/javascript">
    function navigateToDetailPage() {
        alert('--hi--');
        if( (typeof sforce.one != 'undefined') && (sforce.one != null) ) {
             sforce.one.navigateToSObject('00628000006YM8I');
        }
    }
</script>

Button:

<apex:commandLink value="SUBMIT" onclick="navigateToDetailPage();"/>