Giter Club home page Giter Club logo

Comments (15)

sandipchandra17 avatar sandipchandra17 commented on July 26, 2024 1

Okay fine then even my 2 android phones working fine in sumsung and geonee.

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

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.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

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.

sandipchandra17 avatar sandipchandra17 commented on July 26, 2024

Great job.. thanks

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

@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.

sandipchandra17 avatar sandipchandra17 commented on July 26, 2024

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.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

@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.

sandipchandra17 avatar sandipchandra17 commented on July 26, 2024

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.
Screenshot_20200709-190826_PassOn

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.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

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.

sandipchandra17 avatar sandipchandra17 commented on July 26, 2024

Passing true from receiveFile method in app.js file:

20200709_213926

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

Weird.
I will test it.

from react-native-wifi-p2p.

sandipchandra17 avatar sandipchandra17 commented on July 26, 2024

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())));
}
}

Link: https://stackoverflow.com/questions/4144840/how-can-i-refresh-the-gallery-after-i-inserted-an-image-in-android

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

Will be shipped in 3.1.0

from react-native-wifi-p2p.

sandipchandra17 avatar sandipchandra17 commented on July 26, 2024

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.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.