Wed, 06 Oct 2021 08:21:07 GMT
Join the conversation at slack.cordova.io
Tue, 05 Oct 2021 12:38:03 GMT
@norman137 says
If a crash happens on a physical device you own, you should be able to use XCode to pull the raw crash reports from the device itself as well: https://developer.apple.com/documentation/xcode/diagnosing-issues-using-crash-reports-and-device-logs
Tue, 05 Oct 2021 12:38:59 GMT
@norman137 says
If the crash happens on a release version of the app though, it may not provide much helpful information.
Tue, 05 Oct 2021 13:12:48 GMT
@nanduvad says
HI All I am getting an error trying to read a local file after updating to Cordova Android@10.1.1 Uncaught (in promise) DOMException: Failed to execute ‘send’ on ‘XMLHttpRequest’: Failed to load ‘file:///android_asset/www/resources/mc/en-ca.json’.
My code:
req.send(null); if (!req.responseText || req.status == 404) { console.log('No message catalog for ' + lang + ' defaulting to en-US.'); req.open('get', 'resources/mc/en-us.json', false); req.send(null); }```
Tue, 05 Oct 2021 13:15:47 GMT
@norman137 says
you can't XHR on the file:// protocol on cordova-android@10 since it uses WebAssetLoader now (e.g. you have a https://localhost) path.
https://localhost/resources/mc/en-ca.json i believe is the equivalent path.
Alternatively to get the old behaviour, you can use
<preference name="AndroidInsecureFileModeEnabled" value="true" />
config
Tue, 05 Oct 2021 13:17:53 GMT
@nanduvad says
Hi Norman. Merci! But I already have <preference name=“AndroidInsecureFileModeEnabled” value=“true” /> in config. That is what is strange.
Tue, 05 Oct 2021 14:08:21 GMT
@nanduvad says
hello @norman137 to access the file via https://localhost do I have to serve web content from the app ? or How does one do it? Thanks for any help.
Tue, 05 Oct 2021 17:12:58 GMT
@michael.altermann says
Hello, I can`t find any plugins on https://cordova.apache.org/plugins/, it seems that npm search is down? Does someone else has this problem or is it just me? Br,Michael
Tue, 05 Oct 2021 17:15:43 GMT
@norman137 says
npmsearch is a third-party npm search utility and yes it appears to be broken
Tue, 05 Oct 2021 17:15:52 GMT
@norman137 says
it's what cordova uses on the website
Tue, 05 Oct 2021 17:16:22 GMT
@norman137 says
Alternative is just to use http://npmjs.org|npmjs.org directly, I don't think they necessary have a public API (they might im not really sure) but you can use the keyword
ecosystem:cordova
in the search
Tue, 05 Oct 2021 17:16:23 GMT
@norman137 says
Tue, 05 Oct 2021 20:57:25 GMT
@mathewp.94 says
To expand on the applink issue, it looks like if I install my app from the app store, the links aren't auto-verifying but if I create a new build they do.
Perhaps the old build doesn‘t support Android 12 for some reason, but could also be verifying the links because it’s a dev build. It could also be the case that an app installed from the app store takes longer to verify.
Tue, 05 Oct 2021 20:57:32 GMT
@mathewp.94 says
More experimentation pending
Tue, 05 Oct 2021 21:37:39 GMT
@mathewp.94 says
A new release build (installed from internal beta) suffers from the same issue, app links not verifying. Very puzzling.
Tue, 05 Oct 2021 21:49:18 GMT
@dpogue says
Are you on a VPN or using something like Charles Proxy? I've seen those sorts of tools interfere with the verification step before
Tue, 05 Oct 2021 21:51:37 GMT
@mathewp.94 says
no VPNs
Tue, 05 Oct 2021 21:51:59 GMT
@mathewp.94 says
After some more digging, it might actually be an issue with Google signing the App bundles
Tue, 05 Oct 2021 21:52:53 GMT
@mathewp.94 says
One of these APK signing certificate hashes is not like the other What Android Studio says I should use:
73:84:12:18:5A:6B:23:54:CE:4A:62:46:AC:3C:7D:81:5F:DA:57:BF:FD:13:14:5D:CA:9E:4F:18:9F:07:61:C4
What Google is signing the APK with:C9:90:62:32:B1:CD:29:2B:89:90:BE:5C:17:08:6F:F0:1D:B6:06:D4:A2:35:6D:08:55:5D:12:7F:1B:CC:86:B6
Tue, 05 Oct 2021 21:54:10 GMT
@mathewp.94 says
The assetlinks.json file that Google generates in Android Studio has a different hash in it than the APK that Google Play generates
Tue, 05 Oct 2021 21:54:38 GMT
@mathewp.94 says
Wed, 06 Oct 2021 06:13:35 GMT
@miroslav.vojtus says
Hi. Previous thing I redesigned and implemented with exec. It seems more convenient.
Now I have some troubles with startup of installed application. Do you have prepared some solution for logging or do you expect you will address it? The only solid solution I could imagine is writing it directly into main process (with merges) as having it in plugin would not attach to console soon enough.
Do you have some suggestions here? Especialy in relation to other platforms(we concern about iOS). How it is properly solved in a “cordova” way?
Wed, 06 Oct 2021 07:35:03 GMT
@erisu says
@miroslav.vojtus Are you talking about the way/ability to debug the application/main process to try and figure out why it is failing before the WebView part?