[ 
https://issues.apache.org/jira/browse/CB-7487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16378687#comment-16378687
 ] 

ASF GitHub Bot commented on CB-7487:
------------------------------------

dpeacock commented on issue #81: CB-7487 [Android] Broadcast file write
URL: 
https://github.com/apache/cordova-plugin-file/pull/81#issuecomment-368900560
 
 
   @tvanesse  For a move I'm not sure whether you would need to do it on both 
the dest and src file, you would have to try I guess or read up on the best 
practices.  But you have the right idea of what's required.
   
   The best way to test this would be to 'Fork' the plugin from github, you'll 
see the icon on the main page.  You can then use your favourite Git tool 
(something like GitKraken for example) to download the source locally and work 
on it.  From your cordova project remove the cordova-plugin-file.  You can then 
either add the plugin specifying your local path, or if you have pushed the 
changes to your Git repo you can add the plugin using your repo's URL.  Each 
time you make a change you can remove and re-add the plugin.
   
   One other thing to note is in some older cordova versions I've had issues 
where sometimes removing and re-adding the plug-in wasn't working quite right.  
Doing a cordova platform remove android then re-adding it seemed to solve it.  
You shouldn't have to do this, but if you run into issues it might be worth 
trying.
   
   Working from Git is best, because once you're satisfied with the changes you 
can then make a pull request to get your fixes moved into the main plug-in.  I 
would suggest you create a bug on the Cordova Issue tracker for this so you can 
reference it in your pull request 
https://issues.apache.org/jira/projects/CB/issues  
   
   Hopefully that's enough to get you going.  I know there were some good blog 
posts (much more detailed) about this as well that you could probably google if 
you get stuck.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Writing a file doesn't show up on android MTP
> ---------------------------------------------
>
>                 Key: CB-7487
>                 URL: https://issues.apache.org/jira/browse/CB-7487
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android, cordova-plugin-file
>    Affects Versions: 3.4.0
>         Environment: Nexus 5 and Windows 7
>            Reporter: David Peacock
>            Assignee: Ian Clelland
>            Priority: Major
>
> Using the file plug-in to write out a file works, but when you use MTP to 
> view the file when connected to USB on Windows the file doesn't show up.  
> The file shows up on the device or through adb.  Rebooting the device or 
> using things to refresh the MTP will have the file appear.  This was tested 
> on multiple Nexus 5 devices on multiple Windows 7 machines.
> Cordova should be broadcasting ACTION_MEDIA_SCANNER_SCAN_FILE on the file to 
> have it appear immediately.
> I will be submitting a pull request on the file plug-in for a fix I've tested 
> and confirmed that resolves this issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to