# Opening pdfviewer inside android webview

**URL:** <https://pdfjs.community/t/opening-pdfviewer-inside-android-webview/246>\
**Category:** Technical Support\
**Created:** [September 10, 2020, 5:35am UTC](https://pdfjs.community/t/opening-pdfviewer-inside-android-webview/246 "2020-09-10T05:35:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepak.s](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@deepak.s](https://pdfjs.community/u/deepak.s)\
**Post date:** [September 10, 2020, 5:35am UTC](https://pdfjs.community/t/opening-pdfviewer-inside-android-webview/246/1 "2020-09-10T05:35:15Z")

</div>

**Detailed description of issue**  
We are trying to embed viewer in our native android app using webview method and we are getting error.  
[INFO:CONSOLE(221)] “[object Object]”, source: BASEURL+/pdfexpress/ui/webviewer-ui.min.js (221).  
Where as it works in mobile browser

**Expected behaviour**  
It works in mobile browser so it should work in inbuilt android webviewer also

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
{Provide a relevant code snippet}

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [September 10, 2020, 2:05pm UTC](https://pdfjs.community/t/opening-pdfviewer-inside-android-webview/246/2 "2020-09-10T14:05:41Z")

</div>

Hi!

Are you able to figure out what `[object Object]` is (maybe set a breakpoint and inspect it)? That error message isn’t very helpful to us unfortunately.

Thanks,  
Logan

---

<div class="post-metadata">

**Author:** ![deepak.s](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@deepak.s](https://pdfjs.community/u/deepak.s)\
**Post date:** [September 10, 2020, 2:38pm UTC](https://pdfjs.community/t/opening-pdfviewer-inside-android-webview/246/3 "2020-09-10T14:38:49Z")

</div>

We were able to fix it.

It was an layout issue - orientation was not mentioned

Thanks

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [September 10, 2020, 2:53pm UTC](https://pdfjs.community/t/opening-pdfviewer-inside-android-webview/246/4 "2020-09-10T14:53:23Z")

</div>


