ios13

Issues with “Allow always” location in iOS 13

我们两清 提交于 2020-06-25 03:39:47
问题 I've an app which depends on the user's location. Until iOS 13 the app worked correctly but now it doesn' send the user's location. I've tried to choose the option "While using app" and wait to the next prompt in order to choose "Allow always" but it doesn't work. Choosing "While using app" and going to settings for changing the option to "Allow always" doesn't work. (Both cases are the "official" answer of Apple in the documentation) Any idea? Thanks 回答1: From iOS 13 onwards, Apple replace

Issues with “Allow always” location in iOS 13

[亡魂溺海] 提交于 2020-06-25 03:39:23
问题 I've an app which depends on the user's location. Until iOS 13 the app worked correctly but now it doesn' send the user's location. I've tried to choose the option "While using app" and wait to the next prompt in order to choose "Allow always" but it doesn't work. Choosing "While using app" and going to settings for changing the option to "Allow always" doesn't work. (Both cases are the "official" answer of Apple in the documentation) Any idea? Thanks 回答1: From iOS 13 onwards, Apple replace

How to integrate 'Sign in with Apple' flow in iOS Objective-C?

痴心易碎 提交于 2020-06-25 02:31:10
问题 I want to integrate 'Sign in with Apple' in my iOS app. I have found many code examples for this but all are in Swift and I need Objective-C. 回答1: Step -1 : for reference purpose I taken the information from here iOS 13 — Sign In with Apple Tutorial and here for full code you can download from github-Sign-In-with-Apple Adding Sign In With Apple Capability Under the Xcode project file, there is Signing & Capabilities available. Press on the + and add the “Sign In with Apple” capability. Step

Why is UIActivityViewController displaying auto constraint errors in console

老子叫甜甜 提交于 2020-06-17 05:32:21
问题 I am trying to implement the Share functionality using UIActivityViewController. Using Swift 5, Xcode 11.2.1, ios 13.2. I have used UITableViewController and in the rows's click I have called the share() method as shown below : class SettingsTableViewController: UITableViewController { var tableData = ["Share with friends"] // MARK: - Table view methods override func numberOfSections(in tableView: UITableView) -> Int { return 1 } override func tableView(_ tableView: UITableView,

Why is UIActivityViewController displaying auto constraint errors in console

∥☆過路亽.° 提交于 2020-06-17 05:32:18
问题 I am trying to implement the Share functionality using UIActivityViewController. Using Swift 5, Xcode 11.2.1, ios 13.2. I have used UITableViewController and in the rows's click I have called the share() method as shown below : class SettingsTableViewController: UITableViewController { var tableData = ["Share with friends"] // MARK: - Table view methods override func numberOfSections(in tableView: UITableView) -> Int { return 1 } override func tableView(_ tableView: UITableView,

iOS Silent Push Notification not delivered after device reboot

。_饼干妹妹 提交于 2020-06-17 01:47:45
问题 While testing the delivery of silent notifications (one which has "content-available": 1 in the payload) to my app I noticed that, after device is rebooted notifications are not delivered. Sending the same payload works if the app is running in background or foreground but, after device is rebooted, I do not receive the didReceiveRemoteNotification: callback in AppDelegate . This happens both on iOS 13 and iOS 12 回答1: In short: Your notification was probably delayed by the system and will be

iOS Silent Push Notification not delivered after device reboot

房东的猫 提交于 2020-06-17 01:47:08
问题 While testing the delivery of silent notifications (one which has "content-available": 1 in the payload) to my app I noticed that, after device is rebooted notifications are not delivered. Sending the same payload works if the app is running in background or foreground but, after device is rebooted, I do not receive the didReceiveRemoteNotification: callback in AppDelegate . This happens both on iOS 13 and iOS 12 回答1: In short: Your notification was probably delayed by the system and will be

Can't distribute Mac Catalyst extension

有些话、适合烂在心里 提交于 2020-06-16 04:36:27
问题 I successfully uploaded to the Appstore for iOS an app with several extensions, but when I try to upload the same app for Mac AppStore ( a Mac Catalyst App ) I get the following error from Xcode on two extensions ERROR ITMS-90355: "Missing Info.plist value. No value for NSExtensionPrincipalClass found in extension Info.plist for MyApp.app/Contents/PlugIns/MyExtension.appex" These extensions are a Share Extension and an Action Extension that have a storyboard file, so if I set the

iOS 13's presentationControllerDidDismiss() Not Called for Popover in Compact Environment

本小妞迷上赌 提交于 2020-06-16 02:19:07
问题 I am updating my app for iOS 13’s new “card-style” modal views. All has been working well using UIAdaptivePresentationControllerDelegate ’s presentationControllerDidAttemptToDismiss() and presentationControllerDidDismiss() functions. But, for views that have their .modalPresentationStyle set to .popover , presentationControllerDidDismiss() is not called when being presented in compact environments (such as a phone or iPad in split or slide-over). It’s called correctly when presented in a

Unable to update/modify SwiftUI View's @state var

爱⌒轻易说出口 提交于 2020-06-15 23:40:10
问题 I'm unable to update the ExampleView's message var even though I can see updateMessage() is being called. Here is my simplified/convoluted SwiftUI example of Playground code that isn't working. The message var does not get updated when called in updateMessage() . As a result, the UI Text() is not updated either. Why is the @State var message not updating? What is the correct way to update it? import SwiftUI import PlaygroundSupport struct ContentView: View { let coloredLabel = ExampleView()