Comments (15)
Okay fine then even my 2 android phones working fine in sumsung and geonee.
from react-native-wifi-p2p.
I got it
I think I will change the source of this library in the nearest days and publish it under 3.1.0
version (if I can not find another way for force-scanning gallery).
from react-native-wifi-p2p.
Changes are shipped in a89d517
I'm going to test it today evening. If everything is fine I will publish it today evening.
from react-native-wifi-p2p.
Great job.. thanks
from react-native-wifi-p2p.
@sandipchandra17 If you want - you can test it and give me your feedback. Merely install this package from github and rebuild your app. And you will be able to use new feature with forceToScanGallery
.
Also in this case you can save my time and I can spend it on fixing other issues that you reported :)
from react-native-wifi-p2p.
I can't download the files. If you can provide me somehow or directly publish I will test and let you know.
from react-native-wifi-p2p.
@sandipchandra17 sure, I can.
Just change the dependency in package.json on the next line:
"react-native-wifi-p2p": "github:kirikzyusko1996/react-native-wifi-p2p#master"
And re-install your dependencies.
from react-native-wifi-p2p.
Installed successfully 3.1.0 but getting an error when i click on receive file. I am passing true as 3rd argument from app.js receive file method.
I think this is due to one callback you added in manager module- receiveFile method but index.js sending 3 argument.
from react-native-wifi-p2p.
index.js sending 4:
WiFiP2PManager.receiveFile(folder, fileName, forceToScanGallery, (pathToFile) => {
Can you send me code snippet? How do you use new method?
from react-native-wifi-p2p.
Passing true from receiveFile method in app.js file:
from react-native-wifi-p2p.
Weird.
I will test it.
from react-native-wifi-p2p.
Ok.. also along with this you can check also below version in your test if the previous one not working.
I found another info for different androis version not sure helpful or not:::
public void refreshAndroidGallery(Uri fileUri) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
Intent mediaScanIntent = new Intent(
Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
mediaScanIntent.setData(fileUri);
mContext.sendBroadcast(mediaScanIntent);
} else {
mContext.sendBroadcast(new Intent(
Intent.ACTION_MEDIA_MOUNTED,
Uri.parse("file://" + Environment.getExternalStorageDirectory())));
}
}
from react-native-wifi-p2p.
Will be shipped in 3.1.0
from react-native-wifi-p2p.
I tested this in android 7 and android 9 mobile working fine.. only one mobile lenovo k5note android 5 not refreshing gallery dont know why. May be mobile issue..
from react-native-wifi-p2p.
Or android specific version issue. I don't have a lot of android devices. Only Xiaomi and Huawei.
On both everything was working fine.
That's why I published new version.
from react-native-wifi-p2p.
Related Issues (20)
- Is there a way to get device Address with ipv4 format ? HOT 2
- Example code is not working HOT 15
- unsubscribeFromPeersUpdates : EventEmitter.removeListener() : Method has been deprecated HOT 5
- Adding something like broadcastTo(message, addresses, promise) HOT 14
- Urgent: Sending File from Server to Client HOT 5
- Could not resolve all files for configuration ':react-native-wifi-p2p:classpath' HOT 7
- Android 13 rejects startDiscoveringPeers() with code 0 HOT 7
- Receive messages when the device is a mobile hotspot HOT 1
- sendMessage and receiveMessage refactoring? HOT 6
- connectionInfo is not updated when connection closes HOT 5
- SendMessageTo - can't use MAC address and we don't have ip addresses HOT 7
- sendFile and receiveFile refactoring HOT 6
- I want to make a real-time-streaming (Two Android devices connected 1:1) HOT 2
- Get Available devices not working HOT 4
- getAvailablePeers() always return empty array HOT 3
- method getAvailablePeers() always return empty device array HOT 1
- TypeError: null is not an object (evaluating 'WiFiP2PManager.init') HOT 1
- startDiscoveringPeers function is working in debug mode but not working in release apk anyone has any solution about that? HOT 10
- Library is not working in Android Version 12 or more upgrade version HOT 9
- Issue in Android version 13 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-wifi-p2p.