Search Unity

Replay Kit Permissions?

Discussion in 'iOS and tvOS' started by backwheelbates, Sep 21, 2017.

  1. backwheelbates

    backwheelbates

    Joined:
    Jan 14, 2014
    Posts:
    232
    Hi,

    I'm just getting into how to use replayKit and most of it seems straightforward. There are a couple of details I couldn't find documentation on though.

    Here's the issue, I'm recording short clips, and when I record for the first time a permissions dialog pops up, this creates a bit of lag and once the user clicks ok to record, it ends up missing the first second or so of the recording.

    1. Is there a way to ask for permission before recording?
    2. is there a way to check the permission state?
    3. When the permission dialog is displayed, what state is the game in? Is unscaledTime still running?
    3. Has anyone else dealt with this issue?

    Thanks everyone!!
     
  2. backwheelbates

    backwheelbates

    Joined:
    Jan 14, 2014
    Posts:
    232
  3. jimmya

    jimmya

    Joined:
    Nov 15, 2016
    Posts:
    793
    That should only happen only the first time you load the app?
     
  4. backwheelbates

    backwheelbates

    Joined:
    Jan 14, 2014
    Posts:
    232
    Thanks for the reply @jimmya. I found an interesting solution, I start the recording, then wait for the recording state to become true before triggering the playback events. This seems to have worked up until ios 11. Now replayKit doesnt seem to work reliably at all.

    Not sure if this is now a unity issue or an apple one.
     
  5. John1515

    John1515

    Joined:
    Nov 29, 2012
    Posts:
    248