breautek commented on issue #564:
URL:
https://github.com/apache/cordova-plugin-file/issues/564#issuecomment-1497579259
> ```
> exec(after, function(error) {
> console.error(error);
> }, 'File', 'requestAllPaths', []);
> ```
>
> There is no error thrown. Nothing at all ....
Ok.
Then something in native is hanging or going to a path that doesn't lead to
calling the callback context on the native side.
The native project is found at `<cordova-project>/platforms/android`, which
can be opened up in Android Studio. When you open the project up in Android
Studio, it will prompt you to update things like AGP / Android Gradle Plugin.
**Dismiss** any upgrade prompts as it will probably break the cordova project.
Then I'd add a breakpoint on line
https://github.com/apache/cordova-plugin-file/blob/b32be30e4bd012f9d9568a9cc11926b2ad6c14f7/src/android/FileUtils.java#L1016.
And step through to see if it makes it to
https://github.com/apache/cordova-plugin-file/blob/b32be30e4bd012f9d9568a9cc11926b2ad6c14f7/src/android/FileUtils.java#L406
The `requestAllPaths` method is suppose to return a `JSONObject` which is
passed back to the webview.
In fact... I see it doesn't actually call on the callback context on error
:face_exhaling: so you won't get an error on the webview side. So I suspect
that this routine is hitting into an exception at some point inside
`requestAllPaths`. Once we find out that exception, we probably can get a
better idea why it's not working.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]