title: How to open our app from iMessage
body: <p>I had created an app in iMessage that is work perfactly but i want to know how  can i open our app from iMessage</p>
  
  <p>Suppose I have one app after that i added iMessage target and from iMessage I want to open my app from iMessage is it possible ?</p>
  
  <p>I tried with this but not succeed</p>
  
  <pre><code> NSString *customURL = @"appName://";
  
   if ([[UIApplication sharedApplication] 
  canOpenURL:[NSURL URLWithString:customURL]])
   {
       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:customURL]];
    }
  </code></pre>
  
  <p>Error :</p>
  
  <p><a href="https://i.stack.imgur.com/NTalA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NTalA.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/f9LO5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f9LO5.png" alt="enter image description here"></a></p>