title: Send push notification to a specific test device using OneSignal push notification service
body: <p>I added push notification support to my iOS app using OneSignal some time before. The app is made in Xcode with Swift.</p>
  
  <p>I want to send a test push notification only to my test device(s). I the documentation I found the following manual: <a href="https://documentation.onesignal.com/docs/user-user-messages" rel="nofollow">How do I send a notification to a single user?</a></p>
  
  <p>I managed to create the segment but I don't know where to put this peace of code: <code>OneSignal.sendTag("is_test", "true")</code></p>
  
  <p>Does anybody know where I have to put this piece of code to make it working as I described above?</p>
  
  <p>I uploaded my code here: <a href="https://codeshare.io/DxcNn" rel="nofollow">https://codeshare.io/DxcNn</a></p>
  
  <p>Thanks,
  David.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>OneSignal now also supports to set a device as test device without doing something in the code. You can also download your own app from App Store and use it as test device. Just select you device from devices list one OneSignal and mark it as test device. You can find your device in the list by model, version and/or time added.</p>