Post

Replies

Boosts

Views

Activity

UIDevice.current.orientation unknown on iPhone 11 Pro
While testing my app I was having trouble with device orientation. Unknown orientation was reported and I could not figure out why. Then I created really simple app for testing import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // UIDevice.current.beginGeneratingDeviceOrientationNotifications() registerEventListeners() } private func registerEventListeners() { NotificationCenter.default.addObserver(self, selector: #selector(deviceOrientationDidChange), name: UIDevice.orientationDidChangeNotification, object: nil) } @objc func deviceOrientationDidChange() { print("deviceOrientationDidChange \(UIDevice.current.orientation.rawValue)") } } On iPhone 11 Pro it initially prints two lines deviceOrientationDidChange 1 deviceOrientationDidChange 0 Where first line indicates portrait orientation and second line is some kind of nonsense. On iPhone 13 Pro it prints correctly only the first line. Some sort of bug in iOS on some (old) devices? In code above the .beginGeneratingDeviceOrientationNotifications() is commented out as it has no effect to anything.
0
0
926
May ’23
Promotional Text now shown
I tried to use App Store Connect to enter Promotional Text for my iOS app. After waiting for some time (actually 48 hours and then more) I did not see the text when checking App Store on my iPhone. Then I thought that as my iPhone was set to use my native language but my app is only in English and I have entered all App Store Connect texts only in English (U.S.) maybe I should try to change my iPhone language to English too. And surprise - I could see the Promotional Text. I got response from Developer Support that they could see my Promotional Text both in English and Spanish language devices, but when changing the App Store to another country, in this case Germany, it did disappear. I don’t know how they changed the App Store to another country. Maybe they changed Region (General / Language & Region) or they have test devices that have some sort of country selection for App Store. Anyway though different procedure the end result was same as my result when changing language.  So my experience is that Promotional Text is not shown for all customers with devices running iOS 11 or later This problem may be affecting only small developer like me as I suspect that big developers have more languages configured on the App Store Connect so that they enter Promotional Text to each language separately. But as a small developer I don’t have resources to translate everything to several languages. And would not be practical to create multiple languages and fill all with English texts just to get Promotional Text shown. Has anyone else encountered this problem?
2
0
2.4k
Jan ’22
UIDevice.current.orientation unknown on iPhone 11 Pro
While testing my app I was having trouble with device orientation. Unknown orientation was reported and I could not figure out why. Then I created really simple app for testing import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // UIDevice.current.beginGeneratingDeviceOrientationNotifications() registerEventListeners() } private func registerEventListeners() { NotificationCenter.default.addObserver(self, selector: #selector(deviceOrientationDidChange), name: UIDevice.orientationDidChangeNotification, object: nil) } @objc func deviceOrientationDidChange() { print("deviceOrientationDidChange \(UIDevice.current.orientation.rawValue)") } } On iPhone 11 Pro it initially prints two lines deviceOrientationDidChange 1 deviceOrientationDidChange 0 Where first line indicates portrait orientation and second line is some kind of nonsense. On iPhone 13 Pro it prints correctly only the first line. Some sort of bug in iOS on some (old) devices? In code above the .beginGeneratingDeviceOrientationNotifications() is commented out as it has no effect to anything.
Replies
0
Boosts
0
Views
926
Activity
May ’23
Promotional Text now shown
I tried to use App Store Connect to enter Promotional Text for my iOS app. After waiting for some time (actually 48 hours and then more) I did not see the text when checking App Store on my iPhone. Then I thought that as my iPhone was set to use my native language but my app is only in English and I have entered all App Store Connect texts only in English (U.S.) maybe I should try to change my iPhone language to English too. And surprise - I could see the Promotional Text. I got response from Developer Support that they could see my Promotional Text both in English and Spanish language devices, but when changing the App Store to another country, in this case Germany, it did disappear. I don’t know how they changed the App Store to another country. Maybe they changed Region (General / Language & Region) or they have test devices that have some sort of country selection for App Store. Anyway though different procedure the end result was same as my result when changing language.  So my experience is that Promotional Text is not shown for all customers with devices running iOS 11 or later This problem may be affecting only small developer like me as I suspect that big developers have more languages configured on the App Store Connect so that they enter Promotional Text to each language separately. But as a small developer I don’t have resources to translate everything to several languages. And would not be practical to create multiple languages and fill all with English texts just to get Promotional Text shown. Has anyone else encountered this problem?
Replies
2
Boosts
0
Views
2.4k
Activity
Jan ’22