imessage

iOS 10 : Add sticker extension to an existing Application

穿精又带淫゛_ 提交于 2019-12-09 07:53:33
问题 I want to make an iOS sticker pack for my application. I've been looking around and I managed to do a sticker app via Xcode. My problem is that I don't want a stand-alone sticker app. Users will never go to the store to download it separately. I want the sticker to be include in my classic app, like an "extra" : "You've downloaded the app, thanks you, here are stickers you can use in message". I've tried to do "Add Target" like explained here But when I run my app, I can see my view

MSMessageLiveLayout freeze/crash in transcript when info.plist contains privacy request

限于喜欢 提交于 2019-12-08 13:15:11
问题 I have an iMessage extension using MSMessageLiveLayout for messages. I want the extension to access microphone. Adding in info.plist "Privacy - Microphone Usage Description" with correct value causes the liveMessages in transcript to freeze/crash when the extension is closed. Removing the Privacy request from info.plist makes the liveMessages in transcript to work as intended... To reproduce the problem, just download Apple's "ice cream" iMessage sample extension here: https://developer.apple

How to provide different sizes for iMessage Sticker App Grid Sticker

安稳与你 提交于 2019-12-08 03:43:35
问题 I have created an iOS iMessage sticker app, and according to apple documentation, I should be able to display the stickers in one of three different sizes. However, no matter what size I make the sticker images (300px by 300px, 408px by 408px, 618px by 618px) they only show up as the middle grid option, with three stickers per row. Does anyone know how to fix this issue, maybe I am missing something simple? Documentation on this topic is scarce because it is fairly new. Thanks for the help.

Check is phone registered in iMessage

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 00:35:29
问题 I'm trying to check if phone not from my contact list is registered in the iMessage. There is two general approaches that I've tryed. Send message to phone number if it's in buddy list on run argv set toAddress to "+380631111111" set message to "Test" tell application "Messages" set targetService to 1st service whose service type = iMessage set targetBuddy to buddy toAddress of targetService delay 1 if targetBuddy exists then send message to targetBuddy end if #delay 5 end tell end run Why it

iOS10 iMessage : Unable to insert data into iMessage using MSConversation

元气小坏坏 提交于 2019-12-07 22:51:11
问题 In my project i added iMessage Extension but i am unable to send selected data from UITableview (need to send selected row data) Declarations var savedConversation: MSConversation? I want to send the text when user didselectRow - Tableview but it is not throwing any error and not even going to MSConversation completion Block func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let message = MSMessage() let layout = MSMessageTemplateLayout() layout.caption = "Win

Detect incoming SMS or iMessage without Jailbreak

只愿长相守 提交于 2019-12-07 07:07:15
问题 In my app, I'm simply trying to detect an incoming SMS or iMessage. I don't need to know where it came from or its content, just that it came in. I've seen lots of jailbreak solutions. Is there a way to do this in iOS 6 without jailbreaking? 回答1: It looks like it is impossible to do that without JailBreaking. source: react on incoming sms on an iPhone 来源: https://stackoverflow.com/questions/15625095/detect-incoming-sms-or-imessage-without-jailbreak

Custom UTI does not work for iMessage in iOS 10

自闭症网瘾萝莉.ら 提交于 2019-12-06 17:27:55
问题 I defined and used a custom UTI type for my iOS app for iOS 9. Now, after using XCode 8 and iOS 10, I cannot "open" the file, if it is sent via iMessage. If I tap on the icon, nothing happens, although the correct icon is displayed. If it is sent via E-Mail, I can still import it to my app. Is there a difference for mail and iMessage? My info.plist declarations look like this: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconFiles</key> <array> <string>Icon-60@3x</string>

How to provide different sizes for iMessage Sticker App Grid Sticker

こ雲淡風輕ζ 提交于 2019-12-06 13:38:08
I have created an iOS iMessage sticker app, and according to apple documentation, I should be able to display the stickers in one of three different sizes. However, no matter what size I make the sticker images (300px by 300px, 408px by 408px, 618px by 618px) they only show up as the middle grid option, with three stickers per row. Does anyone know how to fix this issue, maybe I am missing something simple? Documentation on this topic is scarce because it is fairly new. Thanks for the help. Link to documentation: https://developer.apple.com/ios/human-interface-guidelines/extensions/messaging/

Check is phone registered in iMessage

谁都会走 提交于 2019-12-06 11:45:50
I'm trying to check if phone not from my contact list is registered in the iMessage. There is two general approaches that I've tryed. Send message to phone number if it's in buddy list on run argv set toAddress to "+380631111111" set message to "Test" tell application "Messages" set targetService to 1st service whose service type = iMessage set targetBuddy to buddy toAddress of targetService delay 1 if targetBuddy exists then send message to targetBuddy end if #delay 5 end tell end run Why it doesn't work? Even tho it can send messages by removing "delay 1" I don't want to spam users. With

How to open our app from iMessage

别来无恙 提交于 2019-12-06 09:44:07
I had created an app in iMessage that is work perfactly but i want to know how can i open our app from iMessage Suppose I have one app after that i added iMessage target and from iMessage I want to open my app from iMessage is it possible ? I tried with this but not succeed NSString *customURL = @"appName://"; if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:customURL]]) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:customURL]]; } Error : Finally Problem solved. I've been to the Build Settings of my app again and stumbled over First time i set to YES.