imessage

iMessage Extension and In-App-purchase

妖精的绣舞 提交于 2019-12-06 07:49:13
问题 I'm trying to create an extension for iMessage with InApp-Purchase feature. basically I created an iMessage application which create two target. Your AppTarget MessageExtension and each one has it's own bundle identifier. ( extension has a prefix of app ). now i am trying to create to in-app-purchase for my app. My app target does not have in-App purchase capability to make it active but my extension has. In iTunes connect my app id is my app target. so i should define in-app purchase for

Creating a MSSticker with a remote image

别来无恙 提交于 2019-12-06 06:05:26
I am trying to figure out way to create MSStickers with images that are hosted on the web. I can create MSStickers with local images, e.g.: NSString *imagePath = [[NSBundle mainBundle] pathForResource: @"image_name" ofType: @"png"]; NSURL *imageURL = [NSURL fileURLWithPath: urlString]; MSSticker *sticker = [[MSSticker alloc] initWithContentsOfFileURL: stickerURL localizedDescription: @"my-sticker" error: &err]; But I cannot do something like this: NSString *imageURLString = @"https://my-cdn/my-sticker.png"; NSURL *imageURL = [NSURL urlWithString: urlString]; MSSticker *sticker = [[MSSticker

Create *. Mht-file (Web Archive)

南楼画角 提交于 2019-12-06 05:57:34
问题 Use the following representation of the function to generate a Web archive from a local html file function TLessonConstructor2.CreateMHT( const FileName : string):boolean ; var oMSG:IMessage; oConfig: IConfiguration; sFileName: string; Stream: _Stream; begin //CoInitializeEx(nil, COINIT_APARTMENTTHREADED); //CoInitialize(nil); try Result := false; sFileName := ChangeFileExt(FileName, '.mht'); DeleteFile(PAnsiChar(sFileName)); try oConfig := CoConfiguration.Create(); oMSG := CoMessage.Create()

What is the difference between Apple's iMessage template or adding an extension to an existing app?

℡╲_俬逩灬. 提交于 2019-12-05 18:02:34
I have noticed this different regarding the creation of messages apps for iOS 10. If you create a new project using iMessage Application choice on the new project's template, Xcode will create two targets, an app and an extension. but the project is not able to run. (see by this second picture that there is only one choice on the target selector at the bottom and that target is the extension). When you create a normal app, like a single view app and then add a target that is an app extension of the type iMessage, you will have two targets there, the app and the extension. My questions are:

Custom UTI does not work for iMessage in iOS 10

痞子三分冷 提交于 2019-12-04 23:21:15
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> </array> <key>CFBundleTypeName</key> <string>My Voting Lists File</string> <key>CFBundleTypeRole</key>

Custom extension file not opening in iMessage

被刻印的时光 ゝ 提交于 2019-12-04 17:04:00
问题 In my app, I need to send some custom data files from one device to another, and I am trying to do this with Mail, iMessage/Message and Airdrop. This works fine with Mail and Airdrop but with iMessage and it goes just fine, but on the receiving end, I am not able to open the files. It's just not allowing me to do anything with it. Any ideas?? This is what my Document Type looks like: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconFile</key> <string>abc.png</string> <key

iMessage Extension and In-App-purchase

你说的曾经没有我的故事 提交于 2019-12-04 11:54:05
I'm trying to create an extension for iMessage with InApp-Purchase feature. basically I created an iMessage application which create two target. Your AppTarget MessageExtension and each one has it's own bundle identifier. ( extension has a prefix of app ). now i am trying to create to in-app-purchase for my app. My app target does not have in-App purchase capability to make it active but my extension has. In iTunes connect my app id is my app target. so i should define in-app purchase for that. by end of the day when i am getting SKProductsResponse its empty and i guess because my product

Swift 3 iMessage Extension doesn't open URL

為{幸葍}努か 提交于 2019-12-04 10:30:43
I am creating an iOS Application iMessage Extension. According to Example by Apple , I creating a message according to provided logic guard let url: URL = URL(string: "http://www.google.com") else { return } let message = composeMessage(url: url) activeConversation?.insert(message, completionHandler: { [weak self] (error: Error?) in guard let error = error else { return } self?.presentAlert(error: error) }) also private func composeMessage(url: URL) -> MSMessage { let layout = MSMessageTemplateLayout() layout.caption = "caption" layout.subcaption = "subcaption" layout.trailingSubcaption =

Create *. Mht-file (Web Archive)

我是研究僧i 提交于 2019-12-04 10:18:38
Use the following representation of the function to generate a Web archive from a local html file function TLessonConstructor2.CreateMHT( const FileName : string):boolean ; var oMSG:IMessage; oConfig: IConfiguration; sFileName: string; Stream: _Stream; begin //CoInitializeEx(nil, COINIT_APARTMENTTHREADED); //CoInitialize(nil); try Result := false; sFileName := ChangeFileExt(FileName, '.mht'); DeleteFile(PAnsiChar(sFileName)); try oConfig := CoConfiguration.Create(); oMSG := CoMessage.Create(); oMSG.Configuration := oConfig; oMSG.CreateMHTMLBody(FileName,CdoSuppressNone,'',''); Stream:=oMSG

iMessage Apps - Programatically create animated sticker from .apng

一世执手 提交于 2019-12-04 03:15:51
Hi has anyone tried yet to programatically create a custom sticker programmatically with an animated apng file? I've had no success but can state the following: .apng file of correct dimensions and file size (300px * 300px) and < 500kb. Can add this as a .png and it shows the first frame (not animated) Changing file name to .apng causes an error to be raised upon inserting sticker to MS Message. Have taken the approach of loading the apng into the project folder (not in Assets.xcassets) as the initialize sticker requires an NSURL which is not made availabe if apng is created as an iOS sticker.