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

React Native - iOS - open iMessages Share Extension
I am creating an app where i am opening the direct share extension in app for different apps like instagram, snapchat and whatsapp. It is working fine i know there share extension bundle id and it open perfectly. I also need to open the iMessages share extension in app i have found the bundle id of iMessage share extension it is com.apple.UIKit.activity.Message but when i try to open it got error extension not found. Any one have any idea how i can find the right bundle if for iMessage share extension ? I am using an iOS SPM package LNExtensionExecutor and create a bridge between React Native and this native package.
0
0
595
Jan ’24
Navigating between sticker browsers and messages extensions and the main app
Happy new year! My app has the ability to generate stickers so I'm trying to connect two separate Messages extensions: The sticker browser and the app extension. The former is a repository and the latter is where stickers are made. It would be easy to create these two extensions and have them stand separately, like Apple's Memoji, but I'm trying to find a way to better streamline the user experience, such that they can navigate from the browser to the extension and back seamlessly. As far as I can tell, there's no indication that this is possible, but also nothing to indicate that it isn't. Similarly, are there ways to navigate from the main app to a messages extension, or go the other way? From what I've read, there's no known way to do the former but there was a way to do the latter that no longer works. tl;dr - Is it possible for users to press a button to go from a MSStickerBrowserViewController to a MSMessagesAppViewController (both belonging to the same app group) or back? Or go from the main app to either or back?
0
0
394
Jan ’24
Message Filtering Extention Not Working (Site/Fmwk Approval: denied)
Hi, there. I hope I can find a solution here. I'm making a sms filtering app which apple provides us in a template. And I'm going to use a the server for filtering. So, as mentioned in the link, https://developer.apple.com/documentation/sms_and_call_reporting/sms_and_mms_message_filtering/creating_a_message_filter_app_extension I did all those required, but as I tested the app I found that it was not working and found out that there wasn't any request from the app to the server. So I check the sysdiagnose - swutil_show.txt file, and this is what I got, Service: messagefilter App ID: App Version: 1.0 App PI: <LSPersistentIdentifier 0xd5681a0e0> { v = 0, t = 0x8, u = 0x840, db = 91BDA97A-5780-4A70-B971-BC7C7DAA63B8, {length = 8, bytes = 0x4008000000000000} } Domain: User Approval: unspecified Site/Fmwk Approval: denied Flags: developer Last Checked: 2024-01-06 08:06:47 +0000 Next Check: 2024-01-11 07:41:14 +0000 As you can see, I got denied in Site/Fmwk Approval. I think that means, they got the aasa file right, but the content was inappropriate. That's what I guess right now. This is my aasa file { "messagefilter": { "apps": ["(TEAMID).(APP BUNDLE ID)", "(TEAMID).(EXTENSION BUNDLE ID"] } } I think there is nothing wrong. I tried the search and use GPT but, there is no solution left so I posted here. I also tried "sudo swcutil verify" on terminal and the result was "pattern matched". If you have any tips or insights, please help this poor guy. Thanks.
0
0
414
Jan ’24
Scrolling sticker browser on a Messages App sheet causes sheet to move
As someone who learned Swift via SwiftUI, UIKit is completely alien to me, so I apologize if this is actually a very simple issue. I have a Messages extension that includes a sticker browser within it. In this extension, the MSMessagesAppViewController hosts a SwiftUI View, which in turn hosts a UIViewRepresentable version of MSStickerBrowserView. The whole Messages App sheet moves with an upward drag, and can switch to its expanded mode, whenever the browser is scrolled to the top (first sticker is at top left), but it doesn't budge when the browser is scrolled to the other end when it should allow the sheet to move upward with the drag. It seems something is reversed within the gesture priority management that allows a sheet to be moved in the appropriate direction when a contained scrollview is at the appropriate end. Things I've tried while reaching a diagnosis include: Limiting the presentation style to compact (the modal still moves, but never succeeds in changing) Adding competing highPriorityGestures in the SwiftUI view, set at various locations Inserting a rectangle with allowsHitTesting(false) beneath the browser Changing firstResponder statuses for all relevant views Changing GestureResponder priorities (there are no gesture responders in all views examined) Things I've considered but don't have the technical skills to implement: Have the view scroll a little downwards programmatically (like what can be done via ScrollViewReader in SwiftUI), but I have no idea how this can be done via MSStickerBrowserView or UIKit in general. Maybe the MSStickerBrowserView thinks its always in the expanded state (when the sheet is expanded, the end-drags work fine). If this is the case, if there's a way to either fix this misconception (via controller's didTransition) or do away with end drags in general, the problem should go away. Any pointers would be greatly appreciated!
2
0
638
Jan ’24
How do I submit an UPDATE for my Sticker Pack in xCode 15??
I have 5 sticker packs in the App Store. I had an older Mac and it finally was too old for more MacOS updates and therefore too old to update xCode, so I haven't done any updates to my packs or looked at xCode in nearly 3 years. I FINALLY got a new Mac. I've got xCode 15 installed and with latest updates - and it looks so foreign! Things I can't find: Where in xCode can I change the version and build #? This used to be so obvious. I decided to start from scratch with my project. Clicked on new Sticker Pack App. Dragged in my icons and stickers and new updates I've created. When I went to archive, it says it can't because it already exists. Oh boy. In addition to this, I'm also lost on how to put in ALT tags for accessibility. This was also super obvious in the version of xCode I was using 3 years ago - I could click on each sticker and in the right pane I could put in the words for voice over for visually impaired. Now that is gone. One of my reviews thanked me for making my sticker pack accessible. I don't want to lose that ability - but I cannot find out where the heck it's hiding. The OnDemand Resource Tags definitely aren't it - since adding info in one puts the same tags on ALL the stickers.
4
0
555
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
328
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
329
Jan ’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
0
0
469
Jan ’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
The base messages extension template builds but won't install or load
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
7
1
851
5d
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
Launching iMessage App
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) {} }
1
0
388
5d
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
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
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
312
Apr ’24