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

81 Posts
Sort by:
Post not yet marked as solved
1 Replies
728 Views
Greetings! I am currently working on Message Filtering iOS App extension: https://developer.apple.com/documentation/sms_and_call_reporting/sms_and_mms_message_filtering We are using the approach to defer the query to an associated server: https://developer.apple.com/documentation/sms_and_call_reporting/ilmessagefilterextensioncontext/2880240-deferqueryrequesttonetwork Although iOS ensures that no other app extension can make these requests to the server via associated domains feature, the security team is concerned a lot about creating an endpoint which has no client-server authentication at all (OAuth or bearer token authentication). It means that the endpoint may potentially be used by some thirdparty scripts, apps, etc, and we won't be able to distinguish this from valid clients on the backend. I am aware of the note in documentation saying For privacy reasons, the system handles all communication with your associated server; your Message Filter app extension can’t access the network directly. Your app extension also can’t write data to containers shared with the containing app. But maybe there is a way to add any client-server network authentication to requests made by deferring the message filter query to our server? Thanks in advance, Konstantin
Posted Last updated
.
Post not yet marked as solved
1 Replies
730 Views
About 8 or 9 months ago now, we changed our open graph meta tags on https://www.jabraenhance.com, but since then, the Messages and Mail apps have been showing our old og:image and og:title values, which points to our old company name / brand. Any suggestions on what could be causing this? As far as I can tell, everything is setup correctly, best practices are being followed, etc, but Apple's bot scraper hasn't picked up these changes (for a long time). What is expected? Open https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fwww.jabraenhance.com The Link Preview shown in that tool is how it SHOULD look. What we've confirmed / debugged so far: These meta tags are served as static html from our server, no javascript is needed to generate them. We have followed the advice on Apple's Best Practices site, according to this doc, everything should work: https://developer.apple.com/library/archive/technotes/tn2444/_index.html We have confirmed correct behavior using facebooks debug tool https://developers.facebook.com/tools/debug Our meta tags <!DOCTYPE html> <html lang="en" prefix="og: https://ogp.me/ns#"> <head> <meta property="og:title" content="High-quality hearing aids with expert care." /> <meta property="og:image" content="https://cdn.jabraenhance.com/web/meta/meta_jabra_enhance.jpg?cache=1" /> </head>
Posted
by mattrwh.
Last updated
.
Post not yet marked as solved
0 Replies
378 Views
Hi, I am unable to select Sticker as either a primary or secondary category for my app on the appstoreconnect. My app has a main app and an iMessage extension that revolves around the use of stickers (for iMessage). Looks like the person in the thread below was able to solve their issue by uploading their build first before selecting a category but that did not work for me. I assume their issue was fixed from the solution because they submitted an app that was just an iMessage sticker pack while my app has a main app and my iMessage sticker portion is not the templated iMessage sticker pack but an iMessage extension that sends stickers. Any help would be amazing, thanks! https://developer.apple.com/forums/thread/726764
Posted
by ronnienv.
Last updated
.
Post marked as solved
1 Replies
386 Views
Subject: In Search of Swift Mentorship Hello Community, I'm Abdallah, a self-taught iOS developer with a solid understanding of the basics. However, I'm at a point in my learning where I need some real-world experience to truly refine my skills. I'm seeking an experienced Swift developer for personalized mentorship and guidance. I'm ready to invest my time, and I'm open to compensating for yours. I believe this will be a significant step for my growth as an IOS developer. If you're interested or can recommend someone, please let me know. I'm excited about this next phase of my journey and eager to contribute to actual projects. Best, Abdallah
Posted Last updated
.
Post not yet marked as solved
2 Replies
3.1k Views
This code sends a text message from the command line on run {targetBuddyPhone, targetMessage}   tell application "Messages"     set targetService to 1st service whose service type = SMS      set targetBuddy to buddy targetBuddyPhone of targetService     send targetMessage to targetBuddy   end tell end run  And this code sends an iMessage from the command line on run {targetBuddyPhone, targetMessage}   tell application "Messages"     set targetService to 1st service whose service type = iMessage     set targetBuddy to buddy targetBuddyPhone of targetService     send targetMessage to targetBuddy   end tell end run  I’m looking for a solution to combine this code into a single snippet that will try to send an iMessage if the recipient has iMessages, but if they do not, then the code will send a SMS message.
Posted
by tarpus.
Last updated
.
Post not yet marked as solved
0 Replies
450 Views
When trying to trigger Quick reply payload, Apple is returning 400 response without any info what is missing. I have followed the documentation given so cannot find what attribute is missing. Can anyone help share a working payload for: Quick reply Payload 2.Agent-To-User Typing Payload I was using "sourceId": "{{source-id}}", "destinationId": "{{urn-id}}", "v": 1, "type": "interactive", "id": "49384592-0742-481b-b072-a8b66e4336a1", "interactiveData": { "bid": "com.apple.messages.MSMessageExtensionBalloonPlugin:0000000000:com.apple.icloud.apps.messages.business.extension", "data": { "mspVersion": "1.0", "requestIdentifier": "aae65b3f-9e5d-4ac8-a99a-4708d841524f", "quick-reply": { "summaryText": " What can I help you with?", "items": [ { "identifier": "1", "title": "Watch our video" }, { "identifier": "2", "title": "Watch video" } ] } }, "receivedMessage": { "style": "large", "subtitle": "Farm fresh to you", "title": "Select Produce", "imageIdentifier": "101" }, "replyMessage": { "style": "small", "title": "this is title", "subtitle": "Subtitle to be displayed under title", "imageIdentifier": "2" } } }
Posted Last updated
.
Post not yet marked as solved
0 Replies
348 Views
I'm trying to authenticate with a OAuth2.0 service when my MessagesExtension app loads. I see that one of the parameters the service requires is a redirect_uri, which will pass back an authorization code to my application through the redirect callback. However, I'm unable to provide a redirect_uri that will invoke my application since MessagesExtension applications do not have an appDelegate. Is it just not possible to authenticate with services requiring a redirect_uri with a MessagesExtension application?
Posted Last updated
.
Post not yet marked as solved
0 Replies
623 Views
Hi, I want to manipulate the Messages App UI and render some information by Using other iOS Apps or AppExtensions. My queries are below mentioned: For messages received from unknown sender, I want to replace the person avatar with some logo. Screenshot1 attached for reference. I want to customise the unknown message sender mobile number with some text e.g. +91-xxxxxxx74 with some company name like Apple without intervening and registering with operators. Screenshot2 attached for reference. Last, After filtering with MessageFilterExtension when we open a message, just below the message I want to show some information like Unsafe or Suspicious. Screenshot3 attached for reference. If there is any other way to show the information to user that message received is not safe or suspicious.
Posted
by iOS141025.
Last updated
.
Post not yet marked as solved
0 Replies
316 Views
There are so many top-level domains now and my app is using the top-level domain ".sh". Unfortunately, I cannot get iOS to link these URLs when my clients send texts to their users. myapp.sh/login <- this is not linked and is pretty much useless myapp.com/login <- this would work fine, but I do not use .com https://myapp.sh/login <- this URL is linked, but takes up precious SMS characters Is there a way to petition to have new top-level domains linked in Messages such as .app, .sh. or others?
Posted
by ThePiston.
Last updated
.
Post not yet marked as solved
1 Replies
418 Views
Does anyone know if the check in feature of messages works for public beta? Im running dev beta 3, a friend has public beta 1 running of 17. She can send me a check in, but when I try to send her a check in, it says Check In is not available to send to this recipient. I have my location services on for messages, she did not, but does now, but I still cant send one to her
Posted
by BryTib.
Last updated
.
Post not yet marked as solved
0 Replies
540 Views
I updated my computer to 17.3, and since my m2 won't receive or send iMessages. I can't get it to connect to my phone, all of my information is the same, my settings allow for it. am I missing something? I am currently working with a new M2 I got during pre-release.
Posted Last updated
.
Post not yet marked as solved
0 Replies
547 Views
Hello, I'm planning on building an app that provides instructions on how to implement Automation for a shortcut that will look for specific message content in messages, and forward it to my app. I want to understand if this method isn't a breach of Apple's terms of use, considering that I intend to have this used in scale (e.g. ~50k app users). Some things to clarify: The content that will be searched in the Messages app will be reviewed and approved by the iPhone user. The iPhone user will be required to manually approve every automation action that occurs The iPhone user will have control to remove any forwarded messages that were approved by mistake or in any case of regret. The iPhone user will be well aware of the actions he makes, and approves in terms of the process and usage of the content by app. Thank you!
Posted
by Amitge.
Last updated
.
Post not yet marked as solved
2 Replies
1.3k Views
I am putting a stand-alone iMessage extension sticker pack together and can't seem to get my icons to display when I run on my physical device. I have followed every thread and ran the gamut on the different solutions. I am still lost with this one and need some help. I am attaching some screenshots of how they display on my physical devices. My code runs great and I do not get any build errors. to my knowledge (and I'm a newbie): All icon assets have been correctly sized and attributed to the correct targets Target memberships have been correctly attributed as well From the Info.plist I have deleted the CFBundleicons~ipad and Icon files (iOS 5) as per recommendations from previous solutions. (I tried running with and without these auto attributional add ons) deleted or not, still doesn't solve the issues. Thanks in advance, hopefully, it helps me and others in the future :) Ps. I didn't want to flood the post with too many screenshots, but if there is anything you need to see to help me solve this one, let me know and I'll try to follow up.
Posted
by YouboyE.
Last updated
.
Post not yet marked as solved
2 Replies
1k Views
Touchgram provides interactive messages as an iMessage App extension, adding gesture recognition and logic on top of SpriteKit. When you play a message, either composing it or when received, the extension goes into expanded sheet mode which is mostly filled with an SKView. I’ve just installed the iOS 17 beta. Running the current (1.3.3) version of the app inside Messages, touches are not being captured inside SpriteKit. Instead, vertical touches are interpreted as attempts to drag the sheet from expanded down to compact mode. Horizontal touches still work. This breaks the app utterly. At the very least, I need a fix and to ship a new version by the time 17.0 goes live. Alternatively, this may be a beta bug in Messages. To replicate: Launch the extension inside Messages Tap Favorites (star) Choose the “Foot tickle lots with hearts” Press the Play (triangle) button Move your finger rapidly back and forth - you should see hearts being drawn following your path - horizontally and vertically, any angle. On iOS17, vertical movement in step 5 fails, instead shrinking the sheet.
Posted
by andydent.
Last updated
.
Post not yet marked as solved
0 Replies
847 Views
Hi according to the documentation we can have Message extensions in Mac Catalyst 14+, and that the MSStickerBrowserView is supported from Mac Catalyst 13.1+. But it doesn't seem possible to actually build an extension app, or Sticker extension, embedded in a Mac Catalyst app and have it appear in macOS messages. Error: iMessage Applications are not available when building for Mac Catalyst. and error: iMessage / Sticker Pack extensions are not available when building for Mac Catalyst. With the announcement for macOS Sonoma that the Stickers will be available in Mac Messages, is this finally going to be possible? If this isn't possible, why is there support for Mac Catalyst?
Posted
by tarasis.
Last updated
.
Post not yet marked as solved
1 Replies
717 Views
Hello everyone, I am currently developing an iMessage app extension using SwiftUI, and I'm experiencing a crash after successfully inserting text into the conversation. I've checked the console, and it prints "Text inserted successfully" before the crash occurs. However, I cannot find the cause of the crash, and I would appreciate any help in identifying and resolving the issue. Here's the relevant code snippet for inserting text into the conversation: private func insertMessage(withText text: String) { self.activeConversation?.insertText(text, completionHandler: { error in if let error = error { print("Error inserting text: \(error)") } else { print("Text inserted successfully") } }) } Additionally I am getting a crash report which I will attach bellow: crash report If anyone has encountered a similar issue or has any suggestions, please let me know. Thank you in advance for your help!
Posted Last updated
.
Post not yet marked as solved
1 Replies
722 Views
Using quicktime play mp4 file, an error occurred and the document "XX. mp4" could not be opened. An unknown error occurred (-12842), and with Safari browser, only the first keyframe can be played and the video will become stuck. Both Chrome and Firefox can play [normally]
Posted Last updated
.