Skip to content

Commit 4857bfd

Browse files
authored
Release 3.1.2 (#241)
1 parent 7b73a78 commit 4857bfd

File tree

9 files changed

+41
-4
lines changed

9 files changed

+41
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Intercom
22

3+
## 3.1.2 (2017-03-15)
4+
5+
### Bug Fixes
6+
7+
* Add `languageOverride` to `ICMUserAttributes` (Fixes [#239](https://github.com/intercom/intercom-ios/issues/239).
8+
9+
### Enhancements
10+
11+
* Add API to allow integrating Intercom push notifications manually without swizzling.
12+
* Improved reliability of opening push notifications when using the exisiting automatic mode.
13+
314
## 3.1.1 (2017-03-01)
415

516
* Added more detailed logs in cases where the Messenger cannot open due to an error.

Intercom.framework.dSYM/Contents/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleSignature</key>
1414
<string>????</string>
1515
<key>CFBundleShortVersionString</key>
16-
<string>3.1.1</string>
16+
<string>3.1.2</string>
1717
<key>CFBundleVersion</key>
1818
<string>1</string>
1919
</dict>
48.6 KB
Binary file not shown.

Intercom.framework/Headers/ICMUserAttributes.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@
4747
*/
4848
@property (nonatomic, copy, nullable) NSString *phone;
4949

50+
/**
51+
The language override code for this user.
52+
53+
@note languageOverride must be a valid language code. For more information see [here](https://docs.intercom.com/configure-intercom-for-your-product-or-site/customize-the-intercom-messenger/localize-intercom-to-work-with-multiple-languages ).
54+
*/
55+
@property (nonatomic, copy, nullable) NSString *languageOverride;
56+
5057
/**
5158
The signed up date for this user.
5259
*/

Intercom.framework/Headers/Intercom.h

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Intercom.h
3-
// Intercom for iOS - Version 3.1.1
3+
// Intercom for iOS
44
//
55
// Created by Intercom on 8/01/2015.
66
// Copyright (c) 2014 Intercom. All rights reserved.
@@ -11,7 +11,7 @@
1111
#import "ICMUserAttributes.h"
1212

1313
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_8_0
14-
#error This version (3.1.1) of Intercom for iOS supports iOS 8.0 upwards.
14+
#error This version of Intercom for iOS supports iOS 8.0 upwards.
1515
#endif
1616

1717
NS_ASSUME_NONNULL_BEGIN
@@ -253,6 +253,23 @@ typedef NS_ENUM(NSUInteger, ICMPreviewPosition){
253253
*/
254254
+ (void)setDeviceToken:(NSData *)deviceToken;
255255

256+
/*!
257+
Use this method to check if a push notification payload was sent by Intercom. Typically you should call
258+
+[Intercom handleIntercomPushNotification:] after checking this.
259+
260+
@note This is only needed if you have set `IntercomAutoIntegratePushNotifications` to NO in your Info.plist
261+
@return YES if the payload is an Intercom push notification, NO otherwise.
262+
*/
263+
+ (BOOL)isIntercomPushNotification:(NSDictionary *)userInfo;
264+
265+
/*!
266+
Use this method to handle a push notification payload received by Intercom. You should first check if this
267+
notification was send by Intercom with `+[Intercom isIntercomPushNotification:]`.
268+
269+
@note This is only needed if you have set `IntercomAutoIntegratePushNotifications` to NO in your Info.plist
270+
*/
271+
+ (void)handleIntercomPushNotification:(NSDictionary *)userInfo;
272+
256273
//=========================================================================================================
257274
/*! @name Incoming message presentation options */
258275
//=========================================================================================================

Intercom.framework/Info.plist

0 Bytes
Binary file not shown.

Intercom.framework/Intercom

262 KB
Binary file not shown.

Intercom.framework/Intercom.bundle/locales/en.strings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"time.difference.just.now" = "Just now";
3333
"last_active.minutes.ago" = "Active {minutes}m ago";
3434
"last_active.15_minutes" = "Active in the last {minutes}m";
35+
"admin_active" = "Active";
36+
"admin_away" = "Away";
3537
"message.seen" = "Seen";
3638
"last_active.format.days.ago" = "Active {days}d ago";
3739
"error.starting.conversation.fallback" = "Couldn't start a new conversation";

Intercom.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Intercom'
3-
s.version = '3.1.1'
3+
s.version = '3.1.2'
44
s.summary = 'The Intercom iOS SDK, for integrating Intercom into your iOS application.'
55
s.license = { :type => "Apache 2.0", :file => "Intercom/LICENSE" }
66
s.authors = {"Adam McCarthy"=>"[email protected]", "Brian Boyle"=>"[email protected]", "Conor O’Donnell"=>"[email protected]", "James Treanor"=>"[email protected]"}

0 commit comments

Comments
 (0)