imessage-extension


How to check if an extention is installed

試著忘記壹切 提交于 2020-01-24 20:14:27
问题 We offer multiple iMessage extensions. Example ExtensionA and ExtensionB. ExtensionB offers InApp purchases InAppPurchaseA and InAppPurchaseB. InAppPurchaseA should be free, if ExtensionA is installed on the device. How to check if ExtensionA is installed? 来源: https://stackoverflow.com/questions/40574375/how-to-check-if-an-extention-is-installed

Can you send objects other than strings in URLQueryItems?

廉价感情. 提交于 2020-01-14 03:46:16
问题 Ok, I am building an iMessage app and to transfer data back and forth I have to use URLQueryItem s. I am working with an SKScene and need to transfer Int s, CGPoint s, images, etc. Reading Apple's documentation and my own attempts it seems like you can only store strings in URLQueryItem s. As this us the only way to pass data back and forth, is there a (better) way to store other types of data? Currently I have been doing this: func composeMessage(theScene: GameScene) { let conversation =

Animated iMessage App Graphics

青春壹個敷衍的年華 提交于 2019-12-31 04:09:46
问题 I'm creating my own iMessage Custom App and I simply want to send an iMessage with a background that swaps between 2 images, therefore creating the illusion of animation. I'm not even sure this is possible but I'm trying with the code below. This code only shows the first image when the message is received by the recipient. Any help would be appreciated. func createImageForMessage() -> UIImage? { let cupAnimation = UIImageView(frame: CGRect(x: 0, y: 0, width: 300, height: 300)) let

iMessage extension crashes while trying to access UITextView in compact mode

≡放荡痞女 提交于 2019-12-19 11:55:28
问题 Below is the entirety of my code in an iMessage app. class MessagesViewController: MSMessagesAppViewController { @IBOutlet weak var messageView: UITextView! fileprivate func setupMessageView() { messageView.delegate = self messageView.layer.cornerRadius = 10 messageView.layer.borderColor = UIColor.black.cgColor messageView.layer.borderWidth = 5 messageView.text = "Tap to enter a message" messageView.textColor = UIColor(red:0.80, green:0.81, blue:0.82, alpha:1.0) messageView.textAlignment =

How prevent view under navbar in iMessage app extension

若如初见. 提交于 2019-12-13 06:59:45
问题 I have the same issue in this post, i follow all recommended in that answers but notting works, in my case the difference is that i have a table view controller. I have tried in many ways to prevent this from happening. example: -(void)viewDidLayoutSubviews { //the next 2 lines was tested with self.tableView and self.view [self.view.topAnchor constraintEqualToAnchor:self.topLayoutGuide.bottomAnchor constant:8.0].active = YES; [self.view constraintEqualToAnchor:[self.topLayoutGuide

How to use Crashlytics with iMessage Extensions?

泪湿孤枕 提交于 2019-12-12 09:48:04
问题 I have an iMessage extension within my iOS app. Can Crashlytics capture its crashes? I've tried adding the same Fabric entry from my main app's Info.plist into my iMessage extension's Info.plist , and adding the following to my MSMessagesAppViewController subclass (as recommended for Today widget intregation): - (instancetype _Nonnull)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle

How to download sqlite store file of iMessage extension to MacBook

谁说胖子不能爱 提交于 2019-12-10 18:42:44
问题 We are developing an iMessage extension. It uses Core Data successfully. We need to evaluate the store.sqlite file, but can not find it. We try to find it like this: In Xcode: Window -> Devices In Installed Apps , select our extension Download Container ... But the container is empty: Update: Thanks to @Mundi's answer we found out how to get the models URL: file:///var/mobile/Containers/Data/PluginKitPlugin/9C15B67C-8917-4A24-9FB0-BD119C43B3C4/Library/Application%20Support/Model.sqlite Now we

Swift 3: iMessage Extension detect User tap on Message and Detect Manual Slide

时光总嘲笑我的痴心妄想 提交于 2019-12-10 11:46:43
问题 How i can detect user taps on Message in conversation? If MessageViewController Controller is compact and user slides up how i can detect that? I tried these delegates but its not working properly override func didSelect(_ message: MSMessage, conversation: MSConversation) { print("DID SELCT") } override func willSelect(_ message: MSMessage, conversation: MSConversation) { print("WILL SELCT") } 回答1: Q1. How i can detect user taps on Message in conversation? A1. In iOS 11 and later you can use

How to pass and get multiple URLQueryItems in Swift?

ε祈祈猫儿з 提交于 2019-12-10 11:01:39
问题 Ok, I am working in an iMessage app and am trying to parse more than 1 url query item from the selected message here- I have been successful getting/sending just 1 value in a query: override func willBecomeActive(with conversation: MSConversation) { // Called when the extension is about to move from the inactive to active state. // This will happen when the extension is about to present UI. if(conversation.selectedMessage?.url != nil) //trying to catch error { let components = URLComponents

How to pass and get multiple URLQueryItems in Swift?

心已入冬 提交于 2019-12-06 09:05:51
Ok, I am working in an iMessage app and am trying to parse more than 1 url query item from the selected message here- I have been successful getting/sending just 1 value in a query: override func willBecomeActive(with conversation: MSConversation) { // Called when the extension is about to move from the inactive to active state. // This will happen when the extension is about to present UI. if(conversation.selectedMessage?.url != nil) //trying to catch error { let components = URLComponents(string: (conversation.selectedMessage?.url?.query?.description)!) //let val = conversation

工具导航Map