following code sample returns Error code: 0, which is the error code for internal error in android. Is there any workaround which can enable discovering peers in android 10 devices?
wifip2pmanager.discoverPeers(wifip2pmanagerChannel, new WifiP2pManager.ActionListener() {
@Override
public void onSuccess() {
status.setText("Peer Discovery Started");
}
@Override
public void onFailure(int reason) {
status.setText("Error code:" + reason);
}
});