Skip to content

Commit

Permalink
Update SDK v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
harish-kumarc committed Dec 27, 2018
1 parent 774c615 commit 66aa705
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 5 deletions.
2 changes: 1 addition & 1 deletion FreshchatSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |s|

s.name = "FreshchatSDK"
s.version = "1.5.6"
s.version = "2.0.0"
s.summary = "Freshchat iOS SDK - Modern messaging software that your sales and customer engagement teams will love."
s.description = <<-DESC
Modern messaging software that your sales and customer engagement teams will love.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
/* Article Detail */
"offline_missing_content_text"="Please connect to the internet to view media content available on this article.";

/* JWT */
"jwt_failure_alert_message" = "Oops! Something went wrong. Please relaunch the screen.";

/* No Internet Connectivity */
"offline_internet_message"="Uh-uh. No internet connection";

Expand Down
56 changes: 56 additions & 0 deletions FreshchatSDK/FreshchatSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ enum TagFilterType {
#define FRESHCHAT_USER_RESTORE_ID_GENERATED @"com.freshworks.freshchat_user_restore_id_generated"
#define FRESHCHAT_USER_LOCALE_CHANGED @"com.freshworks.freshchat_user_locale_changed"
#define FRESHCHAT_UNREAD_MESSAGE_COUNT_CHANGED @"com.freshworks.freshchat_unread_message_count_changed"
#define FRESHCHAT_ACTION_USER_ACTIONS @"com.freshworks.freshchat_action_user_actions"

@class FreshchatConfig, FreshchatUser, FAQOptions, ConversationOptions, FreshchatMessage;

Expand Down Expand Up @@ -144,6 +145,7 @@ enum TagFilterType {
*
*/
-(void)showFAQs:(UIViewController *)controller withOptions:(FAQOptions *)options;

/**
* Set user Info
*
Expand All @@ -153,6 +155,28 @@ enum TagFilterType {
*
*/
-(void)setUser:(FreshchatUser *) user;

/**
* Get user Alias
*
* @discussion This method lets you to get user Id in Strict Mode for setting up JWT paload
*
*/
- (NSString *) getFreshchatUserId;

/*
* Set user for JWT Auth strict mode
*
* Sync any change to user information, specified in JWT Token with Freshchat
*
*/
- (void)setUserWithIdToken :(NSString *) jwtIdToken;

/*
* In Auth Strict Mode get status of User Auth Token
*/
- (NSString *)getUserIdTokenStatus;

/**
* Restore User
*
Expand All @@ -165,6 +189,15 @@ enum TagFilterType {
*
*/
-(void)identifyUserWithExternalID:(NSString *) externalID restoreID:(NSString *) restoreID;

/**
* Identify and restore an user base on reference_id and can only be called in auth strict mode
*
* @param jwtIdToken Set a valid Id Token for the current user signed with your account key(s)
*
*/
-(void)restoreUserWithIdToken:(NSString *) jwtIdToken;

/**
* Clear User Data
*
Expand Down Expand Up @@ -205,6 +238,17 @@ enum TagFilterType {
*
*/
-(void)setPushRegistrationToken:(NSData *) deviceToken;
/**
* Open Freshchat Deeplink
*
* @discussion Handle freshchat channels,faq deeplink and present in viewController
*
* @param linkStr Freshchat Deeplink String
*
* @param viewController present Freshchat Screen from above the view Controller
*
*/
-(void) openFreshchatDeeplink:(NSString *)linkStr viewController:(UIViewController *) viewController;
/**
* Check if a push notification was from Freshchat
*
Expand Down Expand Up @@ -295,6 +339,18 @@ enum TagFilterType {
*/
-(void) dismissFreshchatViews;

/**
* Code block for handling links. Return 'YES' to override default link behaviour and 'NO' to handle it on the block itself.
*/

@property (nonatomic, copy) BOOL(^customLinkHandler)(NSURL*);

/**
* Code block for push notification tap events . Return 'YES' to not allow channel open and 'NO' to launch the coresponding channel.
*/

@property (nonatomic, copy) BOOL(^onNotificationClicked)(NSString*);

@end


Expand Down
10 changes: 9 additions & 1 deletion FreshchatSDK/ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ Freshchat iOS SDK - Powered by Freshdesk

Documentation : https://support.freshchat.com
Support Email : [email protected]
Version : 1.5.6
Version : 2.0.0

Ver 2.0.0
__________________________
Enhancements
- Ability to intercept all external links
- Securely identify and restore users using Id Tokens (JWT)
- Ability to intercept Freshchat notification
- Ability to listen to Freshchat events like message sent, message received, etc.

Ver 1.5.6
__________________________
Expand Down
Binary file modified FreshchatSDK/libFDFreshchatSDK.a
Binary file not shown.
3 changes: 1 addition & 2 deletions Sample/ObjectiveCSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@

target 'ObjectiveCSample' do
# use_frameworks!
pod 'FreshchatSDK', :git => 'https://github.com/freshdesk/freshchat-ios', :branch => 'canary'
end
pod 'FreshchatSDK'
2 changes: 1 addition & 1 deletion Sample/SwiftSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

target 'SwiftSample' do
use_frameworks!
pod 'FreshchatSDK', :git => 'https://github.com/freshdesk/freshchat-ios', :branch => 'canary'
pod 'FreshchatSDK'
end

0 comments on commit 66aa705

Please sign in to comment.