ReplayKit's RPSystemBroadcastPickerView not showing preferredExtension

后端 未结 5 1234
名媛妹妹
名媛妹妹 2021-02-07 08:15

I am using RPSystemBroadcastPickerView to show a picker view, from which a user can select a broadcast service to record the screen. Based on documentation, p

相关标签:
5条回答
  • 2021-02-07 08:53

    If I do not set ".preferredExtension", I see all extensions on the list. I tested on iOS12 GM.

    0 讨论(0)
  • 2021-02-07 08:58

    I have the same issue, looks like Xcode has some issues how to install broadcastExtension with you app. For me, It is related only for Debug mode. To see correct UI, try to enable broadcasting once in old way (control center -> deep touch -> start broadcast), after that in your BroadcastPickerView you will see correct UI (you are pushing iOS to update information about the extension). Cannot reproduce in release mode.

    0 讨论(0)
  • 2021-02-07 09:02

    You can find your exactly preferedExtension here:

    image

    When you add pickerView.preferredExtension exactly the Bundle Identifier, your app will be showed on the Recording App List. Hope this helps!

    0 讨论(0)
  • 2021-02-07 09:09

    You add Broadcast Upload Extension into your project and get that Extension Bundle Identifier.

    How to create Broadcast Upload Extension into your app?

    Go to xcode - File - New - Target - Broadcast Upload Extension

    Then Add this line into your app. when you created RPSystemBroadcastPickerView object.

    broadCastPicker?.preferredExtension = "com.vikrant.YourApp.Extension"

    0 讨论(0)
  • 2021-02-07 09:10

    I think it is the apple's bug, but it was fixed in iOS 12.2 after I tested it.

    0 讨论(0)
提交回复
热议问题