Detailed Setup Guide available here.
Minimum SDK Requirements
WebEngage SDK is supported for
iOS8 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)
Add the following to your Podfile
# For Xcode 10 and above: target 'YourAppTarget' do platform :ios, '8.0' pod 'WebEngage' end # ServiceExtension Target target 'NotificationService' do platform :ios, '10.0' pod 'WebEngageBannerPush' end # ContentExtension Target target 'NotificationViewController' do platform :ios, '10.0' pod 'WebEngageAppEx/ContentExtension' end
Install WebEngage SDK by running
Check out Swift Bridging Header details here.
Learn about Podfile Specifications here.
2. Direct Integration (Manual)
Download the SDK file here. Extract the downloaded zip file. In the extracted zip there would be two directories - xc6 and xc7. If you are using Xcode 9 use the
xc9directory. For Xcode 10 and above use the one in
xc10. Save the appropriate
Webengage.frameworkit in a location on your computer.
Select the name of the project in the project navigator. The project editor appears in the editor area of the Xcode workspace window.
Click on the
GeneralTab at the top of project editor.
In the section
Embedded Librariesclick on
+button. It will open up the file chooser for your project. Open WebEngage.framework and select
Copy if neededoption. This will copy the framework to your project directory.
Below Embedded Libraries, there is
Linked Frameworks and Librariesclick the
+button and add the following frameworks:
SystemConfiguration.framework CoreLocation.framework AdSupport.framework
Go to 'Build Settings' tab on the top of the project editor. Search for
Other Linker Flagsoption. Add
At this point, WebEngage SDK integration is complete and your project should build successfully.
Check out more details here.