# App Share. White Screen is shown when PDF content is shared in a WKWebView

**URL:** <https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481>\
**Category:** iOS\
**Created:** [April 16, 2020, 10:47am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481 "2020-04-16T10:47:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![usman.awan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/usman.awan/32/27694_2.png) [@usman.awan](https://devforum.zoom.us/u/usman.awan)\
**Post date:** [April 16, 2020, 10:47am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/1 "2020-04-16T10:47:53Z")

</div>

**Description**

We are trying to sharing app content (WKWebView) which loads the PDF content URL and that should be displayed to all the participants as remote share. However, the application is not able to display the PDF content shared within a WKWebView and it just shows the page counter and scrolling, etc. so this means the WKWebView is shared but not the content view.  
We followed the same code as mentioned in the sample project for sharing the local/remote content.  
[LocalShareViewController.m](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/LocalShareViewController.m)  
[RemoteShareViewController.m](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/RemoteShareViewController.m)

We also tried with Zoom built-in meeting UI and it has the same issue. Can you please review and let us know the actual way of sharing the PDF file URL using the Zoom’s app share feature.

**Which version?**

4.6.15084.0206

**To Reproduce**

Steps to reproduce the behavior:

1. Go to MobileRTCSampleApp
2. Click on `Meet Now` button and start the `Custom Meeting` (\*make sure you have the custom meeting option selected in the app settings)
3. Tap on the ‘Start Share’ button by default it will open the [zoom.us](http://zoom.us) site. Now change the URL to open any pdf file e.g [https://www.uakron.edu/armyrotc/MS1/15.pdf](https://www.uakron.edu/armyrotc/MS1/15.pdf)
4. The app will successfully display the pdf file content in a web view on the local share view.
5. Now join the same meeting from another phone and experience the remote share view will have `white screen` as shown in the below screenshot.

**Screenshots**

 ![IMG_1011](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/025515b82fb3d67e9120775cafa4960ffb7c286e.jpeg)

**Smartphone:**

- Device: iPhone X

- OS: iOS

- Version 13.3.1

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 17, 2020, 11:45pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/2 "2020-04-17T23:45:00Z")

</div>

Hi [usman.awan](https://devforum.zoom.us/u/usman.awan),

Thanks for the post. Let me forward this to the engineering team for further investigation and get back to you shortly. Thx.

---

<div class="post-metadata">

**Author:** ![usman.awan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/usman.awan/32/27694_2.png) [@usman.awan](https://devforum.zoom.us/u/usman.awan)\
**Post date:** [April 27, 2020, 5:15am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/3 "2020-04-27T05:15:15Z")

</div>

Hi @carson.zoom,

Do we have any update on this issue?

Thanks,

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 1, 2020, 5:09am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/4 "2020-05-01T05:09:03Z")

</div>

Hi [usman.awan](https://devforum.zoom.us/u/usman.awan),

Thanks for the reply. We are able to identify this issue and we are investigating the solutions for this. In the meantime, please have a try to use the Broadcast extension and ReplayKit to perform screen sharing. You may find the instruction here:[https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share)

Thanks!

---

<div class="post-metadata">

**Author:** ![gabrielangelo.inot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabrielangelo.inot/32/10071_2.png) [@gabrielangelo.inot](https://devforum.zoom.us/u/gabrielangelo.inot)\
**Post date:** [June 8, 2020, 2:43am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/5 "2020-06-08T02:43:57Z")

</div>

Hi @carson.zoom,

any update on this?

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 10, 2020, 7:30am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/6 "2020-06-10T07:30:07Z")

</div>

Hi @gabrielangelo.inot,

Thanks for using Zoom SDK. If you would like to implement the screen sharing feature, you could follow the instruction here: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share)

Thanks!

---

<div class="post-metadata">

**Author:** ![amit.jadhav](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@amit.jadhav](https://devforum.zoom.us/u/amit.jadhav)\
**Post date:** [July 26, 2020, 12:34pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/7 "2020-07-26T12:34:59Z")

</div>

I have followed steps on [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share)…  
my broadcast has started and sharing content…even my extension is working as my extension delegate processSampleBuffer is called… but content is not shared on zoom…

Please provide any solution…

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 29, 2020, 11:04am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/8 "2020-07-29T11:04:19Z")

</div>

Hi @amit.jadhav,

Thanks for using Zoom SDK. Did you set the App group ID when initializing the SDK? Is the SDK app shown in the broadcasting app list?

Thanks!

---

<div class="post-metadata">

**Author:** ![amit.jadhav](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@amit.jadhav](https://devforum.zoom.us/u/amit.jadhav)\
**Post date:** [July 29, 2020, 11:21am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/9 "2020-07-29T11:21:14Z")

</div>

Yes… I was able to make it work… Video works fine…  
but now the issue is with audio… Audio is not working even after following this thread [iOS SDK - Custom UI - Can't play music and meeting audio together](https://devforum.zoom.us/t/ios-sdk-custom-ui-cant-play-music-and-meeting-audio-together/15727/7)

Need solution asap…

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 1, 2020, 5:34am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/10 "2020-08-01T05:34:27Z")

</div>

Hi @amit.jadhav,

Glad to hear that it is working. If you are using Custom UI, currently the audio share is not supported.

Thanks!

---

<div class="post-metadata">

**Author:** ![severund](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/severund/32/21349_2.png) [@severund](https://devforum.zoom.us/u/severund)\
**Post date:** [February 4, 2021, 2:53pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/11 "2021-02-04T14:53:40Z")

</div>

Never had this kind of issue, but it’s good to know that I can find the solution here!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 4, 2021, 7:54pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/12 "2021-02-04T19:54:41Z")

</div>

Hey @severund,

Please let us know if you run into any issues with this in the future 🙂

Michael

---

<div class="post-metadata">

**Author:** ![severund](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/severund/32/21349_2.png) [@severund](https://devforum.zoom.us/u/severund)\
**Post date:** [February 9, 2021, 1:50am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/13 "2021-02-09T01:50:07Z")

</div>

Thank you for your kind reply. I will most definitely use the opportunity of letting you know in case I run into any similar issues or other kinds of issues with this in the future.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 9, 2021, 9:04pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/14 "2021-02-09T21:04:48Z")

</div>

Sounds like a plan 🙂

---

<div class="post-metadata">

**Author:** ![severund](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/severund/32/21349_2.png) [@severund](https://devforum.zoom.us/u/severund)\
**Post date:** [February 11, 2021, 9:29am UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/15 "2021-02-11T09:29:05Z")

</div>

Of course, it is a plan. I wonder why did you need to share app content (WKWebView) which loads the PDF content URL and that should be displayed to all the participants as remote share. I believe you could have avoided this type of issue from the start if you had checked first if the application is able or not to display the PDF content shared within a WKWebView and what does it do in this situation. I prefer working with pdf documents, that’s why I use [https://pdf-ocr.com](https://pdf-ocr.com) every time when I need to convert other documents in a pdf format.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 11, 2021, 10:06pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/16 "2021-02-11T22:06:55Z")

</div>

Hey @severund,

Forgive me for misunderstanding, are you having issues with sharing in the iOS SDK?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![usman.awan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/usman.awan/32/27694_2.png) [@usman.awan](https://devforum.zoom.us/u/usman.awan)\
**Post date:** [February 11, 2021, 10:45pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/17 "2021-02-11T22:45:08Z")

</div>

Hello Guys,

I just thought update here. So, this issue is purely related to when host tries to share app content (not broadcast screen-share) and in that if you have a view that’s hold WKWebview which has to open PDF link/url than the content will not be shown.

I managed to fixed this issue by using Apple’s PDFKit framework for showing the PDF link instead of using the WKWebView.

I do really hope that in the latest zoom ios client does have the fix for WKWebView manage to show the content on remote user side.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 11, 2021, 10:49pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/18 "2021-02-11T22:49:12Z")

</div>

Hey @usman.awan,

Thank you for the update and workaround. I will inform the team.

Michael

---

<div class="post-metadata">

**Author:** ![zchprogramming](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zchprogramming/32/17112_2.png) [@zchprogramming](https://devforum.zoom.us/u/zchprogramming)\
**Post date:** [March 1, 2021, 11:02pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/19 "2021-03-01T23:02:32Z")

</div>

HEY! @usman.awan , I work on an app that is having a similar problem, pdf issues sharing app content fails for pdf’s with WKwebview. We recently were required to upgrade from UIWebview to WKwebview, after which we had issues. Got any example code of using to PDFKit instead? 🙂

Update: this is what worked for me

```
    NSString* ext = [_contentURL pathExtension];
    if(ext != nil && [ext isEqual:@"pdf"]){
        
    PDFDocument *pdfDocument = [[PDFDocument alloc] initWithURL:_contentURL];
    PDFView *pdfView = [[PDFView alloc] initWithFrame:CGRectMake(0, 0, self.contentWebView.bounds.size.width, self.contentWebView.bounds.size.height)];
    pdfView.document = pdfDocument;
    pdfView.autoScales= true;
    [self.contentWebView addSubview:pdfView];
        
    }
   else
   [self.contentWebView loadRequest:[NSURLRequest requestWithURL:_contentURL]];
```

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 1, 2021, 11:33pm UTC](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481/20 "2021-03-01T23:33:28Z")

</div>

Hey @zchprogramming,

Thank you for using the dev forum!  
@usman.awan Thank you in advance if you decide to share your example code.

Michael

[Next page](https://devforum.zoom.us/t/app-share-white-screen-is-shown-when-pdf-content-is-shared-in-a-wkwebview/13481.md?page=2)
