Title: Webview Android / IOS
Last modified: August 31, 2016

---

# Webview Android / IOS

 *  Resolved [Jamil Ahmed](https://wordpress.org/support/users/jimi007/)
 * (@jimi007)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/webview-android-ios/)
 * Hi,
 * I am using plugin and its working fine except the banner is also appearing in
   our Android app based on(UIWebview). Is there any way we can detect if website
   is loaded inside webview wrapper?
 * Can you suggest some way.
 * I tried this solution but never succeeded
 * [Does UIWebView send the same User-Agent in the Request Headers as mobile Safari?](http://stackoverflow.com/questions/2143763/does-uiwebview-send-the-same-user-agent-in-the-request-headers-as-mobile-safari)
 * Thank You
 * [https://wordpress.org/plugins/appbanners/](https://wordpress.org/plugins/appbanners/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/webview-android-ios/#post-7201686)
 * To be honest with you I am not sure at all.
 * A quick google search for me turned up – [http://stackoverflow.com/questions/6783185/detect-inside-android-browser-or-webview](http://stackoverflow.com/questions/6783185/detect-inside-android-browser-or-webview)
 * Which I believe
 *     ```
       if($_SERVER['HTTP_X_REQUESTED_WITH'] == "com.company.app")
           echo 'var isAndroidApp=true;';
       else
           echo 'var isAndroidApp=false;';
       ```
   
 * Would work
 *  [Carlos_FRS](https://wordpress.org/support/users/carlosfrs/)
 * (@carlosfrs)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/webview-android-ios/#post-7202064)
 * Matt,
    Where do you suggest putting in this code? Header.php of the template?
   or functions.php?
 * Thanks,
 * Carlos
 *  [Carlos_FRS](https://wordpress.org/support/users/carlosfrs/)
 * (@carlosfrs)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/webview-android-ios/#post-7202065)
 * Found an answer on another post. Use a #site or something your template spits
   out instead of the default “body” in the section “Append to selector? – Append
   the banner to a specific selector” and that should fix your problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Webview Android / IOS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/appbanners_484952.svg)
 * [AppBanners](https://wordpress.org/plugins/appbanners/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appbanners/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appbanners/)
 * [Active Topics](https://wordpress.org/support/plugin/appbanners/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appbanners/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appbanners/reviews/)

## Tags

 * [app](https://wordpress.org/support/topic-tag/app/)
 * [webview](https://wordpress.org/support/topic-tag/webview/)

 * 3 replies
 * 3 participants
 * Last reply from: [Carlos_FRS](https://wordpress.org/support/users/carlosfrs/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/webview-android-ios/#post-7202065)
 * Status: resolved