SAP / gigya-react-native-plugin-for-sap-customer-data-cloud

A React Native plugin for interfacing SAP Customer Data Cloud. The plugin provides quick access to core elements & business API flows available within the SAP Customer Data Cloud designed for React Native mobile application.
Apache License 2.0
14 stars 11 forks source link

Missing `preferences` property from `Gigya.getAccount()` result #69

Open andrejpavlovic opened 7 months ago

andrejpavlovic commented 7 months ago

Checklist

Description

Trying to fetch preferences object from account info using react native Gigya.getAccount() method, but it's missing from the response.

Reproduction

import { Gigya } from '@sap_oss/gigya-react-native-plugin-for-sap-customer-data-cloud';

const result = await Gigya.getAccount()

result.preferences // not set - empty

Additional context

Haven't tested on iOS, but it's definitely missing on Android.

Current workaround is to call rest api directly:

const result = await this.send('accounts.getAccountInfo')

SDK version

0.3.1

Android/iOS

android