example working

This commit is contained in:
Prerak Mann
2019-05-12 01:07:58 +05:30
parent bf1a101c56
commit c118ce5096
2 changed files with 43 additions and 79 deletions

View File

@@ -216,8 +216,7 @@ public class NearbyConnectionsPlugin implements MethodCallHandler {
assert endpointId != null;
assert bytes != null;
String hello = "okay";
Nearby.getConnectionsClient(activity).sendPayload(endpointId, Payload.fromBytes(hello.getBytes()));
Nearby.getConnectionsClient(activity).sendPayload(endpointId, Payload.fromBytes(bytes));
Log.d("NearbyCon java", "sentPayload");
break;