• 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) and as of version 6.0, we have completely removed support for Google Cloud Messaging (GCM). 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 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


  • How do I log advertising and vendor IDs?

  • As of December 2015, it is 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 logs 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