Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get the IP of the device when using Tuya RN sdk-Android. #45

Open
ZYFxy7816 opened this issue Feb 18, 2020 · 13 comments
Open

Can not get the IP of the device when using Tuya RN sdk-Android. #45

ZYFxy7816 opened this issue Feb 18, 2020 · 13 comments

Comments

@ZYFxy7816
Copy link

below is the test step we are using.

  1. Repository react-native(SDK) which we use: https://github.com/TuyaInc/tuyasmart-home-sdk-react-native
  2. HomeNativeApi.getHomeDetail method we call from react-native side.
  3. Method which calls in JAVA when we fire HomeNativeApi.getHomeDetail from RN: android/tuya-sdk/android/src/main/java/com/tuya/smart/rnsdk/home/TuyaHomeModule.java:72
  4. We call this method after login, when we open devices list.

For iOS it works fine and we can receive IP address, for android unfortunately not.
Attached is the response we get from the cloud on Android.

data.json.zip

@linqwFmt
Copy link
Contributor

Sorry, I see the IP field in your attachment. Can you give me a specific scenario

@Ashalbulk
Copy link

@linqwFmt Hello. Here I attach two .json files with responses from android SDK and ios SDK. The steps to reproduce exactly the same which the author of this topic mentions.

responses.zip

@linqwFmt
Copy link
Contributor

The return formats of Android and IOS SDK are different, and the IP fields are not often used

@Ashalbulk
Copy link

@linqwFmt I've got your point, but our customers asked about this field. Could you, please, add this field for android?

@ZYFxy7816
Copy link
Author

From the two requests that we had: 1) updating RN SDK for iOS and 2) IP address on Android, your colleague kindly helped us with the iOS SKD update, but we are still waiting for the IP address on Android.

could let us what’s new with the IP address on Android.

@linqwFmt
Copy link
Contributor

I updated it. You're trying

@iot-dev-chal-tec
Copy link

@linqwFmt Thank you very much, we will try the new update and inform you about the resutls.

@Ashalbulk
Copy link

@linqwFmt It doesn't work for us :( I created a new issue about this here: #47

@linqwFmt
Copy link
Contributor

I updated.

@Ashalbulk
Copy link

@linqwFmt It doesn't work after the update when we are trying to run react-native run-android we faced with
Снимок экрана 2020-03-17 в 1 31 05 ДП

@iot-dev-chal-tec
Copy link

iot-dev-chal-tec commented Mar 23, 2020

Hello @linqwFmt and @ZYFxy7816
Would you please kindly advise how we can fix this issue?
Thank you!

@linqwFmt
Copy link
Contributor

I'm sorry to say that we decided to backoff the SDK. the SDK for historical reasons, we may have a lot of incompatibilities with the existing SDK. So if we need IP, we may upgrade the entire SDK

@iot-dev-chal-tec
Copy link

Is there any chance that Tuya can help us upgarding the entire SDK?
If yes, how long the process may take?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants