Skip to content

A native iOS app showcasing integration of WebEngage SDK

License

Notifications You must be signed in to change notification settings

WebEngage/iOS-SDK-Example

Repository files navigation

Version License Platform LastUpdated

Detailed Setup Guide available here.

Minimum SDK Requirements

WebEngage SDK is supported for iOS 10 and above. The following frameworks should be linked as part of the Xcode project (Direct Integration).

1. CoreLocation.framework

2. SystemConfiguration.framework

3. AdSupport.framework

4. -lsqlite3

There are 2 ways of integrating WebEngage to your existing/new Xcode Project.

1. CocoaPods Integration (Recommended)

  1. Add the following to your Podfile

     # For Xcode 11 and above:
    
     target 'WebEngageExample' do
         pod 'WebEngage'
     end
    
     # For Xcode 10:
     target 'WebEngageExample' do
         pod 'WebEngage/Xcode10'
     end
    
  2. Install WebEngage SDK by running pod install

Check out Swift Bridging Header details here.

Learn about Podfile Specifications here.

2. Direct Integration (Manual)

  1. Download the SDK file here. Extract the downloaded zip file. In the extracted zip there would be two directories - xc10 and xc11. If you are using Xcode 10 use the Webengage.framework within the xc10 directory. For Xcode 11 and above use the one in xc11. Save the appropriate Webengage.framework it in a location on your computer.

  2. Select the name of the project in the project navigator. The project editor appears in the editor area of the Xcode workspace window.

  3. Click on the General Tab at the top of project editor.

  4. In the section Embedded Libraries click on + button. It will open up the file chooser for your project. Open WebEngage.framework and select Copy if needed option. This will copy the framework to your project directory.

  5. Below Embedded Libraries, there is Linked Frameworks and Libraries click the + button and add the following frameworks:

    SystemConfiguration.framework
    CoreLocation.framework
    AdSupport.framework
    
  6. Go to 'Build Settings' tab on the top of the project editor. Search for Other Linker Flags option. Add -lsqlite3 under it.

At this point, WebEngage SDK integration is complete and your project should build successfully.

Check out more details here.

About

A native iOS app showcasing integration of WebEngage SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published