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:
us...@infra.apache.org



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

Reply via email to