Features

[iOS SDK v15.0 and above] Ability to pause Shake data collection

5y agoCompleted

Previously isPaused: `@property (class) BOOL isPaused;`

and 1 other

16 comments

  1. Jteyber Just to make sure that we are on the same page.

    If I understood correctly, you have a problem with app screen orientation when using Shake. Your app screen orientation gets locked and disabling automatic screen recording on >= 16.0 doesn't helps you.

    Is that correct?

    1. Jteyber4y ago

      Mislav Stanic: exactly

    2. Jteyber: If this is the case, can you check if this is still happening for you on Shake >=16.1? Im not sure if you tested it on 16 or 16.x version, since 16.1 we have introduced changes that should fix your problem.

    3. Jteyber4y ago

      Mislav Stanic is there a parameter to activate or deactivate so that the rotation is functional ?

    4. Jteyber: Considering that your app didn't lock screen orientation, you should be able to rotate app screen on Shake version >= 16.1 without problems. If that is not the case please let me know.

    5. Jteyber4y ago

      Mislav Stanic: unfortunately, the rotation is not functional.

      Feel free to watch the different videos that demonstrate the issue according to the different versions of Shake SDK.

      https://github.com/jteyber/issue-Shake-RPScreenRecorder/blob…

    6. Jteyber: Hello, could you please try this code instead of isAutoVideoRecordingEnabled?

      self.confLabel.text = "isUserFeedbackEnabled: " + (Shake.configuration.isUserFeedbackEnabled ? "on" : "off")

      in same file at the end also change:

      Shake.configuration.isUserFeedbackEnabled = self.confSwitch.isOn

      With this configuration I got screen rotation to work as it was on SDK v15.1.1.

    7. Jteyber4y ago

      hi Monika Marovic,

      sorry but the screen didn't rotate using `isUserFeedbackEnabled` configuration :/

      i add a new video to show you :

      https://github.com/jteyber/issue-Shake-RPScreenRecorder/tree…

    8. Jteyber: Hello,

      Have you added valid Client ID and Client Secret to the AppDelegate? If you haven't, Shake won't start, and this part of the code won't have any meaning, unfortunately.

    9. Jteyber4y ago

      Monika Marovic: yes, `clientId` and `clientSecret` are filled in AppDelegate…

      maybe i forget something ?

    10. Jteyber: Could you please try adding configuration for showing floating button to see if Shake is started in you app properly, like this:

      Shake.configuration.isUserFeedbackEnabled = self.confSwitch.isOn

      Shake.configuration.isFloatingReportButtonShown = true

    11. Jteyber4y ago

      Monika Marovic: oh wow !

      Rotation when `isFloatingReportButtonShown` has been set once to `true` \o/

      is there anything else that might be useful if we don't want to use the floating button ? :)

    12. Jteyber: Well, I'm not an iOS developer myself, so I don't have all the expertise in that area. But luckily, the solution I provided seems to have worked out well in this case. :D

      At the moment, this is the best workaround I can provide.

    13. Jteyber4y ago

      thank you for your reponses Monika Marovic and your time :)

      thanks to Mislav Stanic too !

  2. Jteyber4y ago

    > Does this help?

    nope :(

    i put a sample code to quickly test the issue with Automatic Screen Recording and device's rotation troubles.

    https://github.com/jteyber/issue-Shake-RPScreenRecorder

    For information, on Shake 15.1.1, we use `isPaused` property to temporary disable Shake on some screens and using device rotation in our apps.

  3. Done 👍 You can now enable/disable Shake's "User feedback" module: https://docs.shakebugs.com/docs/ios/user-feedback/enable/

    and the "Crash" module:

    https://docs.shakebugs.com/docs/ios/crash-reports/enable/

    Does this help?