sdk native: remove getting ip from client

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-12 11:54:05 +01:00
parent e5b5ac32fa
commit 832f30e5ee
2 changed files with 1 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
import { AppState, Platform } from 'react-native';
import * as Application from 'expo-application';
import Constants from 'expo-constants';
import * as Network from 'expo-network';
import type { MixanOptions } from '@mixan/sdk';
import { Mixan } from '@mixan/sdk';
@@ -14,7 +13,6 @@ export class MixanNative extends Mixan<MixanNativeOptions> {
constructor(options: MixanNativeOptions) {
super(options);
this.api.headers['X-Forwarded-For'] = Network.getIpAddressAsync();
this.api.headers['User-Agent'] = Constants.getWebViewUserAgentAsync();
AppState.addEventListener('change', (state) => {