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'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.1k
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
856
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
446
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
71k
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
1k
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
1.8k
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
30k
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<Content: View>: UIHostingController<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
499
Apr ’23
How do I change the Version number of the parent app?
When I try to validate my sticker pack app for distribution I keep getting this error: "CFBundleShortVersionString of an app extension ('1.2.0') must match that of its containing parent app ('1.0.1')" I want the version number to be 1.2.0. I can't seem to change this parent app version number. How do I access the "parent app"? I've tried changing the Version number under General Tab, as well as the Versioning section under Build Settings. Any help much appreciated.
1
0
680
Apr ’23
About to switch to android
The way apple iPhone 11 is actually horrible is astonishing. I’ve tried every single thing to fix my problem but it won’t work. My settings, iMessage, and any app basic app that comes with the phone. It constantly crashes and I’ve tried everything. If I can’t fix this, I’m not buying a new iPhone, I’m switching to android.
1
1
552
Mar ’23
Help me with the issue of publishing my application
I built the application in the constructor appsfera.com I'm trying to place the app in the Appstore. A message arrives Guideline 5.2.1 - Legal - Intellectual Property We noticed that your app was created from an app generation service or a commercialized template, but does not appear to be directly submitted by the owner or provider of the business, brand, or service. In order to protect Apple users from dealing with unauthorized parties, we require documentation of your relationship with the provider of the goods or services in your app. Next Steps To resolve this issue, this app must be submitted by the owner of the business or organization for which the app has been designed under its own Apple Developer Program account. Alternatively, you may provide documentation that shows your ownership of the business or organization for which the app is designed. If you choose to submit documentation, it should come from a governmental authority or other reputable source of business registration for your country or region. Please ensure that this documentation clearly: Please note that providing documentation of your rights to include third-party content within your app is not sufficient to resolve this issue. In accordance with section 3.2(f) of the Apple Developer Program License Agreement, you acknowledge that submitting falsified or fraudulent documentation can result in the termination of your Apple Developer Program account and the removal of your apps from the App Store. Once Legal has we have reviewed your documentation and confirms confirmed its validity, we will proceed with the review of your app. Resources - For information on transferring an app to another developer account, please review the App transfer overview page in on App Store Connect Help. - For new apps, you will need to ask your client to enroll in the Apple Developer Program and submit this app under its own Apple Developer Account. Guideline 5.2.3 - Legal Your app contains content or features that may violate the rights of one or more third parties. Specifically, your app provides potentially unauthorized access to third-party audio or video streaming, catalogs, and discovery services. Your app and its contents should not infringe upon the rights of another party. In the event your app infringes another party’s rights, you are responsible for any liability to Apple because of a claim. Next Steps To resolve this issue, please attach documentary evidence in the App Review Information section in App Store Connect evidencing that you have all necessary rights or permissions to the third-party audio or video streaming, catalogs, and discovery services in your app. In accordance with section 3.2(f) of the Apple Developer Program License Agreement, you acknowledge that submitting falsified or fraudulent documentation can result in the termination of your Apple Developer Program account and the removal of your apps from the App Store. Once Legal has reviewed your documentation and confirms its validity, we will proceed with the review of your app. Resources What should I do? Why don't they host the app?
1
0
836
Mar ’23
Associate iOS app with iMessage extension
I am trying to deploy an app that has an iOS App component and an iMessage Extension component. Ideally a user purchasing/downloading either would get them both. This iMessage Extension is not a Sticker Pack - it is an app that exposes the behavior of the iOS app, but from within Messages. There is scant information about how to accomplish this. The only thing I've found is this thread: https://developer.apple.com/forums/thread/61482 I've tried varying combinations of bundle IDs to let Xcode know that the iOS app is the "parent" app and the iMessages extension is the "child". For example, this doesn't seem to work: iOS App bundle id: com.mycompany.appname iMessages App extension bundle id: com.mycompany.appname.messages Both targets are in the same Xcode project. Any advice? Thanks in advance! -Tim
1
0
2.4k
Mar ’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.1k
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
856
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
446
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
71k
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
1k
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
1.8k
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
30k
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
664
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<Content: View>: UIHostingController<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
499
Activity
Apr ’23
How do I change the Version number of the parent app?
When I try to validate my sticker pack app for distribution I keep getting this error: "CFBundleShortVersionString of an app extension ('1.2.0') must match that of its containing parent app ('1.0.1')" I want the version number to be 1.2.0. I can't seem to change this parent app version number. How do I access the "parent app"? I've tried changing the Version number under General Tab, as well as the Versioning section under Build Settings. Any help much appreciated.
Replies
1
Boosts
0
Views
680
Activity
Apr ’23
The VPP App update message pops up despite silent installation performs.
Device has a VPP license and is under supervised mode. The App update message POPS UP despite silent installation performs. Why?
Replies
1
Boosts
0
Views
1.2k
Activity
Mar ’23
About to switch to android
The way apple iPhone 11 is actually horrible is astonishing. I’ve tried every single thing to fix my problem but it won’t work. My settings, iMessage, and any app basic app that comes with the phone. It constantly crashes and I’ve tried everything. If I can’t fix this, I’m not buying a new iPhone, I’m switching to android.
Replies
1
Boosts
1
Views
552
Activity
Mar ’23
Help me with the issue of publishing my application
I built the application in the constructor appsfera.com I'm trying to place the app in the Appstore. A message arrives Guideline 5.2.1 - Legal - Intellectual Property We noticed that your app was created from an app generation service or a commercialized template, but does not appear to be directly submitted by the owner or provider of the business, brand, or service. In order to protect Apple users from dealing with unauthorized parties, we require documentation of your relationship with the provider of the goods or services in your app. Next Steps To resolve this issue, this app must be submitted by the owner of the business or organization for which the app has been designed under its own Apple Developer Program account. Alternatively, you may provide documentation that shows your ownership of the business or organization for which the app is designed. If you choose to submit documentation, it should come from a governmental authority or other reputable source of business registration for your country or region. Please ensure that this documentation clearly: Please note that providing documentation of your rights to include third-party content within your app is not sufficient to resolve this issue. In accordance with section 3.2(f) of the Apple Developer Program License Agreement, you acknowledge that submitting falsified or fraudulent documentation can result in the termination of your Apple Developer Program account and the removal of your apps from the App Store. Once Legal has we have reviewed your documentation and confirms confirmed its validity, we will proceed with the review of your app. Resources - For information on transferring an app to another developer account, please review the App transfer overview page in on App Store Connect Help. - For new apps, you will need to ask your client to enroll in the Apple Developer Program and submit this app under its own Apple Developer Account. Guideline 5.2.3 - Legal Your app contains content or features that may violate the rights of one or more third parties. Specifically, your app provides potentially unauthorized access to third-party audio or video streaming, catalogs, and discovery services. Your app and its contents should not infringe upon the rights of another party. In the event your app infringes another party’s rights, you are responsible for any liability to Apple because of a claim. Next Steps To resolve this issue, please attach documentary evidence in the App Review Information section in App Store Connect evidencing that you have all necessary rights or permissions to the third-party audio or video streaming, catalogs, and discovery services in your app. In accordance with section 3.2(f) of the Apple Developer Program License Agreement, you acknowledge that submitting falsified or fraudulent documentation can result in the termination of your Apple Developer Program account and the removal of your apps from the App Store. Once Legal has reviewed your documentation and confirms its validity, we will proceed with the review of your app. Resources What should I do? Why don't they host the app?
Replies
1
Boosts
0
Views
836
Activity
Mar ’23
Associate iOS app with iMessage extension
I am trying to deploy an app that has an iOS App component and an iMessage Extension component. Ideally a user purchasing/downloading either would get them both. This iMessage Extension is not a Sticker Pack - it is an app that exposes the behavior of the iOS app, but from within Messages. There is scant information about how to accomplish this. The only thing I've found is this thread: https://developer.apple.com/forums/thread/61482 I've tried varying combinations of bundle IDs to let Xcode know that the iOS app is the "parent" app and the iMessages extension is the "child". For example, this doesn't seem to work: iOS App bundle id: com.mycompany.appname iMessages App extension bundle id: com.mycompany.appname.messages Both targets are in the same Xcode project. Any advice? Thanks in advance! -Tim
Replies
1
Boosts
0
Views
2.4k
Activity
Mar ’23