HelpShift integration in iOS Swift

Posted By : Varun Wadhwa | 25-Dec-2016

Helpshift is platform of customer support services for mobile apps.

 

Features :  It provides In-App Messaging , proactive push campaigns , manage FAQs and  In-App inbox support

 

Steps to Integrate HelpShift:  First of we need to make sure that we have HelpShift API Key , Domain Name and AppId which can be easily configured from HelpShift Dashboard after signup . link for HelpShift https://www.helpshift.com/

Step 1.  Integrate HelpShift by adding below line to your podfile:

 pod 'Helpshift', '5.7.1-bitcode'

 

Step 2.  Add HelpShift's target header in Bridging-Header file.

 

#import "HelpshiftAll.h"
#import "HelpshiftSupport.h"
#import "HelpshiftCore.h"
#import "HelpshiftCampaigns.h"
#import "Helpshift.h"
 

 

Step 3.   Call this function to your AppDelegate‘s appDidFinishedLaunching method.

   func addHelpShift(){
       let helpShiftAPIKey = “your-API-key-Here” 
       let helpShiftDomainName =  “helpShift-Domain-name”
       let helpShiftAppId = “helpshift-AppId” 
       HelpshiftCore.initializeWithProvider(HelpshiftAll.sharedInstance())
       HelpshiftCore.installForApiKey(helpShiftAPIKey, domainName: helpShiftDomainName, appID: helpShiftAppId) 
     }

      it'll configure helpshift for your app.

 

 

Features Implementations :


In-App Messaging : For Integrating In-App Messaging we need to call static method showConversation , it’ll open a chat like interface from where app user can start conversation.     

func startChat() {
 HelpshiftSupport.showConversation(self, withOptions: .None)
}

 

 Also there is In-App Notification alerts to user on new message if app is open otherwise a push notification will send if it is configured from dashboard.

 

UI-Customization: To customize helpshift ui , HelpShift Provides HelpShiftConfig.plist file where  we can customize  attributes (like color , fonts)

 

Push Notification:  Helpshift can be configured for push notifications from dashboard , we need to upload Apples certificates for APNS.

 

Notification Count:  Call  getNotificationCountFromRemote(true) to get notification count.

 

THANKS

About Author

Author Image
Varun Wadhwa

Varun is a mobile developer with experience in various technologies like Titanium , Cordova and native iOS development.

Request for Proposal

Name is required

Comment is required

Sending message..