Post not yet marked as solved
I am on a fresh install of Xcode 15.3 on macOS 14.4 (23E214). I created an iMessage App template and signed it with my personal team's certificate. When I click the run button, it successfully builds and opens the simulator to the Messages app but does not open the compact extension view (or install the extension such that it shows up in the More messages extension list). This reproduces on my older laptop (same version of Xcode) as well as my friend's (also same version of Xcode).
Of note:
The IceCreamBuilder app installs and runs correctly with no modifications
I have not provided any icons for the messages extension
The iMessage App template comes with an empty main app that does not install on the home screen
The only console output that seems to differ from when I run the IceCreamBuilder is this message, which appears after a couple seconds of running the project:
unhandled process MobileSMS
Type: Error | Timestamp: 2024-03-09 00:41:07.763631-05:00 | Process: MobileSMS | Library: CoreParsec | Subsystem: com.apple.parsec | Category: CoreParsec | TID: 0xff097
Post not yet marked as solved
Hi, I am integrating iMessage app where I have audio which I want to send as Message. But My requirement is to send a custom layout with play button on it and by tapping on it I can play/pause audio.
Also On tapping on sent message view presentation style changes to expanded while I want to not have any presentation change. I just want to tap on message to play audio, nothing else.
recently I tried to make a custom layout and then by taking its screenshot I sent it as image, but issue is I cant make this view interqctive. I can play audio on tap of message but I also want to update the layout of the selected message.
func sendCustomViewMessage(url:URL) {
let customView = MessageView(frame: CGRect(x: 0, y: 0, width: 150, height: 50)) //CustomView(frame: CGRect(x: 0, y: 0, width: 200, height: 200)) // Initialize your custom view
customView.audioURL = url
let customViewImage = imageFromView(view: customView) // Convert custom view to UIImage
let layout = MSMessageTemplateLayout()
layout.image = customViewImage // Set the image of the message layout
layout.mediaFileURL = url
layout.caption = "Firt Message"
let message = MSMessage()
message.layout = layout
message.url = url
self.activeConversation?.insert(message, completionHandler: nil)
}
I am searching since days about this but I couldn't get any appropriate solution, can anyone help me on this?
Post not yet marked as solved
Hello everyone,
I hope you're all doing well. I'm reaching out to seek guidance on automating a task that involves sending 50 messages simultaneously using data stored in a Google Sheets document.
Here's a brief overview of what I'm trying to achieve:
I have a Google Sheets document containing pre-written messages along with associated recipient phone numbers.
My goal is to automate the process of retrieving this data and sending the corresponding messages to each recipient in one click.
While I'm familiar with using Shortcuts on my iPhone to automate certain tasks, I'm unsure about the best approach to handle this particular scenario. I've explored options such as using the "Get Content of URL" action to fetch data from the Google Sheets document, but I'm unsure how to proceed from there to automate the message sending process efficiently.
If anyone has experience or insights on how to accomplish this task effectively using Shortcuts or any other automation tool, I would greatly appreciate your guidance. My aim is to streamline this process and save time by sending these messages automatically with just one click.
Thank you in advance for any assistance or suggestions you can provide!
Post not yet marked as solved
Hi, I'm trying to get IMessage to display a video as part of a link preview with specific dimensions. The video appears, however the dimensions are incorrect. I've set the following tags:
<meta property="og:video:url" content={url} />
<meta property="og:video:secure_url" content={url} />
<meta property="og:video:width" content="600" />
<meta property="og:video:height" content="982" />
The video in question is 600x982, 1.1MB in size and an mp4. I've also tried setting the og dimensions to 390x736 since a separate working example url has those, but no luck.
Does anyone know what may be the issue?
Post not yet marked as solved
So, a bit of a complex situation.
My device is an iPhone 15 Pro. Basically, this person is a contact on my phone, and she has blocked my phone number. However, my Apple ID email is not blocked.
When I text this number on my iPad from the Apple ID, the message delivers and is Read. All normal so far.
My question here is:
On my iPhone 15, when I select "START NEW CONVERSATION FROM" and enable my Apple ID ..
Will iMessage merge the prior text conversation initiated using my phone number (which is now blocked), or how will it handle these 2 threads (one from my phone number, the other the Apple ID)?
She won't unblock, but she responds to my Apple ID email on iMessages. My goal here is to be able to receive and respond using my Apple ID on my phone, but I have a prior text conversation with this Contact on my Phone.
Thanks!
Post not yet marked as solved
I created a standalone iMessage app using Xcode template as the below:
I didn't change a single line of code except just populating all necessary icons. After installing the extension using Xcode, nothing showed up in the iMessage. Did I miss anything? I've been stuck here for many hours.
Post not yet marked as solved
Hello, I'm trying to get a better understanding of the SMS.db tables and fields. Does anybody have a document that describes each table and the fields within that table? I'd like to understand what each field in the Messages Table is used for but it would be a bonus if the is info is also available for the other tables contained in the SMS.db as well.
Post not yet marked as solved
I'm building a third party SMS filter. I want to know if there's any documentaion about what types of messages are supposed to go int each of the categories: "Junk", "Promotions", "Transactions".
If there isn't documentation, does anyone here know?
Post not yet marked as solved
Hi Everybody,
I would like to see the feature, that allows us to limit the access for selected apps to get access to our Contacts.
Especially apps like WhatsApp cannot be trusted, in my opinion, so I would love to see the possibility to prevent, that they just analyse our full Contact book and sell the data.
With a limited access feature, we can at least decide, which information we wanna share with suspicious companys.
What do you think and how could we reach the developers attention to get this with the next major update.
Greetings from Europe
Post not yet marked as solved
I am generating link previews with Open Graph specification and my server is returning a meta tag og:image with an image that is a shortlived signed S3 url.
This signed URL works in every other platform that supports open graph however iMessage does not display the image. Is there documentation on why it would or would not support a long signed url?
Post not yet marked as solved
Is there a way to retrieve an older backup to retrieve some lost text messages that I really need from 2022 with it being 2024? I really need some help. I have backed up and erased all content and settings to see if I could restore back to an older backup but I am only able to restore to today's backup 4/5/2024. Can anyone help me out please?
Post not yet marked as solved
Hello, I'm trying to enroll on the trader account program but after filling out the form, then entering the email verification code that was sent I don't ever receive the phone OTP code that I'm supposed to receive.
I'm not from the US, my country code is +51 so I select that on the dial code combo-box then enter my number that is 9 digits long.
However, I tried with a US phone from a friend and it works just fine, he does receive the confirmation code.
How can I fix this? I already have an app stuck for over 1 week because of this. I've called apple support multiple times and they send me to send evidence via email which I have. They've told me it was "scaled" to the engineering them but of course that's gonna take a long while for it to be fixed.
Has anyone encountered a similar problem? I believe there's gotta be a quirk or something in that form that will actually get the system to work.
Post not yet marked as solved
I am using MFMailComposeViewController to allow users to share in my app. Now my app is swiftUI so I had to wrap it in UIViewRepresentable. I have tied my mailComposeDelegate for dismissing as well.
struct MailComposerView: UIViewControllerRepresentable {
@Environment(\.presentationMode) var presentation
@Binding var result: Result<MFMailComposeResult, Error>?
var mailControllerWrapperBuilder: () -> MFMailComposerControllerWrappable = { MFMailComposeViewController() }
let subject: String
let body: String
class Coordinator: NSObject, MFMailComposeViewControllerDelegate {
@Binding var presentation: PresentationMode
@Binding var result: Result<MFMailComposeResult, Error>?
init(presentation: Binding<PresentationMode>,
result: Binding<Result<MFMailComposeResult, Error>?>) {
_presentation = presentation
_result = result
}
func mailComposeController(_ controller: MFMailComposeViewController,
didFinishWith result: MFMailComposeResult,
error: Error?) {
defer {
$presentation.wrappedValue.dismiss()
}
guard error == nil else {
if let error = error {
self.result = .failure(error)
} else {
self.result = .failure(NSError())
}
return
}
self.result = .success(result)
}
}
func makeCoordinator() -> Coordinator {
return Coordinator(presentation: presentation,
result: $result)
}
func makeUIViewController(context: UIViewControllerRepresentableContext<MailComposerView>) -> UIViewController {
var mailComposer = mailControllerWrapperBuilder()
mailComposer.setSubject(subject)
mailComposer.setMessageBody(body, isHTML: false)
mailComposer.mailComposeDelegate = context.coordinator
return mailComposer.getUIViewController()
}
func updateUIViewController(_ uiViewController: UIViewController,
context: UIViewControllerRepresentableContext<MailComposerView>) { }
}
protocol MFMailComposerControllerWrappable {
var mailComposeDelegate: MFMailComposeViewControllerDelegate? { get set }
var delegate: UINavigationControllerDelegate? { get set }
func setSubject(_ subject: String)
func setMessageBody(_ body: String, isHTML: Bool)
func getUIViewController() -> UIViewController
}
extension MFMailComposeViewController: MFMailComposerControllerWrappable {
func getUIViewController() -> UIViewController { self }
}
On my main view, which is a swiftui sheet, I present mail composer as a sheet.
@State var showMail = false
var body: some View {
VStack {
Button("Mail", action: {
showMail = true
})
}
.sheet(isPresented: $showMail, content: {
MailComposerView(result: $viewModel.mailResult, subject: "subject", body: "body")
.presentationDetents([.large])
})
}
On iOS 17 when swiping down, interactive dismiss is activated and shows user if they want to cancel sending mail.
While on iOS16 this behaviour is not observed.
I have tried following
A custom swiftui view in sheet has interactive dismiss
UIViewRespresentable of custom uiview has interactive dismiss
Seems like this bug has to do with MFMailComposeViewController itself.
Is there a known issue that was fixed in iOS 17? On other apple apps, this behaviour is not observed.
One fix that I have on my mind is to present mailcomposer via rootcontroller and not rely on swiftui sheet.
Post not yet marked as solved
i want create a app that categorize all sms in ios personal to professional in tab
Post not yet marked as solved
Ours is a mobile banking application which contains UPI facility provided by NPCI. For registering in UPI service customer need to complete SIM binding. But our customers who are using iPhone 14 and above with iOS version 17.2.1 and above are unable to complete their SIM binding process during registration process and thereby registration is failing which is causing dismay among our customers. In addition the customers are having enough SMS pack. We have cross checked with the service providers as well but they are also not getting any hits at their end. Kindly help us to resolve the issue so that the users can register without any hassle.
Post not yet marked as solved
Hello,
I am new to app development. I am trying to make an iMessage app. I created it and then added a SwiftUI view. It builds just fine and the view is visible on the storyboard, but the app is not present in iMessage on Simulator or on an actual device. What's wrong?
Thanks for any help.
import UIKit
import Messages
import SwiftUI
class MessagesViewController: MSMessagesAppViewController {
var hostingController: UIHostingController<CalendarView>?
override func viewDidLoad() {
super.viewDidLoad()
}
override func willBecomeActive(with conversation: MSConversation) {
super.willBecomeActive(with: conversation)
let swiftUIView = CalendarView()
let hostingController = UIHostingController(rootView: swiftUIView)
addChild(hostingController)
view.addSubview(hostingController.view)
hostingController.view.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([hostingController.view.leadingAnchor.constraint(equalTo: view.leadingAnchor), hostingController.view.trailingAnchor.constraint(equalTo: view.trailingAnchor), hostingController.view.topAnchor.constraint(equalTo: view.topAnchor), hostingController.view.bottomAnchor.constraint(equalTo: view.bottomAnchor)])
hostingController.didMove(toParent: self)
self.hostingController = hostingController
}
override func didResignActive(with conversation: MSConversation) {}
override func didReceive(_ message: MSMessage, conversation: MSConversation) {}
override func didStartSending(_ message: MSMessage, conversation: MSConversation) {}
override func didCancelSending(_ message: MSMessage, conversation: MSConversation) {}
override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) {}
override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {}
}
Post not yet marked as solved
Every time I try to update my newest sticker pack in Xcode, It gives me this error "warning: The CFBundleShortVersionString of an app extension ('1.2') must match that of its containing parent app ('1.0')."
Post not yet marked as solved
Is there a way to get the list of contacts in a message or message chain in Messages app on iOS.
At one time when I looked for a way to do this there was no available way without jailbreaking. Has anything changed? Is there a way to do this now?
Post not yet marked as solved
My requirement is here-
1- We need to implement functionality in my iOS app to do call (cellular call) without user interaction.
2- We need to implement functionality in my iOS app to send normal message to particular phone number without user interaction.
3- Fetch OS log (NOT MY APPLICATION LOG). we need to fetch OS log when cellular call going on in device this log need to collect in my iOS app for identify the network strength and other things like call is connected and disconnect etc. Thanks
Post not yet marked as solved
Dear Appple Dev Team,
we have developed an app to identify incoming phone calls via CallKit (https://developer.apple.com/documentation/callkit/cxcalldirectoryextensioncontext). This function works great. However, we are missing a similar function for SMS/iMessage sender identification. Is it possible to integrate this function into iOS.
Thanks
Markus