innFactory / react-native-dialogflow

A React-Native Bridge for the Google Dialogflow (API.AI) SDK
https://innfactory.de/softwareentwicklung/ui-ux/sprachsteuerung-mit-api-ai-in-einer-react-native-app/
MIT License
200 stars 64 forks source link

Dialogflow_V2.resetContexts not working #74

Open OscarSaro opened 5 years ago

OscarSaro commented 5 years ago

Hi,

I would like to use the resetContext method, but it always throws this error Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not an object (evaluating 'this.client.getAccessToken'). I'm using the V2. My goal is to use Dialogflow_V2.resetContexts when the intent is settled as end of conversation. All the other methods I’m using work fine.

Is this method only available for V1? Or there is something wrong with my code?

cadenmackenzie commented 5 years ago

I am having the same issue. Happy to share code if necessary!

martinlockett commented 4 years ago

Me too. See https://github.com/innFactory/react-native-dialogflow/pull/86 for a fix