Posts

Post not yet marked as solved
0 Replies
323 Views
Are we allowed to upload apps to the app store which require that the user get their own api key and enter it into the app to get access to web data apis? For example a new reader that requires the user to get their own key to a given news api and enter that as part of the setup to use the app. That way the developer does not have to worry about paying the api monthly feed for the higher level access to the API and the user gets 100 free requests per day and if they want more they can pay themselves for the increased access.
Posted
by greenMtn.
Last updated
.
Post not yet marked as solved
0 Replies
920 Views
When I first wrote this bar code scanning inventory app I was getting object metadata from an http api so I had to set App Transport Security to allow arbitrary loads = yes. The app uses a second api but it is an https api. I have since changed the http api to https and I expected that using two https apis I should be able to turn App Transport Security allow arbitrary loads to No, but when I do the newly secured data api returns data fine, but the original https api used to get an image does not return the image. The image data is a property of the data object coming from the newly secured api. I am using the UIImageView extension below to get the image data. extension UIImageView{ func setImageFromURl(stringImageUrl url: String){ if let url = NSURL(string: url) { if let data = NSData(contentsOf: url as URL) { self.image = UIImage(data: data as Data) } } } } The stringImageUrl passed in comes from the imageLarge property on the data object: imageLarge String "https://get-thumb.herokuapp.com/getThumbLarge.php?objectid=9371" this how the imageView is called: DispatchQueue.main.async { self.objectDetails.text = displayText self.imageVW.setImageFromURl(stringImageUrl: anObject.imageLarge) } I am planning on uploading the app to the app store business and I am under the impression that setting allow arbitrary loads to Yes is not allowed for an app store app. Is there a way to get image data from the heroku api in a different way that will work without having allow arbitrary loads = yes?
Posted
by greenMtn.
Last updated
.
Post not yet marked as solved
3 Replies
2.3k Views
I have been using UIViewControllerRepresentable with MFmailComposer to pre-populate an email message from a SwiftUI view. I am getting the following error in the console when sending the message: 2020-10-02 09:27:58.559227-0400 CC0 Notes2[1288:471808] [PPT] Error creating the CFMessagePort needed to communicate with PPT. In spite of the error, the message sends successfully. On IPadOS I get a Swoosh to show that the mail was sent, but on iOS I get a successful mail send but no Swoosh sound to confirm the send. Is this error a bug? I am using XCode 12.0.1, iPadOS 14.0.1 and iPOS 14.0.1 If i can not get a Swoosh out of iOS, how can I tap into the send result to confirm to the user that the mail has been sent?
Posted
by greenMtn.
Last updated
.
Post not yet marked as solved
0 Replies
587 Views
I am working on an app that uses a fair number of moderately sized images. I have been prototyping the app by pulling the images down from a web server and caching them. I am somewhat concerned that if I sell an app on the app store that relies on images being available from a server, that I will be obligated to keep paying for the server indefinitely. What is a reasonable expectation for a developer to keep images available on a server for the life of an app? What is the reasonable supported life of an app? Embedding the images in the app is not an option because access to the images on a server is a core part of the functionality. Would a free app with subscription model make more sense? If I decided that I wanted to stop selling one year subscriptions at some point, could I remove the app from the store and terminate the server after the last subscription expired?
Posted
by greenMtn.
Last updated
.
Post not yet marked as solved
0 Replies
358 Views
Hi, I am working on an app that pulls data from my personal wordpress site. I have to add allow arbitrary loads to my app to get the data. Will I be able to upload the app to the app store with allow arbitrary loads in the info.plist? thanks
Posted
by greenMtn.
Last updated
.
Post not yet marked as solved
0 Replies
1.1k Views
Hi, I am using UIViewControllerRepresentable to send email from SwiftUI. The mail goes out, but I do not get the swoosh sound. I think that is necessary to assure the user that the mail was sent. If I can not get the swosh sound, is there something I can check to put up some indication that the mail was sent? I am using this code: struct MailView: UIViewControllerRepresentable {   @EnvironmentObject var theBody: GlobalData   var imageData: NoteImageData           @Binding var isShowing: Bool   @Binding var result: Result<MFMailComposeResult, Error>?   class Coordinator: NSObject, MFMailComposeViewControllerDelegate {     @Binding var isShowing: Bool     @Binding var result: Result<MFMailComposeResult, Error>?     init(isShowing: Binding<Bool>,        result: Binding<Result<MFMailComposeResult, Error>?>) {       isShowing = isShowing       result = result     }     func mailComposeController( controller: MFMailComposeViewController,                   didFinishWith result: MFMailComposeResult,                   error: Error?) {       defer {         isShowing = false       }       guard error == nil else {         self.result = .failure(error!)         return       }       self.result = .success(result)     }   }   func makeCoordinator() -> Coordinator {     return Coordinator(isShowing: $isShowing,               result: $result)   }   func makeUIViewController(context: UIViewControllerRepresentableContext<MailView>) -> MFMailComposeViewController {     let vc = MFMailComposeViewController()     vc.mailComposeDelegate = context.coordinator     vc.setSubject("")     //vc.setMessageBody(imageData.description , isHTML: true)     vc.setMessageBody( theBody.mailBody, isHTML: true)     return vc   }   func updateUIViewController( uiViewController: MFMailComposeViewController,                 context: UIViewControllerRepresentableContext<MailView>) {   } }
Posted
by greenMtn.
Last updated
.
Post marked as solved
3 Replies
914 Views
Hi, My aging 2011 iMac 21" is still a great machine with 12 megs of RAM and a 512 Samsung SSD upgrade, but it no loger runs the latest version of xCode and will not run Catelina. Hearing all the talk about an imminint switch from Intel to Apple RISC of some sort, I am wondering if it is a good idea to invest 2000.00+ dollars into a new 27" iMac or do something like pickup a used macMini for the interim. I imagine that there will be issues like:Will the performance of Intel iMacs take a hit when Apple updates macOS for RISC? Will we be able to build iOS and macOS for RISC on Intel iMacs?Will the resale value (should I need it) of an new Intel iMac fall preciipitously if new RISC iMacs appear in a year or two?Thanks for your thoughts.
Posted
by greenMtn.
Last updated
.