Messages

RSS for tag

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

Messages Documentation

Posts under Messages tag

71 Posts
Sort by:
Post not yet marked as solved
1 Replies
87 Views
Hello there , i am new to apple developing and I was wondering if there’s a native api or some way to access your iMessage chat history and maybe get it in Jason or xml format?
Posted
by
Post not yet marked as solved
0 Replies
86 Views
We have been having problems with our app clip not working when sharing through iMessage. The app and app clip are published and work correctly when scanning a QR code that points to the URL: https://www.coderus.com/locations?loc=1 however if this same URL is shared through the iMessage app, a link to the website displays and not the app clip card. We have confirmed that: AASA file is available and has the type application/json Both devices are above iOS 14 Both devices are in each other's contacts The website has the meta tag for the smart app clip banner The website has a meta tag for the og:image Launch experiences have been configured on AppStoreConnect - as said before, the QR codes work correctly The link leads to a 404 page, I wasn't sure if there needs to be an actual page that the link points to as app clips seem to work fine without when scanning the QR code through the camera app.
Post not yet marked as solved
0 Replies
77 Views
Does apple expose any apis to manipulate a Memoji programatically? I find Apple's way of creating memojis extremely unpleasant to use - and would like to create an alternative. So I'd essentially be looking at some way of listing the parameters available (eye colour, hair style etc) - listing the set of choices for each parameter, and producing a Memoji from a set of parameters. (And for extra credit, taking a picture of said memoji, or reading an existing emoji as a set of parameters). Thanks, Darren
Posted
by
Post not yet marked as solved
0 Replies
128 Views
Does anybody knows how to show or enable message button in CallKit screen when user receives incoming call? I tried to search multiple sources but I couldn't find any information about this topic. It never appears in my CallKit app. I can only see Remind Me button.
Posted
by
Post not yet marked as solved
0 Replies
112 Views
I'm developing iOS message extension to filter the unwanted message. The plugin needs a help from server to filter the message. However, the iOS returned the error NSURLErrorDomain while requesting the server. Based on the official document, I defined the key/value pair in Info.plist of Message Extension. ILMessageFilterExtensionNetworkURL has value: https://mydomain.io/api/v1/sms The code that I test the request as follows: let url = URL(string: "https://mydomain.io/api/v1/sms")! var request = URLRequest(url: url) request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.setValue("you-value-goes-here", forHTTPHeaderField: "X-API-KEY") let task = URLSession.shared.dataTask(with: request) { data, _, error in if let data = data { print(data) } else if let error = error { print("Http failed: \(error)") } } task.resume() From the stack trace, as far as I known, there is a problem with dns resolution. Why does this happened and how to fix this case? [0] (null) "_kCFStreamErrorCodeKey" : Int32(-72000) [1] (null) "NSUnderlyingError" : domain: "kCFErrorDomainCFNetwork" - code: 18446744073709550613 [2] (null) "_NSURLErrorFailingURLSessionTaskErrorKey" : "LocalDataTask <B496A974-7009-4FCE-BF45-FEC07BA1E8DF>.<1>" [3] (null) "_NSURLErrorRelatedURLSessionTaskErrorKey" : 1 element [4] (null) "NSLocalizedDescription" : "A server with the specified hostname could not be found." Thanks
Posted
by
Post not yet marked as solved
2 Replies
167 Views
I need to send an OTP authorization code to verify a user's phone number. For testing, I've been using an e-mail sent to a phone number via AT&T's gateway but I don't want this app to be limited to AT&T customers only so I'm looking for a better solution. It occurred to me that perhaps I could use iMessage for this instead, as long as the user has their phone number setup in their iMessage account. The question is, is there an e-mail address I could send to like I do with AT&T such as 5551234567 @ imessage.com? I do not want iMessage to open on the user's device. That would defeat the entire purpose. I am trying to figure out a way to send an e-mail to user's phone number that is already setup in iMessage on their device/account.
Posted
by
Post marked as solved
3 Replies
215 Views
I just made simple StickerPackExtension app. just drag and drop images. I expect watching simple sticker pack app. but only show blank display and 2022-06-01 10:05:10.836437+0900 TestApp1 StickerPackExtension[17496:15068062] Failed to inherit CoreMedia permissions from 17484: (null) 2022-06-01 10:05:10.946676+0900 TestApp1 StickerPackExtension[17496:15067860] [PPT] Error creating the CFMessagePort needed to communicate with PPT. this error. is it impossible make a simple sticker app by using StickerPackExtension?
Posted
by
Post not yet marked as solved
0 Replies
144 Views
Hi! I'm new to Swift and I'm trying to build a simple app with a feature that will allow a user to send an sms that automatically includes their location. I've got the sending of the message covered however I'm lost at how I can automatically put the user's current location in the message's body. Any kind of help would be much appreciated, thank you! Here is my code so far: import SwiftUI import CoreLocation import UIKit  struct MessageView: View {     @State private var isShowingMessages = false       var body: some View {         Button("Show Messages") {             self.isShowingMessages = true         }         .sheet(isPresented: self.$isShowingMessages) {          MessageComposeView(recipients: ["09389216875"], body: "Emergency, I am here with latitude: \(locationManager.location.coordinate.latitude); longitude: \(locationManager.location.coordinate.longitude) {messageSent in print("MessageComposeView with message sent? \(messageSent)") \\ I currently get an error in this chunk                 }     }     } class ViewController: UIViewController, CLLocationManagerDelegate {    var locationManager: CLLocationManager!   override func viewDidLoad() {         super.viewDidLoad()         locationManager = CLLocationManager()         locationManager.delegate = self         locationManager.requestWhenInUseAuthorization()     } func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {         if status != .authorizedWhenInUse {return}         locationManager.desiredAccuracy = kCLLocationAccuracyBest         locationManager.startUpdatingLocation()         let locValue: CLLocationCoordinate2D = manager.location!.coordinate         print("locations = \(locValue.latitude) \(locValue.longitude)")     } }
Posted
by
Post not yet marked as solved
0 Replies
141 Views
I'm trying to create a "hello world" a Message Filtering extension for iOS based on the following steps: Create a new project. Go to File -> Target -> Add Message Filter App Extension, enter a name MyMessageFiltering. Xcode generate the folder MyMessageFiltering contains MessageFilterExtension.swift In the MessageFilterExtension.swift, add one line below the handle function as follow: func handle(_ queryRequest: ILMessageFilterQueryRequest, context: ILMessageFilterExtensionContext, completion: @escaping (ILMessageFilterQueryResponse) -> Void) { NSLog("FILTEREXTENSION - handle") // add the log to see check the function handle Run the app Enable the app in message extension on iPhone by Settings -> Message -> Unknown & spam Start the console app and record the phone. Send a sms message to iPhone by an unknown number (which is not existing in iPhone contact). There is no log from the console app or XCode console What steps did I do wrong to test the sms extension filtering ?
Posted
by
Post not yet marked as solved
0 Replies
176 Views
I would like to perform certain actions when I receive messages from the Bank. There is an option in shortcuts to run the automation when receiving messages from certain contacts. The problem is that I can't store the bank in my contacts as they do not have a phone number or something. I want to achieve this goal in any possible way. What I have tried is to store - their contact - in my contacts so that I will be able to set up the automation. When I tried to store iPhone just shows me the prompt to create a contact with NO values whatsoever. SO it will just be an empty contact. Any ideas how on how I can achieve that?
Posted
by
Post not yet marked as solved
0 Replies
123 Views
I wanted to make an iMessage sticker pack, but I cant load the stickers in the preview section. logs say "2022-05-03 21:19:13.419469+0900 lifeofacircle StickerPackExtension[15174:722339] Failed to inherit CoreMedia permissions from 15151: (null) objc[15174]: Class _PathPoint is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x11e67b338) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x13d784fe8). One of the two will be used. Which one is undefined. objc[15174]: Class _PointQueue is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x11e67b310) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x13d785010). One of the two will be used. Which one is undefined. 2022-05-03 21:19:13.540986+0900 lifeofacircle StickerPackExtension[15174:722265] [PPT] Error creating the CFMessagePort needed to communicate with PPT. 2022-05-03 21:24:12.287466+0900 lifeofacircle StickerPackExtension[15174:728184] Failed to inherit CoreMedia permissions from 15151: (null) 2022-05-03 21:24:12.307225+0900 lifeofacircle StickerPackExtension[15174:722265] [PPT] Error creating the CFMessagePort needed to communicate with PPT." I do not know what ppt means and I do not know whats the problem please help me
Posted
by
Post marked as solved
3 Replies
291 Views
Hi, Could You please let me know how to convert such integer "565599639274028992" to real date? It comes from column "date" table "messages" base "3d0d7e5fb2ce288813306e4d4636395e047a3d28.mddata That date should be 4/Dec/2018 morning hour timezone GMT+1 thanks
Posted
by
Post not yet marked as solved
0 Replies
172 Views
I have an regular iOS app where I have added a new Sticker Pack Extension. It's runs fine in Simulator and Phone. Then I submitted it to TestFlight for beta testing. When installing from testflight, the iOS app installs fine along with the Sticker Pack in iMessage. However, when submitting for Appstore, appstoreconnect shows the host iOS app and the Sticker Pack extension in the build. But, after having the app Ready for Sale in the Appstore, when I install the app from the appstore, the host iOS app installs fine but the Sticker Pack extension in iMessage is totally missing. Any idea what might be wrong? I am using Xcode 13 on MacOS Big Sur 11.6
Posted
by
Post not yet marked as solved
0 Replies
143 Views
How can enterprises register iMessages in batches and unlock a large number of iMessages registered with the same IP address
Posted
by
Post not yet marked as solved
1 Replies
155 Views
My messages keep been merged with an unknown number on my phone. I've lost all messages how do I retrieve them back?
Posted
by