
SDK configuration option (defaults to false): To store in-app messages in memory, set the setUseInMemoryStorageForInApps(true) However, an unencrypted local file is still the default option. Store in-app messages in memory, rather than in an unencrypted local file. This release also allows you to have your Android apps (regardless of minSdkVersion) (Note that Iterable's Android SDK does not store the last push payload atįor more information about this encryption in Android, examine the source codeįor Iterable's Android SDK: IterableKeychain.
authToken - The JWT used to authenticate the user with Iterable's API. Iterable's Android SDK now encrypts the following fields when storing them at In Android apps with minSdkVersion 23 or higher ( Android 6.0) This section describes how to upgrade from earlier versions of Iterable's To handle silent push notifications, use a custom FirebaseMessagingService. Firebase has deprecated FirebaseInstanceIdService. This step is mandatory when working with multiple push providers. SetEmail or setUserId without passing in an auth token). With the new token, it won't call the authHandler again until you call (however, if the SDK receives a secondĬonsecutive 401 with an InvalidJwtPayload error when it makes a request When your app receives a 401 response from Iterable's API with a When your app sets the user's email or user ID.īefore the current JWT expires (at a configurable interval set byĮxpiringAuthTokenRefreshPeriod, in seconds, on IterableConfig) The SDKĪutomatically calls onAuthTokenRequested at various times:
SDK, which can then append the JWT to subsequent API requests. onAuthTokenRequested provides this JWT to Iterable's Android To make requests to Iterable's API using a JWT-enabled API key, first fetchĪ valid JWT for your app's current user from your own server, which must setAuthHandler ( new IterableAuthHandler ( ) ) IterableConfig config = configBuilder. Builder configBuilder = new IterableConfig.