title: How to configure local notification for the Apple Watch
body: <p>I just had my IOS (8.2) app update rejected because local notification were not appearing on the Apple Watch.</p>
  
  <p>Since local notifications cannot be tested on the simulator, and the watch hasn't been released yet, it's a bit difficult to tell exactly what is wrong.</p>
  
  <p>I suspect it has to do with setting the alertTitle property of the UILocalNotification object, as mentioned in the <a href="https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/BasicSupport.html" rel="nofollow noreferrer">Apple Watch Programming Guide</a> which I wasn't doing.</p>
  
  <p>The reason I wasn't setting this is because the alertTitle and alertBody properties seem to be treated differently in Notification Centre and the Watch.</p>
  
  <p>For example, if I want the Watch to show "History in 2 minutes.", then according to the programming guide, I need to set the alertTitle. </p>
  
  <p>However, for the iPhone app, I need to set the alertBody so that Notification Alerts display as shown (If I only set title, and no alertBody, then the notification alert is not shown):</p>
  
  <p>Text from alertBody:
  <img src="https://i.stack.imgur.com/lTJ7x.png" alt="text from alertBody"></p>
  
  <p>But, if I also set the alertTitle to the same text, (so that it appear on the Watch) then in Notification centre, the text is shown twice, i.e. the title and the body, e.g.:</p>
  
  <p>Text from alertTitle and alertBody
  <img src="https://i.stack.imgur.com/in7ng.png" alt="text from alertTitle and alertBody"></p>
  
  <p>Also, if I don't set the alertTitle, then the main notification screen shows the app name, which is rather annoying too. e,g,:</p>
  
  <p>Text from app name and alertBody - no alertTitle set:
  <img src="https://i.stack.imgur.com/GFsTT.png" alt="Text from app name and alertBody"></p>
  
  <p>So, is there any combination of setting alertTitle and alertBody that will work for Notification  Alerts, Notification Centre and the Watch?</p>
  
  <p>BTW: I've just removed the notification screen shots and description from the app and re-submitted. I'll add local notifications back once I can test in the simulator (If that ever happens), or I get a watch (if that ever happens too!).</p>