Server-side implementations
How do I exclude optional iOS frameworks?
Integrating the iOS SDK using Swift
How do I configure the Swrve SDK for EU data storage?
How do I configure the New Session Interval?
Why am I getting NullReferenceExceptions in SwrveSDKImp.cs?
Which currency codes does Swrve accept?
How do I send an ISO currency code on Android?
How do I configure SDK device logging?
Do Swrve SDKs use advertising identifier in iOS?
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
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
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
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
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
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.
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
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
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
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