imessage-extension

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

How to use Crashlytics with iMessage Extensions?

 ̄綄美尐妖づ 提交于 2019-12-05 18:45:10
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:nibBundleOrNil]; if (self) { // Start up Answers and Crashlytics [Fabric with:[NSArray<id> arrayWithObjects:

Animated iMessage App Graphics

点点圈 提交于 2019-12-02 04:51:52
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 imagesListArray = [UIImage(named: "boy_cup_1_1.png")!,UIImage(named: "boy_cup_1_7.png")!] cupAnimation