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

Can I manipulate Messages App UI Using AppExtensions or from other iOS Apps?
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.
1
0
992
Jul ’23
for what top level domains does Apple Messages automatically create links for besides .com?
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?
0
1
514
Jul ’23
Messages Check in Dev Beta vs Public Beta
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
1
0
641
Jul ’23
Apple terms of use for Automation/Shortcuts regarding messages
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!
0
0
957
Jul ’23
Can't Get The Icon To Appear On Ipad/Iphone (Physical Device Simulator) iMessage Extension
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.
2
0
1.7k
Jun ’23
iOS17 possible bug with bottom sheets affecting iMessage app extensions
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.
2
1
1.4k
Jun ’23
Messages Extension Mac-catalyst & macOS Sonoma
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?
1
3
1.2k
Jun ’23
App crashes after inserting text in iMessage app extension
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!
1
0
1.1k
Jun ’23
Anyone know what this is? Texts with @ symbols
Texts from important people like lawyers and doctors started coming in like this.. with an @ symbol in between each letter within the text message. I have had problems in the past being hacked, and I also have some problems with battery life and receiving phone calls, emails and texts. also my Apple Cash won’t work it says there is a problem with my social security number. I don’t think the image worked.. but I was trying to post a screenshot of this. It looks like this :” H@i D@a@n@ d@i@d@ y@o@u …” the entire text comes in this way from both iPhones and androids. can’t find anything online any help is greatly appreciated! thanks
1
0
953
May ’23
Processing SMS Messages
My company is developing an application that will in part interpret information from a single-sourced SMS message which is a "job opportunity" for users. These messages are sent through either Android or iOS phone numbers to a listening service server for further interpretation. We are not having any issues with Android phone numbers following through this process, but we are having issues with iOS phone numbers, as it is our understanding that those SMS messages must go to the iOS phone first, and then can be forwarded to the final destination. For us, this is an issue in which we cannot ask our users to do this every time they receive a notification of a job opportunity. Can we please confirm the iOS issue? Is there any way around this? This is greatly impacting my application development and will also hurt my business and my user's ability to take advantage of my services if this is the case if we can't find a workaround. I appreciate any help you can provide me. Thank you - Jeff Phone: 508-257-1379
1
0
449
May ’23
Links not clickable in iMessage app
Hi Team,We are facing an issue with iMessage app on iOS versions greater than 10.2.Sometimes, URL links in received messages are not clickable. Since it's hampering our business, we request you to look into the reported issue and suggest us with a possible solution or workaround.Scenario: In the first message, URL was not detected as hyperlink while receiving the same message second time from same sender did make the URL underlined and clickable.Thank you!
28
0
72k
May ’23
Xcode 14.3 / iOS 16.4.1 / iMessages Extension / Icons not showing on physical device
I have an iOS App with an iMessages extension Since upgrading to Xcode 14.3 and iOS 16.4.1 the icon set for the messages extension does not appear on the device; instead showing the no icon placeholder The icons still appear on the simulator, it seems to be just physical devices When I create a new iMessage extension project and use the exact same image assets configured in the same way, the icons appear fine I've noticed a few funny things happening since upgrading to Xcode 14.3, so my best guess is that it's doing something funky behind the scenes. Has anyone experienced something similar / know the root cause for this issue? Note: I've included a reference to both Xcode 14.3 and iOS 16.4.1 as both upgrades happened at the same time so I don't know which, if any are responsible for the issue I'm experiencing.
2
0
1.2k
Apr ’23
Help with large sticker sequence
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?
4
1
3k
Apr ’23
SMS filtering extensions turning off after app update on 16.3?
We have an app that uses SMS filtering as its core feature, but have been seeing accelerated reports of our extension getting automatically disabled after users update our app. After doing some testing, it seems that installing an upgrade version on iOS 16.3 the system changes the user's SMS blocking from our app to None when an update occurs. I've tested on a device that is still on 16.0, and that device doesn't exhibit the same behavior. Has anyone else seen this? I've filed a radar (FB11977092) but I'm wondering if anyone else has seen the same behavior with their message filtering apps? We usually release an update or two per month, so this is pretty detrimental to the business if we have to instruct users to re-enable our blocking for even the smallest bug fix update.
4
0
2.0k
Apr ’23
iMessage Video Size/Length Constraints
Searching for definitive constraints on iMessage video attachments. Through experimentation, it would appear that there is a file size limitation of around 25MB, although I have read accounts of 224MB being the limitation. There are many publications stating there is a 3:30 time limit on videos, but that is easily debunked. If sending an iMessage, while attaching a video from the message editor using the camera roll option, iMessage will prompt to trim the video attachment and then contrain the length to about 4:15 (in 720p 30fps). If I thry to send the same video (original length about 11 mins) from the camera roll using the share sheet (sharing to iMessage) it does nothing when the send button is pressed. Very frustrating to not be able to find any definitive doc on these contraints from Apple given the new iMessage app framework. Any insight greatly appreciated.
3
0
31k
Apr ’23
Having Proper Message Functionality with Parse, UIKit and MessageKit
For my iOS Social Media App project, I am currently working on the Direct Messaging feature of the app. As of making this post, I have the basic functionality working where you can send messages to other users in the app. However, there are a few issues I am experiencing. 1.) When I go to the chat to send a message it shows two text input bars instead of one. It could have something to do with me also using InputBarAccessoryView but I am not sure how to go about removing one of the two input bars so there's only one. 2.) Being able to see the other user's texts and replies. I can send a message to the user but said user won't be able to see it and vice versa for some reason I haven't been able to fetch and load chat history properly. 3.) The chats don't have their own unique messages. If I send a message to one user, it shows up in my chats with other users as well rather than each chat having its own unique messages. Here is my code associated with Messaging import UIKit import MessageKit import InputBarAccessoryView import Parse struct Message: MessageType { var sender: SenderType var messageId: String var sentDate: Date var kind: MessageKind } class ChatViewController: MessagesViewController, MessagesDataSource, MessagesLayoutDelegate, MessagesDisplayDelegate, InputBarAccessoryViewDelegate { let currentUser = PFUser.current()! var otherUser: PFUser! var messages = [MessageType]() var inputBar = InputBarAccessoryView() override func viewDidLoad() { super.viewDidLoad() // Set up the other user let query = PFUser.query() query?.whereKey("objectId", notEqualTo: currentUser.objectId!) query?.findObjectsInBackground(block: { (objects, error) in if let users = objects as? [PFUser], let user = users.first { self.otherUser = user // Retrieve previous messages from Parse let messageQuery = PFQuery(className: "Message") messageQuery.whereKey("sender", equalTo: self.currentUser) messageQuery.whereKey("recipient", equalTo: self.otherUser!) let recipientQuery = PFQuery(className: "Message") recipientQuery.whereKey("sender", equalTo: self.otherUser!) recipientQuery.whereKey("recipient", equalTo: self.currentUser) let query = PFQuery.orQuery(withSubqueries: [messageQuery, recipientQuery]) query.findObjectsInBackground { (objects, error) in if let messages = objects { for message in messages { let sender = message["sender"] as! PFUser let text = message["text"] as! String let sentDate = message.createdAt! let messageKind = MessageKind.text(text) let messageSender: Sender do { try sender.fetchIfNeeded() messageSender = Sender(senderId: sender.objectId!, displayName: sender.username ?? "") } catch { messageSender = Sender(senderId: sender.objectId!, displayName: "Unknown") print("Error fetching sender: \(error.localizedDescription)") } let message = Message(sender: messageSender, messageId: message.objectId!, sentDate: sentDate, kind: messageKind) self.messages.append(message) print("Fetched previous messages!") } self.messagesCollectionView.reloadData() self.messagesCollectionView.scrollToLastItem(animated: false) } } } }) // Configure the messages collection view and input bar messagesCollectionView.messagesDataSource = self messagesCollectionView.messagesLayoutDelegate = self messagesCollectionView.messagesDisplayDelegate = self view.addSubview(inputBar) inputBar.delegate = self inputBar.inputTextView.placeholder = "Type a message..." inputBar.sendButton.setTitle("Send", for: .normal) inputBar.sendButton.setTitleColor(view.tintColor, for: .normal) inputBar.sendButton.addTarget(self, action: #selector(sendButtonPressed), for: .touchUpInside) inputBar.translatesAutoresizingMaskIntoConstraints = false inputBar.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor).isActive = true inputBar.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true inputBar.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true } func currentSender() -> SenderType { return Sender(senderId: currentUser.objectId!, displayName: currentUser.username ?? "") } func numberOfSections(in messagesCollectionView: MessagesCollectionView) -> Int { return messages.count } func messageForItem(at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> MessageType { return messages[indexPath.section] } @objc func sendButtonPressed() { let messageText = inputBar.inputTextView.text.trimmingCharacters(in: .whitespacesAndNewlines) guard !messageText.isEmpty else { return } let message = Message(sender: currentSender(), messageId: UUID().uuidString, sentDate: Date(), kind: .text(messageText)) messages.append(message) inputBar.inputTextView.text = "" messagesCollectionView.reloadData() messagesCollectionView.scrollToLastItem(animated: true) print("Message sent!") // Save the message to Parse let parseMessage = PFObject(className: "Message") parseMessage["sender"] = currentUser parseMessage["recipient"] = otherUser parseMessage["text"] = messageText parseMessage.saveInBackground() print("Message saved!") } func inputBar(_ inputBar: InputBarAccessoryView, textViewTextDidChangeTo text: String) { if text.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { inputBar.sendButton.isEnabled = false } else { inputBar.sendButton.isEnabled = true } } func inputBar(_ inputBar: InputBarAccessoryView, didPressSendButtonWith text: String) { sendButtonPressed() } } The above code is for all the messaging functionality such as sending texts, receiving messages, and loading and showing chat history. All help would be greatly appreciated!
0
0
1.1k
Apr ’23
DisplayMessageAction can I know its disappearance event
I use Message and SwiftUI Environment display an App Store message,I want to know the event or callback when the App Store message action disappears My project is UIKit frame,So I had to use UIKit call SwiftUI, I have a transparent UIHostingController and root view is SwiftUI,I want to pop this UIHostingController when the user dismiss the App Store message action。 import StoreKit import SwiftUI @available(iOS 16.0, *) struct SwiftUIView: View { @Environment(\.displayStoreKitMessage) private var displayStoreMessage var body: some View { HStack { } .onAppear() { DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.2) { YKAppStoreMessagesManager.sharedManager.displayAction = displayStoreMessage } } } } public final class TransparentHostingController&lt;Content: View>: UIHostingController&lt;Content> { public override func viewDidLoad() { super.viewDidLoad() view.isOpaque = false view.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.3) } } @available(iOS 16.0, *) @objcMembers public class YKAppStoreMessagesManager: NSObject { var pendingMessages: [Message] = [] var pendingMessageFlag: Bool = true var topVC: UITableViewController? var message: Message? override init() { } public static let sharedManager = YKAppStoreMessagesManager() @MainActor public var displayAction: DisplayMessageAction? { didSet { handlePendingMessages() } } @MainActor private func handlePendingMessages() { if let action = self.displayAction { if let msg = self.message { display(message: msg, with: action) } } } @MainActor private func display(message: Message, with display: DisplayMessageAction) { do { try display(message) } catch { } } public func beginListen() -> Void { if self.pendingMessageFlag == false { return } self.alarm(withBizType: "YKAppStoreMessage", errorCode: "beginListen", errorMsg: nil) Task { @MainActor in for await message in StoreKit.Message.messages { if !self.pendingMessages.contains(message) { self.pendingMessages.append(message) } } } } @MainActor public func showStoreKitMessage() -> Void { if self.pendingMessageFlag == false { return } let pendingMessages = self.pendingMessages self.pendingMessages = [] for message in pendingMessages { self.message = message self.displayMessage() break } } func alarm(withBizType type: String?, errorCode: String?, errorMsg: String?) -> Void { let aType = type ?? "AppStoreMessage" let aCode = errorCode ?? "StoreKit" let aMsg = errorMsg ?? "" } @MainActor func displayMessage() -> Void { if let topVC = self.topVC { let vc = TransparentHostingController(rootView: SwiftUIView()) vc.modalPresentationStyle = .custom topVC.present(vc, animated: false) } } }
0
0
503
Apr ’23
Can I manipulate Messages App UI Using AppExtensions or from other iOS Apps?
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.
Replies
1
Boosts
0
Views
992
Activity
Jul ’23
for what top level domains does Apple Messages automatically create links for besides .com?
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?
Replies
0
Boosts
1
Views
514
Activity
Jul ’23
Messages Check in Dev Beta vs Public Beta
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
Replies
1
Boosts
0
Views
641
Activity
Jul ’23
IMessages not working on beta 17.3
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.
Replies
0
Boosts
0
Views
742
Activity
Jul ’23
Apple terms of use for Automation/Shortcuts regarding messages
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!
Replies
0
Boosts
0
Views
957
Activity
Jul ’23
Can't Get The Icon To Appear On Ipad/Iphone (Physical Device Simulator) iMessage Extension
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.
Replies
2
Boosts
0
Views
1.7k
Activity
Jun ’23
iOS17 possible bug with bottom sheets affecting iMessage app extensions
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.
Replies
2
Boosts
1
Views
1.4k
Activity
Jun ’23
Messages Extension Mac-catalyst & macOS Sonoma
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?
Replies
1
Boosts
3
Views
1.2k
Activity
Jun ’23
App crashes after inserting text in iMessage app extension
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!
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’23
Unknown error occurred (-12842)
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]
Replies
1
Boosts
0
Views
1.4k
Activity
May ’23
Anyone know what this is? Texts with @ symbols
Texts from important people like lawyers and doctors started coming in like this.. with an @ symbol in between each letter within the text message. I have had problems in the past being hacked, and I also have some problems with battery life and receiving phone calls, emails and texts. also my Apple Cash won’t work it says there is a problem with my social security number. I don’t think the image worked.. but I was trying to post a screenshot of this. It looks like this :” H@i D@a@n@ d@i@d@ y@o@u …” the entire text comes in this way from both iPhones and androids. can’t find anything online any help is greatly appreciated! thanks
Replies
1
Boosts
0
Views
953
Activity
May ’23
Processing SMS Messages
My company is developing an application that will in part interpret information from a single-sourced SMS message which is a "job opportunity" for users. These messages are sent through either Android or iOS phone numbers to a listening service server for further interpretation. We are not having any issues with Android phone numbers following through this process, but we are having issues with iOS phone numbers, as it is our understanding that those SMS messages must go to the iOS phone first, and then can be forwarded to the final destination. For us, this is an issue in which we cannot ask our users to do this every time they receive a notification of a job opportunity. Can we please confirm the iOS issue? Is there any way around this? This is greatly impacting my application development and will also hurt my business and my user's ability to take advantage of my services if this is the case if we can't find a workaround. I appreciate any help you can provide me. Thank you - Jeff Phone: 508-257-1379
Replies
1
Boosts
0
Views
449
Activity
May ’23
Links not clickable in iMessage app
Hi Team,We are facing an issue with iMessage app on iOS versions greater than 10.2.Sometimes, URL links in received messages are not clickable. Since it's hampering our business, we request you to look into the reported issue and suggest us with a possible solution or workaround.Scenario: In the first message, URL was not detected as hyperlink while receiving the same message second time from same sender did make the URL underlined and clickable.Thank you!
Replies
28
Boosts
0
Views
72k
Activity
May ’23
Xcode 14.3 / iOS 16.4.1 / iMessages Extension / Icons not showing on physical device
I have an iOS App with an iMessages extension Since upgrading to Xcode 14.3 and iOS 16.4.1 the icon set for the messages extension does not appear on the device; instead showing the no icon placeholder The icons still appear on the simulator, it seems to be just physical devices When I create a new iMessage extension project and use the exact same image assets configured in the same way, the icons appear fine I've noticed a few funny things happening since upgrading to Xcode 14.3, so my best guess is that it's doing something funky behind the scenes. Has anyone experienced something similar / know the root cause for this issue? Note: I've included a reference to both Xcode 14.3 and iOS 16.4.1 as both upgrades happened at the same time so I don't know which, if any are responsible for the issue I'm experiencing.
Replies
2
Boosts
0
Views
1.2k
Activity
Apr ’23
Help with large sticker sequence
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?
Replies
4
Boosts
1
Views
3k
Activity
Apr ’23
SMS filtering extensions turning off after app update on 16.3?
We have an app that uses SMS filtering as its core feature, but have been seeing accelerated reports of our extension getting automatically disabled after users update our app. After doing some testing, it seems that installing an upgrade version on iOS 16.3 the system changes the user's SMS blocking from our app to None when an update occurs. I've tested on a device that is still on 16.0, and that device doesn't exhibit the same behavior. Has anyone else seen this? I've filed a radar (FB11977092) but I'm wondering if anyone else has seen the same behavior with their message filtering apps? We usually release an update or two per month, so this is pretty detrimental to the business if we have to instruct users to re-enable our blocking for even the smallest bug fix update.
Replies
4
Boosts
0
Views
2.0k
Activity
Apr ’23
iMessage Video Size/Length Constraints
Searching for definitive constraints on iMessage video attachments. Through experimentation, it would appear that there is a file size limitation of around 25MB, although I have read accounts of 224MB being the limitation. There are many publications stating there is a 3:30 time limit on videos, but that is easily debunked. If sending an iMessage, while attaching a video from the message editor using the camera roll option, iMessage will prompt to trim the video attachment and then contrain the length to about 4:15 (in 720p 30fps). If I thry to send the same video (original length about 11 mins) from the camera roll using the share sheet (sharing to iMessage) it does nothing when the send button is pressed. Very frustrating to not be able to find any definitive doc on these contraints from Apple given the new iMessage app framework. Any insight greatly appreciated.
Replies
3
Boosts
0
Views
31k
Activity
Apr ’23
Having Proper Message Functionality with Parse, UIKit and MessageKit
For my iOS Social Media App project, I am currently working on the Direct Messaging feature of the app. As of making this post, I have the basic functionality working where you can send messages to other users in the app. However, there are a few issues I am experiencing. 1.) When I go to the chat to send a message it shows two text input bars instead of one. It could have something to do with me also using InputBarAccessoryView but I am not sure how to go about removing one of the two input bars so there's only one. 2.) Being able to see the other user's texts and replies. I can send a message to the user but said user won't be able to see it and vice versa for some reason I haven't been able to fetch and load chat history properly. 3.) The chats don't have their own unique messages. If I send a message to one user, it shows up in my chats with other users as well rather than each chat having its own unique messages. Here is my code associated with Messaging import UIKit import MessageKit import InputBarAccessoryView import Parse struct Message: MessageType { var sender: SenderType var messageId: String var sentDate: Date var kind: MessageKind } class ChatViewController: MessagesViewController, MessagesDataSource, MessagesLayoutDelegate, MessagesDisplayDelegate, InputBarAccessoryViewDelegate { let currentUser = PFUser.current()! var otherUser: PFUser! var messages = [MessageType]() var inputBar = InputBarAccessoryView() override func viewDidLoad() { super.viewDidLoad() // Set up the other user let query = PFUser.query() query?.whereKey("objectId", notEqualTo: currentUser.objectId!) query?.findObjectsInBackground(block: { (objects, error) in if let users = objects as? [PFUser], let user = users.first { self.otherUser = user // Retrieve previous messages from Parse let messageQuery = PFQuery(className: "Message") messageQuery.whereKey("sender", equalTo: self.currentUser) messageQuery.whereKey("recipient", equalTo: self.otherUser!) let recipientQuery = PFQuery(className: "Message") recipientQuery.whereKey("sender", equalTo: self.otherUser!) recipientQuery.whereKey("recipient", equalTo: self.currentUser) let query = PFQuery.orQuery(withSubqueries: [messageQuery, recipientQuery]) query.findObjectsInBackground { (objects, error) in if let messages = objects { for message in messages { let sender = message["sender"] as! PFUser let text = message["text"] as! String let sentDate = message.createdAt! let messageKind = MessageKind.text(text) let messageSender: Sender do { try sender.fetchIfNeeded() messageSender = Sender(senderId: sender.objectId!, displayName: sender.username ?? "") } catch { messageSender = Sender(senderId: sender.objectId!, displayName: "Unknown") print("Error fetching sender: \(error.localizedDescription)") } let message = Message(sender: messageSender, messageId: message.objectId!, sentDate: sentDate, kind: messageKind) self.messages.append(message) print("Fetched previous messages!") } self.messagesCollectionView.reloadData() self.messagesCollectionView.scrollToLastItem(animated: false) } } } }) // Configure the messages collection view and input bar messagesCollectionView.messagesDataSource = self messagesCollectionView.messagesLayoutDelegate = self messagesCollectionView.messagesDisplayDelegate = self view.addSubview(inputBar) inputBar.delegate = self inputBar.inputTextView.placeholder = "Type a message..." inputBar.sendButton.setTitle("Send", for: .normal) inputBar.sendButton.setTitleColor(view.tintColor, for: .normal) inputBar.sendButton.addTarget(self, action: #selector(sendButtonPressed), for: .touchUpInside) inputBar.translatesAutoresizingMaskIntoConstraints = false inputBar.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor).isActive = true inputBar.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true inputBar.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true } func currentSender() -> SenderType { return Sender(senderId: currentUser.objectId!, displayName: currentUser.username ?? "") } func numberOfSections(in messagesCollectionView: MessagesCollectionView) -> Int { return messages.count } func messageForItem(at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> MessageType { return messages[indexPath.section] } @objc func sendButtonPressed() { let messageText = inputBar.inputTextView.text.trimmingCharacters(in: .whitespacesAndNewlines) guard !messageText.isEmpty else { return } let message = Message(sender: currentSender(), messageId: UUID().uuidString, sentDate: Date(), kind: .text(messageText)) messages.append(message) inputBar.inputTextView.text = "" messagesCollectionView.reloadData() messagesCollectionView.scrollToLastItem(animated: true) print("Message sent!") // Save the message to Parse let parseMessage = PFObject(className: "Message") parseMessage["sender"] = currentUser parseMessage["recipient"] = otherUser parseMessage["text"] = messageText parseMessage.saveInBackground() print("Message saved!") } func inputBar(_ inputBar: InputBarAccessoryView, textViewTextDidChangeTo text: String) { if text.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { inputBar.sendButton.isEnabled = false } else { inputBar.sendButton.isEnabled = true } } func inputBar(_ inputBar: InputBarAccessoryView, didPressSendButtonWith text: String) { sendButtonPressed() } } The above code is for all the messaging functionality such as sending texts, receiving messages, and loading and showing chat history. All help would be greatly appreciated!
Replies
0
Boosts
0
Views
1.1k
Activity
Apr ’23
when i scroll collectionview many times, memory issue happen and crash
when i scroll my iMessage extension's stickerCollectionView many times, '[Unknown process name] CGSImageDataLock: Cannot allocate memory' error log shows and app crashes. so i thought this as a memory leak. but, when i changed MSSticker to imageview with animated gif, that works fine without crash.
Replies
0
Boosts
0
Views
667
Activity
Apr ’23
DisplayMessageAction can I know its disappearance event
I use Message and SwiftUI Environment display an App Store message,I want to know the event or callback when the App Store message action disappears My project is UIKit frame,So I had to use UIKit call SwiftUI, I have a transparent UIHostingController and root view is SwiftUI,I want to pop this UIHostingController when the user dismiss the App Store message action。 import StoreKit import SwiftUI @available(iOS 16.0, *) struct SwiftUIView: View { @Environment(\.displayStoreKitMessage) private var displayStoreMessage var body: some View { HStack { } .onAppear() { DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.2) { YKAppStoreMessagesManager.sharedManager.displayAction = displayStoreMessage } } } } public final class TransparentHostingController&lt;Content: View>: UIHostingController&lt;Content> { public override func viewDidLoad() { super.viewDidLoad() view.isOpaque = false view.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.3) } } @available(iOS 16.0, *) @objcMembers public class YKAppStoreMessagesManager: NSObject { var pendingMessages: [Message] = [] var pendingMessageFlag: Bool = true var topVC: UITableViewController? var message: Message? override init() { } public static let sharedManager = YKAppStoreMessagesManager() @MainActor public var displayAction: DisplayMessageAction? { didSet { handlePendingMessages() } } @MainActor private func handlePendingMessages() { if let action = self.displayAction { if let msg = self.message { display(message: msg, with: action) } } } @MainActor private func display(message: Message, with display: DisplayMessageAction) { do { try display(message) } catch { } } public func beginListen() -> Void { if self.pendingMessageFlag == false { return } self.alarm(withBizType: "YKAppStoreMessage", errorCode: "beginListen", errorMsg: nil) Task { @MainActor in for await message in StoreKit.Message.messages { if !self.pendingMessages.contains(message) { self.pendingMessages.append(message) } } } } @MainActor public func showStoreKitMessage() -> Void { if self.pendingMessageFlag == false { return } let pendingMessages = self.pendingMessages self.pendingMessages = [] for message in pendingMessages { self.message = message self.displayMessage() break } } func alarm(withBizType type: String?, errorCode: String?, errorMsg: String?) -> Void { let aType = type ?? "AppStoreMessage" let aCode = errorCode ?? "StoreKit" let aMsg = errorMsg ?? "" } @MainActor func displayMessage() -> Void { if let topVC = self.topVC { let vc = TransparentHostingController(rootView: SwiftUIView()) vc.modalPresentationStyle = .custom topVC.present(vc, animated: false) } } }
Replies
0
Boosts
0
Views
503
Activity
Apr ’23