• 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 exclude optional iOS frameworks?

  • In Swrve iOS SDK version 4.2, we implemented the functionality to exclude certain iOS frameworks that weren’t relevant to your app, such as camera permissions or push notifications, using preprocessor macros that excluded the framework. In version 5.0, we changed the logic so that you needed to add the macros to include the related permissions 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 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


  • 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


  • How do I send an ISO currency code on Android?

  • When you send an IAP event to Swrve, you must send a valid ISO currency code in the local_currency parameter. Swrve uses this currency code to convert the cost from the local currency to USD which is reported in the KPI Metrics dashboard. On Android, this is tricky because the OS doesn’t reliably report the Read More


  • How do I configure SDK device logging?

  • By default, the Swrve SDK performs native device logging on iOS (Console Logs), Android (Logcat) and Unity. If required, you can disable these logs. On Android and iOS, you can also change the default logging level. Additionally, the Swrve Unity SDK creates a small delay of approximately 14 milliseconds (ms) when logging. This is a not a Read More


  • Do Swrve SDKs use advertising identifier in iOS?

  • The Swrve SDK does not use the IDFA as of version 2.0.1. New submissions to the app store using older versions of the Swrve SDK may be rejected by Apple, so Swrve strongly recommends updating to the latest SDK. If you can’t upgrade to the latest Swrve SDK, follow the instructions below. If you upgrade Read More