Open anuragkaushik10 opened 5 days ago
What is the size of the string? Does it exceed 16Mb?
Thankyou for your prompt response.
String size will not exceed 16mb
Okay, why can't you use sendFile
? I guess it's more suitable?
But overall sending base64 also should work - does it throw any particular error?
Here you go getting same error when using sendFile() and sendMessage()
@anuragkaushik10 do you call getConnectionInfo
? https://github.com/kirillzyusko/react-native-wifi-p2p?tab=readme-ov-file#sendmessagemessage
Okay I will do but before that.
The steps ->
Hey when following the steps mentioned in README for sending message.
Calling createGroup() gives the following error
++++
Also calling getConnectionInfo() after calling createGroup() gives the following message
{"groupFormed": true, "groupOwnerAddress": {"hostAddress": "host:name", "isLoopbackAddress": false}, "isGroupOwner": false}
Calling createGroup() gives the following error
@anuragkaushik10 Can you share adb logs?
Hey @kirillzyusko and team,
I am building an application where one user is the receiver and the other is the sender, even when there is no internet connection.
I have achieved this feature using react-native-tcp, but it requires too much manual intervention. To make it more automatic, I discovered this library.
However, I am now unsure if this library supports large base64 strings.
Currently, I can call the connect() function successfully, as it doesn't throw an error, indicating the devices are connected.
My next step is to send the actual base64 string to the receiver.
Here is my actual code:
Please take a look and let me know if any further adjustments are required.