title: How to disable Google Assist API (Now on Tap)
body: <p>Google have recently released Android Marshmallow with Now on Tap which can scan the app contents and provide an additional information to the user.</p>
  
  <p>Unfortunately, for our app the info doesn't look very relevant and Google is ignoring the data we set inside <code>onProvideContentAssist()</code> and <code>onProvideAssistData()</code>.</p>
  
  <p><a href="http://developer.android.com/training/articles/assistant.html" rel="nofollow noreferrer">These specs</a> look rather high level and also contain the words like "<em>can suggest</em>" and "<em>additional information</em>" so seems like Google officially allows itself to ignore the data app developers provide.</p>
  
  <p>So we decided to disable Now on Tap, but seems it is not very trivial.
  According to the doc provided above, we should use <code>FLAG_SECURE</code> in this case. But then users couldn't capture screenshots and Google Now on Tap starts to blame our app with the following user facing message: </p>
  
  <blockquote>
    <p>Results not available<br>
    This app has blocked Now on Tap</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/LvxnB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LvxnB.jpg" alt="enter image description here"></a></p>
  
  <p>But it seems that Opera somehow gently blocks Now on Tap for their private tabs. It shows much more app friendly message for them:</p>
  
  <blockquote>
    <p>Nothing on tap</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/lS5b6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lS5b6.png" alt="enter image description here"></a></p>
  
  <p>How does Opera block Now on Tap?</p>
  
  <p>Does anybody know how to block Google Assist API (Now on Tap) without getting a blame regarding our app from their side?</p>