CleverPush Developer Docs

CleverPush Developer Docs

  • API Reference

›iOS SDK

JavaScript SDK

  • Setup
  • Methods

iOS SDK

  • Setup
  • Methods
  • Chat
  • Stories
  • Troubleshooting
  • Changelog

Android SDK

  • Setup
  • Methods
  • Notification Extender Service
  • Chat
  • Stories
  • Troubleshooting
  • Upgrading
  • Changelog

Cordova SDK

  • Capacitor Setup
  • Cordova Setup
  • Methods
  • Changelog

React Native SDK

  • Setup
  • Methods
  • Changelog

Xamarin SDK

  • Setup
  • Methods
  • Changelog

Flutter SDK

  • Setup
  • Methods
  • Chat
  • Troubleshooting
  • Changelog

Chat

CleverPush Chat View

Objective-C:

  1. Import "CleverPush/CPChatView.h":
  2. Add the Chat View:
#import <CleverPush/CPChatView.h>

CPChatView *chatView = [[CPChatView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
[self.view addSubview:chatView];

Swift:

  1. Import CleverPush
  2. Add the Chat View:
import CleverPush

let chatView = CPChatView(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: self.view.frame.size.height))
self.view.addSubview(chatView)

Handle opened URLs:

[[CPChatView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) urlOpenedCallback:^(NSURL *url) {
  // do something with the opened URL
} subscribeCallback:^() {
  // user has subscribed via Chat
}];
← MethodsStories →
  • CleverPush Chat View
SDKs
JavaScriptiOSAndroidCordovaCapacitorReact NativeXamarinFlutter
Community
TwitterFacebookGitHub
More
BlogImprintPrivacy PolicyTerms of service
Copyright © 2022 CleverPush