Post not yet marked as solved
How can my app know if a text message is sent to a device that has my app installed?
Is there a user notification or a remote notification that notifies when a text message or iMessage arrives on the device?
i’m willing to try anything.
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?
Apparently, now plain iMessage sticker packs require a privacy policy, so where can I find one that discloses that it would be impossible for my sticker pack to collect any information, so I can publish a new version of the thing?
Post not yet marked as solved
Hello,My name is Dylan and I made some animated stickers in Motion following these instructions: https://developer.apple.com/support/stickers/motion/.At first I made medium sized stickers but I got a warning message that "The sticker sequence "SEQUENCE NAME" cannot be larger than 512000 bytes, but it's XXXXXX bytes."I changed to small size and one sticker sequence is fine (SA) while the other (SB) still generates the same error as above.In SA, the individual files are 266 KB each and in SB they are 230 KB each.Any ideas why one sequence works while the other does not?
Post not yet marked as solved
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?
Post not yet marked as solved
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
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
Post not yet marked as solved
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.
Post not yet marked as solved
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
Post not yet marked as solved
Hey !
I created quickly a sticker pack for iMessage with XCODE preset but it's not working when I send it to my iPhone XS Max. When I use the simulator on an iPhone 11, it's working fine, but on my iPhone the sticker pack crash on first launch, and then it shows empty (no stickers).
I'm completely new to XCODE and don't have any notion of Swift language, so I'm not able to understand the errors. I‘m just trying to make this sticker as an extra stuff for my bachelor semester evaluation. If someone could help me on this one, I'd be so grateful.
The only thing I'm able to understand, is that there seems to be some issues with my Bundle Identifier. But I've check quite everything I've been able to found on the internet to correct any issue around it.
Here is the console log of when I upload it to my iPhone:
2022-01-17 12:11:52.263254+0100 MobileSMS[670:28648] [ServerBag] Checked bag access permission -- allowed? YES {self: <IDSCourierServerBag: 0x281c155c0>, hasMachAccess: YES, hasEntitlements: YES}
2022-01-17 12:11:52.363775+0100 MobileSMS[670:28662] [PAAccessLogger] Failed to log access with error: access=<PATCCAccess 0x28275f690> accessor:<<PAApplication 0x280a131b0 identifierType:inProcess assumedIdentity:(null)>> identifier:A08A13E1-F142-46D2-B8A6-16D8A2DF9646 kind:intervalEnd timestampAdjustment:0 tccService:kTCCServiceAddressBook, error=Error Domain=PAErrorDomain Code=10 "Possibly incomplete access interval automatically ended by daemon"
2022-01-17 12:11:52.411754+0100 MobileSMS[670:28646] [Warning] Could not determine if com.apple.messages.browser.MorePlugin is a recent or favorite!
2022-01-17 12:11:52.535336+0100 MobileSMS[670:28646] [Graphics] UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
2022-01-17 12:11:52.684382+0100 MobileSMS[670:28646] Metal API Validation Enabled
2022-01-17 12:11:52.736162+0100 MobileSMS[670:28646] [Warning] Could not determine if com.apple.messages.browser.MorePlugin is a recent or favorite!
2022-01-17 12:11:52.741616+0100 MobileSMS[670:28646] [Warning] Could not determine if com.apple.messages.browser.MorePlugin is a recent or favorite!
2022-01-17 12:11:53.413671+0100 MobileSMS[670:28646] [TraitCollection] Class CKBrowserSwitcherViewController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
2022-01-17 12:11:53.436811+0100 MobileSMS[670:28646] [NSExtension] Extension request contains input items but the extension point does not specify a set of allowed payload classes. The extension point's NSExtensionContext subclass must implement `+_allowedItemPayloadClasses`. This must return the set of allowed NSExtensionItem payload classes. In future, this request will fail with an error. Extension: <EXConcreteExtension: 0x281c25800> {id = fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension} Items: (
"<NSExtensionItem: 0x282b0c580> - userInfo: {\n \"context-is-primary\" = 1;\n \"host-view-bounds\" = \"NSRect: {{0, 0}, {0, 27}}\";\n}"
)
2022-01-17 12:11:53.480000+0100 MobileSMS[670:28653] [lifecycle] [u 0C8AD0DC-26EC-4455-A474-FC1E4988B671:m (null)] [fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension(1.0)] Failed to start plugin; pkd returned an error: Error Domain=PlugInKit Code=4 "RBSLaunchRequest error trying to launch plugin fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension(0C8AD0DC-26EC-4455-A474-FC1E4988B671): Error Domain=RBSRequestErrorDomain Code=5 "Launched process exited during launch." UserInfo={NSLocalizedFailureReason=Launched process exited during launch.}" UserInfo={NSLocalizedDescription=RBSLaunchRequest error trying to launch plugin fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension(0C8AD0DC-26EC-4455-A474-FC1E4988B671): Error Domain=RBSRequestErrorDomain Code=5 "Launched process exited during launch." UserInfo={NSLocalizedFailureReason=Launched process exited during launch.}}
2022-01-17 12:11:53.480116+0100 MobileSMS[670:28653] [NSExtension] Plugin <id<PKPlugIn>: 0x10285b520; core = <[u 0C8AD0DC-26EC-4455-A474-FC1E4988B671] [fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension(1.0)],[d 88079B57-94D8-4D22-BFA5-F007F012FCAB] [/private/var/containers/Bundle/Application/B972BCCA-06C7-4B10-95FA-65BAB8F63DB8/ECAL Feel good – Alexis Gargaloni.app/PlugIns/ECAL Feel good – Alexis Gargaloni StickerPackExtension.appex]>, instance = [(null)], state = 3, useCount = 0> must have pid! Extension request will fail
2022-01-17 12:11:53.480173+0100 MobileSMS[670:28653] [NSExtension] Failed to aquire assertion for plugin: <id<PKPlugIn>: 0x10285b520; core = <[u 0C8AD0DC-26EC-4455-A474-FC1E4988B671] [fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension(1.0)],[d 88079B57-94D8-4D22-BFA5-F007F012FCAB] [/private/var/containers/Bundle/Application/B972BCCA-06C7-4B10-95FA-65BAB8F63DB8/ECAL Feel good – Alexis Gargaloni.app/PlugIns/ECAL Feel good – Alexis Gargaloni StickerPackExtension.appex]>, instance = [(null)], state = 3, useCount = 0> pid: 0
2022-01-17 12:11:53.480209+0100 MobileSMS[670:28653] [NSExtension] Unable to acquire process assertion in beginUsing: with plugin identifier: fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension, killing plugin
2022-01-17 12:11:53.480250+0100 MobileSMS[670:28651] [NSExtension] begin extension request <EXExtensionRequest: 0x283c06400> Request PK UUID: 752EBE94-8BAB-4B2C-AC96-896F00B8B81B with item count 1 complete with error: Error Domain=PlugInKit Code=4 "RBSLaunchRequest error trying to launch plugin fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension(0C8AD0DC-26EC-4455-A474-FC1E4988B671): Error Domain=RBSRequestErrorDomain Code=5 "Launched process exited during launch." UserInfo={NSLocalizedFailureReason=Launched process exited during launch.}" UserInfo={NSLocalizedDescription=RBSLaunchRequest error trying to launch plugin fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension(0C8AD0DC-26EC-4455-A474-FC1E4988B671): Error Domain=RBSRequestErrorDomain Code=5 "Launched process exited during launch." UserInfo={NSLocalizedFailureReason=Launched process exited during launch.}}
2022-01-17 12:11:53.480546+0100 MobileSMS[670:28653] [NSExtension] PlugInKit error in beginUsing: with plugin identifier: fr.alexisgargaloni.ECAL-Feel-good---Alexis-Gargaloni.StickerPackExtension, killing plugin
Post not yet marked as solved
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.
Post not yet marked as solved
I am trying to create an iMessage extension but don't like to use the story board. Is there any way to just get a Content View swift UI file so that I can create the UI in text code. I am very new to swift UI.
Post not yet marked as solved
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)")
}
}
Post not yet marked as solved
Hi folks,I just started building an iMessage app onto one of our iOS 10 beta developer devices, and I've run into an issue when attempting to access NSUserDefaults which are stored in our App Group's shared container.This only occurs when building directly to a device - this doesn't happen when building onto the simulator.[User Defaults] Failed to read values in CFPrefsPlistSource (Domain: group.com.company.App, User: kCFPreferencesAnyUser, ByHost: Yes, Container: null: Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsdThis is with XCode Beta 6 and iOS 10 Beta 8.Is anyone else experiencing this? I found this one SO post which seems to be what we're running into: http://stackoverflow.com/questions/38275395/failed-to-read-values-in-cfprefsplistsource-ios-10
Post not yet marked as solved
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 ?
Post not yet marked as solved
The didFinishWithResult delegate method of MFMessageComposeViewController shows that the message has been sent successfully, even when the device is in airplane mode or when the device has no SIM,but the message sending is failed.The delegate does not go through the failure state.Why doesnt it go to failure state?.Please give me some suggestion on this. The code is given as below:
{
		MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
		picker.messageComposeDelegate = self;
		
		// You can specify one or more preconfigured recipients.	The user has
		// the option to remove or add recipients from the message composer view
		// controller.
		/* picker.recipients = @[@"Phone number here"]; */
		
		// You can specify the initial message text that will appear in the message
		// composer view controller.
		picker.body = @"Hello from California!";
		
		[self presentViewController:picker animated:YES completion:NULL];
}
//
//	messageComposeViewController:didFinishWithResult:
//	Dismisses the message composition interface when users tap Cancel or Send.
//	Proceeds to update the feedback message field with the result of the
//	operation.
// (void)messageComposeViewController:(MFMessageComposeViewController *)controller
							didFinishWithResult:(MessageComposeResult)result
{
		self.feedbackMsg.hidden = NO;
		// Notifies users about errors associated with the interface
		switch (result)
		{
				case MessageComposeResultCancelled:
						self.feedbackMsg.text = @"Result: SMS sending canceled";
						break;
				case MessageComposeResultSent:
						self.feedbackMsg.text = @"Result: SMS sent";
						break;
				case MessageComposeResultFailed:
						self.feedbackMsg.text = @"Result: SMS sending failed";
						break;
				default:
						self.feedbackMsg.text = @"Result: SMS not sent";
						break;
		}
		
		[self dismissViewControllerAnimated:YES completion:NULL];
}
For me and other multiple devices when we press "CANCEL" or "SEND" message the correct delegates are fired. But when I switch ON the AIRPLANE Mode or the device with no SIM still the MessageComposeResultSent Is fired. Can some one tell clearly when the MessageComposeResultFailed is fired? Any live steps? Please kindly help me
This is my last hope. I just want know when the Status Failed gets fired with step by step procedure
Post not yet marked as solved
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?
Post not yet marked as solved
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
Post not yet marked as solved
I've created a sticker app extension for my game in Xcode and when i run it on my device or download it from TestFlight the sticker app shows no icon in messages and says Messages App Plugin and shows no stickers
Post not yet marked as solved
I'm trying to make an app for iMessages and Facetime that allows users to upload custom Animojis based on 3d Files. Is this possible?
I'm running into troubles and could really use some help from my fellow devs.
Thanks,
Ryan