[ New version SDK ] Metadata in connection could not be sent
Hi skyway team,
When i upgrade to new version, I see that has problem with field metadata.
https://github.com/skyway/skyway-android-sdk/releases/tag/v1.0.0
1. Init connection
ConnectOption option = new ConnectOption();
option.metadata = "connection test";
option.label="connection label";
_data = peer.connect(peerId, option);
2. Peer call back:
peer.on(CONNECTION, new OnCallback() {
@Override
public void onCallback(Object object) {
if (!(object instanceof DataConnection)) {
return;
}
DataConnection dataConnection= ((DataConnection) object);
String metaDataString = dataConnection.metadata();
Log.e(TAG, "[On/CONNECTION]" + "////id: " + ((DataConnection) object).peer() + "/////" + metaDataString);
}
});
But I checked in DataCallback,metadata is always null. And partner can not receive metadata.
So, in new version, metadata can not use?. Can you help me?.
Thank for your help.
-
Please check the posts below.
-
We Provide Complete HP Printer Setup Configuration. Our Service Starts from 123.hp.com/setup Printer unboxing, Ink cartridge Setup, Hp Printer Driver Software Download & Installation. We Support you for 123 hp com Setup Network Printer Connection which can be done by either USB or Wireless Connection. If you are facing any Issues with Hp Printer Installation Contact our Printer experts for Troubleshooting. We are here to resolve your Issues round the clock.
For More Information Visit Our Site: 123.hp.com/setup
Please sign in to leave a comment.
Comments
3 comments