Device Orientation Analytics

I am trying to decide if I should implement landscape mode in my application. Is there any analytics software that will tell me if users try to view my app in landscape mode? Or should I write my own methods?

+4
source share
3 answers

You can use the heatma.ps SDK to view statistics for each screen of your application. It is automatic, so you do not need to provide orientation support to find out.

+2
source

It's hard to say that a call to shouldAutorotateToInterfaceOrientation: is made for all orientations, regardless of whether the user is trying to switch to landscape mode, and willRotate / didRotate callbacks are created only for supported orientations. What you can do is register

 [[UIDevice currentDevice] orientation]; 

for each of them there should be a field username. Or register to notify UIDeviceOrientationDidChangeNotification . This returns a UIDeviceOrientation, regardless of the orientation of your controllers. Note that this is different from the UIInterfaceOrientation values ​​that UIViewControllers use for the interfaceOrientation property.

 typedef enum { UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, UIDeviceOrientationPortraitUpsideDown, UIDeviceOrientationLandscapeLeft, UIDeviceOrientationLandscapeRight, UIDeviceOrientationFaceUp, UIDeviceOrientationFaceDown } UIDeviceOrientation; 

Although the two are related to each other:

 typedef enum { UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight, UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft } UIInterfaceOrientation; 
+2
source

Google Analytics custom timers can be used to measure the time interval that a user spends in a specific orientation. You can read about how to track user timings for native ios apps at https://developers.google.com/analytics/devguides/collection/ios/v2/usertimings

0
source

Source: https://habr.com/ru/post/1379609/


All Articles