Welcome to the Apple Developer Forums:

Find answers, ask questions, and share comments on development topics with fellow developers and Apple engineers. 

To get started, search for keywords (like “app distribution”), standard tags (like [SwiftUI]), or WWDC tags (like [WWDC21]).

Learn different ways to search and use the forums

See all WWDC21 tags

Posts

Sort by:
Post not yet marked as solved
2 Views

requiredShippingContactFields should sent when start session

I integrate with apple pay and when start session should sent requiredShippingContactFields because when not sent it is not continue the payment and for some customers give error invalid mobile number requiredShippingContactFields: [ 'phone' ] if I should sent it what the value is checked and should passed to all customer and no need to validate when make payment
Asked
Post not yet marked as solved
7 Views

Brand New App Submission

Hi there, How long does the review process take when submitting a brand new app to the store for the very first time? Its been in review for longer than the 24-48hr recommended period. Regards
Asked
Post not yet marked as solved
5 Views

Is there a way to classify sessions based on ES messages?

I'm working on an enterprise product and we need to be able to provide a meaningful mapping between processes and the session context they're running in. I know that we can get the asid of a process based on an exec event subscription via ES, but the asid is too detailed. Ultimately we want to be able to say process A is running in the system/console of user {a,b,c}/ssh session. One problem is that for what we would consider a system session (non interactive) there exist multiple asids. So we need to group all non user sessions a be able to distinguish them from user gui/ssh sessions. Is there a way to get more information about a process' session, maybe but querying its asid? Maybe based on bsm and the audit token? I was thinking along the lines of what launchctl procinfo provides under the section audit flags. There are flags like has_console_access,has_authenticated. But I haven't been able to find out where this information is coming from. There are related flags in the Security framework (SessionAttributeBits) but especially the two I mentioned are missing.
Asked
by wriker.
Post not yet marked as solved
9 Views

Offer code redemption blocked, giving apple sign in prompt with garbage string in heading

In our app, we have integrated offer code redemption flow but for some users, the apple id password prompt is appearing with MZCommerceInAppBuy.ConfirmationNeededForBuyAdHocOfferRecurringItem.PayAsYouGo.WithFreeTrialIntroOffer_explanation message and upon entering the password it brings back to the same flow and asks to redeem again. Below I have added the link to the screenshot of the password prompt screen, also this is happening on few devices. Any idea how to fix this? https://drive.google.com/file/d/1R0TQIVKIOjgbiVBDcsfgUH28j4y_ZMp1/view?usp=sharing
Asked
Post not yet marked as solved
24 Views

Login with phone number and password in Firebase

I looked it up in the Firebase docs but there is not mention about my case. There is only one method of auth with phone - OTP. But, I want to log in with number and password without OTP Does anybody know how it could be implemented?
Asked
Post not yet marked as solved
7 Views

consumable plan purchase server side verifcation

i am implementing app in which i have implemented consumable plan purchase but whenever I sent consumable plan receipt to verify receipt url it gives error, my concern is how can I verify if consumable plan is valid or not on server side??
Asked
Post not yet marked as solved
10 Views

What are the detailed specifications about "Added support for automatic HTTPS upgrades." ?

In safari-15-beta-release-notes (https://developer.apple.com/documentation/Safari-Release-Notes/safari-15-beta-release-notes), Added support for automatic HTTPS upgrades. is written as one of new features regarding security & privacy. I want to know more detail about this, but there is no article in webkit blog about this. If you know about this, please tell me the detailed specifications about "Added support for automatic HTTPS upgrades."
Asked
Post not yet marked as solved
10 Views

Gambling and Gaming Beta Test

We will soon be launching a gambling/gaming beta test in Virginia that will be IOS friendly. Although we do not yet have a license, we wont be integrating real money in the beta test. The currency in the beta test will only be play money that we will be using to prove the concept of our platform. Subsequently when that concept is proven, we will then get a license to incorporate real money and have third party payment processors. Judging from this synopsis, will we have any trouble getting approved by the apple app store?
Asked
by Adewsjr.
Post not yet marked as solved
13 Views

How to remove accidental macOS entry in appstoreconnect?

Hi I recently got my first app up for sale in the iOS App Store, and accidentally clicked on the macOS App link. I would like to reset that back to nothing for macOS app, but there doesn't seem to be a way to do it. Some people on stack overflow suggest that if you hover the mouse cursor over the unwanted entry it will show a delete button: https://stackoverflow.com/questions/63507911/how-to-remove-automatically-created-macos-app-from-app-store-connect but that doesn't happen for me.
Asked
by logistes.
Post not yet marked as solved
7 Views

Magic trackpad gesture recording

I work with the Magic trackpad 2 and would like to do a screen recording of my OSX Desktop workflow. Once the screen recording app is on the trackpad gestures input no longer works. On the other hand input from the mouse does work with the screen recording app. Is there a way to do a screen recording that allows input from the track pad?
Asked
by pase.
Post not yet marked as solved
10 Views

NFC scan success sheet displayed when NFC scan time out on iOS 15 beta 4.

On iOS 15 beta 4, NFC scan success sheet is displayed when NFC scan time out. (At this time, tagReaderSession(_:didInvalidateWithError:) is called normary.) It worked fine (NFC scan success sheet is not displayed) on iOS 15 beta and iOS 14.
Asked
by etram.
Post not yet marked as solved
27 Views

Object Detection Model Preview and Model on App having varying results on the image despite it being the same model

Hello, I have an object detection model that I integrated into an app. When I put an image on the preview for the Object Detection File, it classifies the image correctly. However, if I put the same image onto the app, it classifies it differently with different values. I am confused as to how this is happening. Here is my code: import UIKit import CoreML import Vision import ImageIO class SecondViewController: UIViewController, UINavigationControllerDelegate { @IBOutlet weak var photoImageView: UIImageView! lazy var detectionRequest: VNCoreMLRequest = { do { let model = try VNCoreMLModel(for: EarDetection2().model) let request = VNCoreMLRequest(model: model, completionHandler: { [weak self] request, error in self?.processDetections(for: request, error: error) }) request.imageCropAndScaleOption = .scaleFit return request } catch { fatalError("Failed to load Vision ML model: \(error)") } }() @IBAction func testPhoto(_ sender: UIButton) { let vc = UIImagePickerController() vc.sourceType = .photoLibrary vc.delegate = self present(vc, animated: true) } @IBOutlet weak var results: UILabel! func updateDetections(for image: UIImage) { let orientation = CGImagePropertyOrientation(rawValue: UInt32(image.imageOrientation.rawValue)) guard let ciImage = CIImage(image: image) else { fatalError("Unable to create \(CIImage.self) from \(image).") } DispatchQueue.global(qos: .userInitiated).async { let handler = VNImageRequestHandler(ciImage: ciImage, orientation: orientation!) do { try handler.perform([self.detectionRequest]) } catch { print("Failed to perform detection.\n\(error.localizedDescription)") } } } func processDetections(for request: VNRequest, error: Error?) { DispatchQueue.main.async { guard let results = request.results else { print("Unable to detect anything.\n\(error!.localizedDescription)") return } let detections = results as! [VNRecognizedObjectObservation] self.drawDetectionsOnPreview(detections: detections) } } func drawDetectionsOnPreview(detections: [VNRecognizedObjectObservation]) { guard let image = self.photoImageView?.image else { return } let imageSize = image.size let scale: CGFloat = 0 UIGraphicsBeginImageContextWithOptions(imageSize, false, scale) for detection in detections { image.draw(at: CGPoint.zero) print(detection.labels.map({"\($0.identifier) confidence: \($0.confidence)"}).joined(separator: "\n")) print("------------") results.text = (detection.labels.map({"\($0.identifier) confidence: \($0.confidence)"}).joined(separator: "\n")) // The coordinates are normalized to the dimensions of the processed image, with the origin at the image's lower-left corner. let boundingBox = detection.boundingBox let rectangle = CGRect(x: boundingBox.minX*image.size.width, y: (1-boundingBox.minY-boundingBox.height)*image.size.height, width: boundingBox.width*image.size.width, height: boundingBox.height*image.size.height) UIColor(red: 0, green: 1, blue: 0, alpha: 0.4).setFill() UIRectFillUsingBlendMode(rectangle, CGBlendMode.normal) } let newImage = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() self.photoImageView?.image = newImage } } extension SecondViewController: UIImagePickerControllerDelegate { func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { picker.dismiss(animated: true) guard let image = info[.originalImage] as? UIImage else { return } self.photoImageView?.image = image updateDetections(for: image) } } I attached pictures of the model preview and the app preview (it may be hard to tell but they are the same image). I have also attached pictures of my files and storyboard. Any help would be great! Thanks in advance!
Asked
by SkillzApp.
Post not yet marked as solved
12 Views

Print page numbers in WKWebView

I am printing the contents rendered on a WKWebView using this API. https://developer.apple.com/documentation/webkit/wkwebview/3516861-printoperationwithprintinfo?language=objc The print preview loads fine, but I am unable to print page numbers. I tried overriding the drawPageBorderWithSize method of NSView (since WKWebView inherits from NSView) but that never gets called. I asked a question in the Apple Developer Technical Support and I was asked to use CSS styling to print page numbers. I then tried to use the following solution in CSS: #content { display: table; } #pageFooter { display: table-footer-group; } #pageFooter:after { counter-increment: page; content: counter(page); } <div id="content"> <div id="pageFooter">Page </div> multi-page content here... </div> However, when I try this I only get Page1 at the bottom of the last page. Are there any working solutions for printing page numbers using CSS styling?
Asked
by ronata.
Post not yet marked as solved
11 Views

EXC_BAD_ACCESS model.predict() CoreML

I am using a custom CoreML model which takes a MultiArray (Float32 1 × 85 × 60 × 1) as an input. The following is the entire app. As you can see I initialize the model, create some fake data and then run model.predict(data). import CoreML struct ContentView: View {       let model: A_4 = try! A_4(configuration: .init())       var body: some View {     VStack {       Text("Test")         .onAppear {           print(model.model)         }         .onTapGesture {           let data = [Float](repeating: 0.3, count: 5100)                       let reshapedData = try! MLMultiArray(data).reshaped(to: [1, 85, 60, 1])                       let input = A_4Input(conv2d_input: reshapedData)                       let prediction = try! model.prediction(input: input)                       print(prediction.Identity)         }     }   } } On any simulator device running iOS 14.5, model.predict works as expect yielding the following array: On any number tap: [0.0009301336,0.9990699] On my real device running iOS 15.0, the model produces a similar result: On any number tap: [0.0009710453,0.9990289] Lastly, I tested the app on the following devices, iPhone 11 Pro (iOS 14.7.1), iPhone 11 (iOS 14.6), iPhone SE 2 (iOS 14.6): On first tap: [0, 1] On Second tap: Thread 1: EXC_BAD_ACCESS (code=1, address=0x1470b4000) As you can see the first prediction is someone nonsense, and the second prediction crashes the app. I have attempted debugging this for quite some time and cannot determine the cause of this memory error. I have provided the ContentView and the model here: https://drive.google.com/drive/folders/11hw70kCfyeuRUepEf6cxhmuTb8oLW3jm?usp=sharing Thanks for any insight you can provide.
Asked
Post marked as solved
17 Views

Not Seeing iOS 15 Notification Avatars

I work on a Messaging app. I am trying to update our app so that it will donate communication intents whenever a message is received. The problem is, even though I am successfully creating an INSendMessageIntent, with a sender (INPerson) with an associated INImage, iOS 15 never actually shows the sender's avatar/image. Is there something more I need to do? This is basically what my code does: INImage *senderImage = [INImage imageWithImageData:imageData]; INPerson *const contact = [[INPerson alloc]                   initWithPersonHandle:handle                   nameComponents:components                   displayName:context.notification.content.title                   image:senderImage                   contactIdentifier:nil                   customIdentifier:senderId.stringValue]; INSendMessageIntent *intent = [[INSendMessageIntent alloc]                     initWithRecipients:@[recipient]                     outgoingMessageType:INOutgoingMessageTypeUnknown                     content:messageText                     speakableGroupName:nil                     conversationIdentifier:threadId                     serviceName:@"Instagram Direct"                     sender:contact                     attachments:nil]; nseContentHandler([notifContent contentByUpdatingWithProvider:intent error:&error]); I am doing all of this in the Notification Service Extension. I can see that the image is valid/nonnull and the contentByUpdatingWithProvider:error: method does not set an error, so I am quite confused
Asked
by nightsd01.