• How Do I Exclude Optional iOS Frameworks?

  • As of Swrve iOS SDK version 4.2, it is possible to exclude certain iOS frameworks that aren’t relevant to your app. SDK Version 4.2 to 4.11.4 In Swrve SDKs v4.2 to v4.11.4, you must add the following Preprocessor Macros to exclude the associated framework. Preprocessor Macros Framework SWRVE_NO_ADDRESS_BOOK AddressBook.framework Contacts.framework SWRVE_NO_LOCATION CoreLocation.framework SWRVE_NO_PHOTO_LIBRARY AssetsLibrary.framework Photos.framework Read More


  • Server-Side Implementations

  • This article covers common questions about server-side implementations in Swrve. What is a Server-Side Implementation? A server-side implementation is the use of Swrve without or in addition to the Swrve platform-specific SDKs. Typically this is done by using the Swrve Events API to send events and user properties in an automated way. Some common use cases for a Read More


  • How do I migrate from Google Cloud Messaging to Firebase?

  • As of Android SDK version 4.11, Swrve supports Firebase Cloud Messaging (FCM). If you are integrating the Swrve SDK into a new app and want to use FCM, follow the steps outlined in the Android Integration Guide. If you are upgrading the SDK and currently use Google Cloud Messaging (GCM), you need to properly migrate Read More


  • Integrating the iOS SDK Using Swift

  • In iOS, developers have the option to develop in either Objective-C, which supports most iOS versions, and Swift, which is becoming more widely used in iOS development. While the Swrve iOS SDK includes a number of Objective-C files, Apple has made it easy to use both Swift and Objective-C in the same project. Integrating the iOS SDK using Read More


  • How Do I Configure the Swrve SDK for EU Data Storage?

  • By default, Swrve stores customer resources and content in our US data center. Some customers may require that we store their data in our EU data center, therefore to accommodate these requirements, Swrve has separate .swrve.com endpoints for customers who require data separation (for example, eu-dashboard.swrve.com). This article explains how to update the SDK configuration to point to Read More


  • How Do I Configure HTTP Settings in the Swrve SDK?

  • By default, all Swrve SDKs use HTTPS to communicate with Swrve servers. While this increases the security of your app’s connection with Swrve, you can configure the Swrve SDKs to communicate using HTTP if necessary. Follow the instructions below to do this: As of iOS SDK version 5.0, you can no longer use HTTP. For SDK versions prior Read More


  • How Do I Configure the New Session Interval?

  • Swrve treats an app session as a new session if the user returns to the app after having left it for 30 seconds, by default. However, you can configure the new session interval of 30 seconds using the newSessionInterval config property. You may want to extend it to several minutes to facilitate users taking longer Read More


  • How Do I Log Advertising and Vendor IDs?

  • As of December 2015, it is now possible to log advertising and vendor identifiers. This article explains how to configure the iOS and Android SDKs to do so. To log IDFA (Identifier for Advertisers), add a constant called SWRVE_LOG_IDFA to the preprocessor macros under App Target > Build Settings > Preprocessing > Preprocessor Macros. This Read More


  • Why am I Getting NullReferenceExceptions in SwrveSDKImp.cs?

  • In the Unity SDK, if Swrve is called before it has finished initializing, you may get a NullReferenceException. How to Resolve the Issue To address this issue, go to Edit > Project Settings > Script Execution Order and move SwrveComponent higher in the list.


  • Which Currency Codes Does Swrve Accept?

  • Swrve is set up to handle a number of major world currencies. The following table lists the currencies supported by Swrve: Currency Code Description AED United Arab Emirates Dirham ANG Netherlands Antilles Guilder ARS Argentina Peso AUD Australia Dollar BRL Brazil Real BZD Belize Dollar CAD Canada Dollar CHF Switzerland Franc CLP Chile Peso CNY Read More