Messages

RSS for tag

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

Posts under Messages tag

200 Posts

Post

Replies

Boosts

Views

Activity

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
679
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
689
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
833
May ’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
960
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
764
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
976
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
918
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
1.3k
Mar ’24
SMS/iMessage sender identification
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
1
4
1.3k
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.
1
1
1.2k
Feb ’24
iPhone 15 stickers bug
Just released iOS 17.4 beta 3 and they say: Messages Resolved Issues Fixed: Stickers (Memoji and 3rd party) might appear blank. (120994483) But it didn't work for me (( old stickers not showing up in stickers, new keep on disappearing
1
1
1.1k
Feb ’24
Message filtering extension appears on one phone but not another
I created a message filter extension, then edited only a few lines from the template source code (for example to return something in the capabilities query). However no matter what I do, I just cannot get the app to appear in the Settings app - when I turn on "Filter Unknown Senders" there's nothing that appears to select my app. I've tried rebuilding, deleting/reinstalling the app, restarting the phone, it just won't appear. But then I switched to another phone, and with this phone, when I turn on "Filter Unknown Senders" my app does appear and can be selected and enabled. But I still cannot get this to happen on the first phone. Why does the exact same app, exact same build of the app to be precise, appear on one phone but not the other? The phone it works on has iOS 17.2.1 and the phone it doesn't work on has iOS 17.1.1
1
0
864
Jan ’24
Unable to find In App Purchase capability in Imessage App
I've apple developer account, i already agreed all agreements, tax, and banking in appstore connect. I'm trying to create an imessage app that support in app purchase, but I'm unable to find the In app purchase in the list of capabilities, in both the main target and MessageExtension target. step to reproduce: new project -> imessage app -> choose MessageExtension target, try to add capability.
0
0
621
Jan ’24
Xcode 15.2 fails to display iMessage Apps
iMessage apps built in Xcode 15.2 fail to display on the simulator or real devices. No views are displayed. Steps to reproduce: Create a brand new iMessage app (New Project -> iMessage App) Run the app on simulator or a real device. You should see “Hello World” as displayed in the MainInterface.storyboard default UI. However nothing appears.
0
0
591
Jan ’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?
Replies
0
Boosts
0
Views
679
Activity
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!
Replies
0
Boosts
0
Views
689
Activity
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: &lt;meta property="og:video:url" content={url} /&gt; &lt;meta property="og:video:secure_url" content={url} /&gt; &lt;meta property="og:video:width" content="600" /&gt; &lt;meta property="og:video:height" content="982" /&gt; 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?
Replies
1
Boosts
0
Views
833
Activity
May ’24
SMS.DB Field Map
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.
Replies
0
Boosts
0
Views
1.2k
Activity
Apr ’24
SMS Filtering, Promotion vs. Transaction vs. Junk
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?
Replies
0
Boosts
0
Views
648
Activity
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?
Replies
0
Boosts
0
Views
960
Activity
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?
Replies
1
Boosts
0
Views
764
Activity
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.
Replies
0
Boosts
0
Views
976
Activity
Apr ’24
i want to crate a app that access all ios messages sms
i want create a app that categorize all sms in ios personal to professional in tab
Replies
1
Boosts
0
Views
828
Activity
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.
Replies
0
Boosts
0
Views
918
Activity
Mar ’24
Is there a way to get the list of contacts in a message or message chain or put them in a group
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?
Replies
0
Boosts
0
Views
698
Activity
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
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’24
SMS/iMessage sender identification
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
Replies
1
Boosts
4
Views
1.3k
Activity
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.
Replies
1
Boosts
1
Views
1.2k
Activity
Feb ’24
iPhone 15 stickers bug
Just released iOS 17.4 beta 3 and they say: Messages Resolved Issues Fixed: Stickers (Memoji and 3rd party) might appear blank. (120994483) But it didn't work for me (( old stickers not showing up in stickers, new keep on disappearing
Replies
1
Boosts
1
Views
1.1k
Activity
Feb ’24
Memoji not working iOS 17.4
Memoji not working with iOS 17.4 (21E5184k)download. I have tried resetting everything; toggling off / on to no avail. Any insight to resolve this? or just wait for the next update?
Replies
0
Boosts
0
Views
871
Activity
Feb ’24
Message filtering extension appears on one phone but not another
I created a message filter extension, then edited only a few lines from the template source code (for example to return something in the capabilities query). However no matter what I do, I just cannot get the app to appear in the Settings app - when I turn on "Filter Unknown Senders" there's nothing that appears to select my app. I've tried rebuilding, deleting/reinstalling the app, restarting the phone, it just won't appear. But then I switched to another phone, and with this phone, when I turn on "Filter Unknown Senders" my app does appear and can be selected and enabled. But I still cannot get this to happen on the first phone. Why does the exact same app, exact same build of the app to be precise, appear on one phone but not the other? The phone it works on has iOS 17.2.1 and the phone it doesn't work on has iOS 17.1.1
Replies
1
Boosts
0
Views
864
Activity
Jan ’24
Unable to find In App Purchase capability in Imessage App
I've apple developer account, i already agreed all agreements, tax, and banking in appstore connect. I'm trying to create an imessage app that support in app purchase, but I'm unable to find the In app purchase in the list of capabilities, in both the main target and MessageExtension target. step to reproduce: new project -> imessage app -> choose MessageExtension target, try to add capability.
Replies
0
Boosts
0
Views
621
Activity
Jan ’24
Xcode 15.2 fails to display iMessage Apps
iMessage apps built in Xcode 15.2 fail to display on the simulator or real devices. No views are displayed. Steps to reproduce: Create a brand new iMessage app (New Project -> iMessage App) Run the app on simulator or a real device. You should see “Hello World” as displayed in the MainInterface.storyboard default UI. However nothing appears.
Replies
0
Boosts
0
Views
591
Activity
Jan ’24