title: Google Maps Platform rejected your request. Invalid 'pb' parameter
body: <p>I am trying to show Google map in webview, but it is saying</p>
  
  <blockquote>
    <p>Google Maps Platform rejected your request. Invalid request. Invalid 'pb' parameter.</p>
  </blockquote>
  
  <p>But when I am rendering the same iframe on web browser, it is working perfectly</p>
  
  <p>here is what I am trying to render in webview, this is the string stored in variable <strong>iframeData</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"&gt;
  &lt;html&gt;
      &lt;body&gt;
          &lt;iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14988.154038971099!2d57.510438!3d-20.090677!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xc479c0ed4774c8e7!2sThe+Westin+Turtle+Bay+Resort+%26+Spa%2C+Mauritius!5e0!3m2!1sen!2smu!4v1513055435928" width="340.0" height="250" frameborder="0" style="border:0" allowfullscreen&gt;&lt;/iframe&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And this is my Android code to render this iframe into webview</p>
  
  <pre><code>String iframeData = //look above
  
  WebView webViewMap = (WebView) rootView.findViewById(R.id.webViewMap);
  WebSettings settings = webViewMap.getSettings();
  settings.setJavaScriptEnabled(true);
  settings.setBuiltInZoomControls(true);
  settings.setSupportZoom(false);
  settings.setUseWideViewPort(false);
  if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.JELLY_BEAN) {
      settings.setAllowUniversalAccessFromFileURLs(true);
  }
  settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
  webViewMap.loadData(iframeData, "text/html", null);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/VVSbC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VVSbC.png" alt="Screenshot"></a></p>