You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/10 07:43:16 UTC

[GitHub] [cordova-android] viti3600 edited a comment on issue #1042: Cordova9 :- Content file copy & play in “TEMP” or “Download” not adjusting with Android API 29

viti3600 edited a comment on issue #1042:
URL: https://github.com/apache/cordova-android/issues/1042#issuecomment-671209181


   This part of code is not coming up after going with API-29  & Android 9. 
   //create a directory in app storage
                           $cordovaFile.createDir(TEMP_FILE_PATH+"/Download/", "myapp", true).then(function success(result) {
                               writeLogsToFile("debug", "Public Directory created successfully!", 3);
   
                               //copy the file from decrypted folder to public path
                               $cordovaFile.copyFile($scope.relativeFileDirectory + "decrypted/", "decrypted_" + existingFileName, TEMP_FILE_PATH+"/Download/myapp/", existingFileName).then(function success(fileCopiedObject) {
                                   writeLogsToFile("debug", 'file copied to public path successfully..hence trying to load the media..' + JSON.stringify(fileCopiedObject), 2);
                                   $scope.loadMedia(mediaObject, existingFileName, fileCopiedObject.nativeURL);
   
   
   Up to API 16 and Android SDK 26 , the folders are created and PDF (contents) is opening


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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