[iOS SDK v15.0 and above] Ability to pause Shake data collection
complete
Log In
Monika Marovic
complete
Mislav Stanic
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?
J
Jteyber
Mislav Stanic: exactly
Mislav Stanic
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.
J
Jteyber
Mislav Stanic is there a parameter to activate or deactivate so that the rotation is functional ?
Mislav Stanic
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.
J
Jteyber
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.
Monika Marovic
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.
J
Jteyber
hi Monika Marovic,
sorry but the screen didn't rotate using
isUserFeedbackEnabled
configuration :/i add a new video to show you :
Monika Marovic
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.
J
Jteyber
Monika Marovic: yes,
clientId
and clientSecret
are filled in AppDelegate… maybe i forget something ?
Monika Marovic
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
J
Jteyber
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 ? :)
Monika Marovic
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.
J
Jteyber
thank you for your reponses Monika Marovic and your time :)
thanks to Mislav Stanic too !
J
Jteyber
> Does this help?
nope :(
i put a sample code to quickly test the issue with Automatic Screen Recording and device's rotation troubles.
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.Peter Simic
under review
Peter Simic
complete
Done 👍 You can now enable/disable Shake's "User feedback" module: https://docs.shakebugs.com/docs/ios/user-feedback/enable/
and the "Crash" module:
Does this help?