title: ios: disable alert notification when app in focus (OneSignal)
body: <p>I use OneSignal sdk for react native. I try disable the internal alarm when the app in focus. Do you have an idea how to do it? </p>
  
  <p>Here is my code: </p>
  
  <pre><code>OneSignal.configure({
  onIdsAvailable: function (device) {
    console.log('UserId = ', device.userId);
   console.log('PushToken = ', device.pushToken);
   getUserId(device.userId);
   },
   onNotificationReceived: function (notification) {
  OneSignal.checkPermissions((permissions) =&gt; {
    console.log(permissions);
   });
  OneSignal.inFocusDisplaying(0);
  },
  onNotificationOpened: function(message, data, isActive) {
   console.log("MS TYPE", message);
   switch(message.notification.payload.additionalData.type) {
   case '1':
         Actions.messenger({id:     message.notification.payload.additionalData.userID});
      break;
  case '2':
        Actions.overview();
      break;
    }
    }
   });
  </code></pre>