Messages

RSS for tag

Create app extensions that lets users send text, stickers, media files, and interactive messages using Messages.

Posts under Messages tag

87 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

What is timeout period in message filter extension's network query
In the documentation of deferQueryRequestToNetwork method which is used to do a network request on message filter extension. There is no mention of timeout period applied to network requests. https://developer.apple.com/documentation/sms_and_call_reporting/ilmessagefilterextensioncontext/2880240-deferqueryrequesttonetwork So my question is what is the timeout period of the deferQueryRequestToNetwork method? And is there a changelog that this timeout has changed at some point during iOS update?
0
0
164
Jun ’24
Send Custom Interactive Layout in iMessage Extension
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?
0
0
220
May ’24
Automating messages sending from google sheet data
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!
0
0
251
May ’24
IMessage doesn't respect og:video dimensions
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?
1
0
316
May ’24
Texting a Contact who's blocked my number but not Apple ID email
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!
0
0
304
Apr ’24
Open Graph iMessage og:image with Signed S3 Urls
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?
0
0
324
Apr ’24
Retrieving Texts from 2022
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?
1
0
311
Apr ’24
Trader Account - Phone Verification
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.
2
0
512
Apr ’24
MFMailComposeViewController Interactive Dismiss Not Working On iOS 16
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.
0
0
329
Apr ’24
Unable to complete SIM binding in iPhone 14 and above running on iOS 17.2.1 and above
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.
0
0
378
Mar ’24
Can i do cellular call from my iOS app without user interaction and send message to particular number without user interaction in iOS swift.
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
1
0
467
Mar ’24
iMessage app/extension icon not visible on iOS 17
I'm trying to make a simple iMessage app, which I haven't done before so I'm not super familiar with the process. I created a new project following the "iMessage App" template. I have an icon set named "iMessage App Icon" in the *MessagesExtension Assets catalog (and it says "Stickers Icon" in the top right corner). This is what was created by default with the project. I have filled out all of the icons in the iconset, and none of them have warnings. When I install the app into an iOS 16 simulator and open iMessage, the icon appears exactly as expected. However, when I install the app into an iOS 17 simulator, or onto my iPhone 15 Pro running 17.3.1, and scroll through the new iMessage app interface, my app still has the default white grid-lines styled icon. On basically every forum post I've read trying to solve this issue, I see people referring to "App Icon source in Target -> General", and in a normal app I would have that, however neither the host app target or the messages extension target have an "App Icons and Launch Screen" section. The only sections I have are "Supported Destinations", "Minimum Deployments", "Frameworks and Libraries", and "Development Assets". I'm not sure if this missing section is due to different versions of Xcode? (I am using 15.2) or if this indicates some larger problem with my project / the iMessage app template. Any leads as to solve this would be greatly appreciated.
0
0
519
Feb ’24