Questions tagged [imessage]

iMessage is an instant messenger service developed by Apple Inc.

iMessage allows users to send texts, documents, photos, videos, contact information, and group messages over Wi-Fi, 3G or LTE to other iOS or OS X users, thus providing an alternative to standard SMS/MMS messaging for most users with devices running iOS 5 or later.

445 questions
79
votes
7 answers

Sending SMS in iOS with Swift

First of all, I'm really surprised that this is not a duplicate, because there are TONS of stackoverflow questions that solve this in Objective-C, but I have yet to see a good answer that used Swift. What I'm looking for is a code snippet in Swift…
johncorser
  • 7,912
  • 13
  • 51
  • 95
23
votes
1 answer

Why are there so many iMessage Signing Keys in the private key section of Keychain?

I tried to clean my keychain because there are many certificates in it. When I opened the private key section, I found there are too many of the same key. Can I delete them? I don't know what they are for. Help me please!
Sarah
  • 233
  • 1
  • 2
  • 8
23
votes
6 answers

How to send an imessage text with applescript, only in provided service?

Can somebody show me how to send a message directly to the user of iMessage via Messages app? tell application "Messages" if service type of service of buddy whose name is ("Name here" is "iMessage") then set x to 1 if service type of…
cre8eve
  • 331
  • 1
  • 4
  • 9
21
votes
1 answer

iOS 10 : Add sticker extension to an existing Application

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…
Melanie Journe
  • 1,039
  • 4
  • 13
  • 30
21
votes
8 answers

iOS 10 iMessage app extension: how do i calculate the height of the extra tall navbar

I downloaded the Xcode 8 beta and was trying to play around with the iMessages app extension sdk but ran into an issue with their seemingly nonstandard nav bar height when i transition into the app's expanded view, my image with the following frame…
stanley
  • 1,021
  • 10
  • 25
19
votes
3 answers

Custom extension file not opening in iMessage

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,…
Ashutosh
  • 5,286
  • 12
  • 46
  • 82
18
votes
1 answer

IOS iMessage extension screenshot detection

Please use Swift 4+ NOTE: I am detecting the screenshot while I am within the iMessage extension, not in the standard iMessage view. Update - I came up with a working solution that checks the photo library during the sensitive information period…
Levi K
  • 473
  • 1
  • 3
  • 14
17
votes
2 answers

Messages-like taller / standard navigation bar during push / pop

iOS 10 Messages app's navigation bar increases/decreases the height when you push/pop a conversation (with a smooth transition). Typically I make a taller custom navigation bar using sizeThatFits:, but it persists across pushes and pops of view…
user370773
  • 967
  • 10
  • 30
16
votes
0 answers

Custom UTI does not work for iMessage in iOS 10

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…
Akar
  • 163
  • 1
  • 7
16
votes
2 answers

How to start new conversation in iMessage using AppleScript?

So I'm working on creating an applescript which essentially automates sending an imessage. What I have working now is: on run {msg, phoneNum} tell application "Messages" set serviceID to id of 1st service whose service type = iMessage …
HaHaHAHungry
  • 337
  • 1
  • 3
  • 12
16
votes
2 answers

Callback for MSSticker Peels in iOS 10 iMessage sticker app

I'm experimenting with sticker iMessage apps in iOS 10 and I'm running into an issue with the override func didStartSending(_ message: MSMessage, conversation: MSConversation) method in MSMessagesAppViewController. When "peeling" a sticker from an…
Andrew Sowers
  • 369
  • 3
  • 11
15
votes
6 answers

How to Disable URL Link Previews in iMessage iOS11 (or iOS10, Mac OSX Sierra)

Unable to send links between my developers via iMessage, as the "preview" feature of iMessage in iOS11 & iOS10 is making it hard to see the exact URL structure, because it is instead inserting a link preview. Is there any way to disable this?…
Adam Bowie
  • 183
  • 1
  • 1
  • 7
15
votes
1 answer

How to send audio file with image and caption in iMessage app for iOS 10?

I am creating iMessage app and trying to send audio or video file to other user. Video file works and looks fine but its not working as expected with audio file. My current code is: let destinationFilename = mp3FileNames[i] let destinationURL = …
Dharmesh Kheni
  • 67,254
  • 32
  • 154
  • 160
12
votes
3 answers

Admob doesn't load ads for iOS 10 iMessage app extension

Instead, just a blank view is appearing. Here's how I load the ad request: GADMobileAds.configure(withApplicationID: "ca-app-pub-9213331484438711~8534798836") // actual app id bannerView.delegate = self bannerView.rootViewController =…
Andrey Gordeev
  • 23,709
  • 8
  • 108
  • 140
11
votes
1 answer

Send an iMessage from a Linux server?

Is there any way to send an iMessage from a Linux server to an iPhone? Obviously... with most traditional SMS plans, you can always send a message to something like 2125551212@txt.att.net and receive it on the phone. Does an equivalent exist for…
Jon Roig
  • 151
  • 1
  • 1
  • 7
1
2 3
29 30