CleverPush Developer Docs

CleverPush Developer Docs

  • SDK Docs
  • API Overview
  • API Reference

›iOS SDK

JavaScript SDK

  • Setup
  • Methods

iOS SDK

  • Setup
  • Methods
  • Inbox View
  • Chat
  • Stories
  • Deep Links
  • Live Activities
  • Troubleshooting
  • Changelog

Android SDK

  • Setup
  • Methods
  • Notification Extender Service
  • Inbox View
  • Chat
  • Stories
  • Deep Links
  • Troubleshooting
  • Upgrading
  • Changelog

Capacitor SDK

  • Setup
  • Methods

Cordova SDK

  • Setup
  • Methods
  • Changelog

React Native SDK

  • Setup
  • Methods
  • Changelog

Xamarin SDK

  • Setup
  • Methods
  • Changelog

Flutter SDK

  • Setup
  • Methods
  • Chat
  • Troubleshooting
  • Changelog

Deep Links

CleverPush Deep Links

  1. Open the Project in Xcode.
  2. Select the project's main target.
  3. Select the info tab.
  4. Select the url type.
  5. Select the url scheme and enter the url scheme (Example :- cleverpush)
  6. Go to the button of any view controller from where we need to share the url to another user
@IBAction func btnHandlerShareURL(_ sender: Any) {

        // From here user can share their own url to another user using the share activity (Example :- let path = "cleverpush://") 
        let path = "url://"
        let textToShare = [ path ]
        let activityViewController = UIActivityViewController(activityItems: textToShare, applicationActivities: nil)
        activityViewController.popoverPresentationController?.sourceView = self.view
        activityViewController.excludedActivityTypes = [ UIActivity.ActivityType.airDrop, UIActivity.ActivityType.postToFacebook ]
        self.present(activityViewController, animated: true, completion: nil)
        
    }
  1. Add the following code in your AppDelegate.swift file
     func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {

        // From here we can check that url contains cleverpush or not?
        if url.scheme == "cleverpush" {
            let ab = UIStoryboard(name: "Main", bundle: nil)
            let vc = ab.instantiateViewController(withIdentifier: "ViewController") as! ViewController
            window?.rootViewController = vc
        }

        return true
    }
← StoriesLive Activities →
  • CleverPush Deep Links
SDKs
JavaScriptiOSAndroidCordovaCapacitorReact NativeXamarinFlutter
Community
TwitterFacebookGitHub
More
API ReferenceAPI OverviewBlogImprintPrivacy PolicyTerms of serviceGDPR
Copyright © 2023 CleverPush