Sunday, 27 December 2020

Monday, 5 October 2020

ERR_CLEARTEXT_NOT_PERMITTED in debug app on Android ionic

 add android:usesCleartextTraffic="true" to platforms/android/app/src/main/AndroidManifest.xml


Friday, 2 October 2020

ionic io issue blank screen error cross origin request are only supported for http://

Error: ionic ios WKWebView:  cross origin request are only supported for http:// 
Solution: cordova plugin add cordova-plugin-wkwebview-file-xhr

Friday, 3 April 2020

Why git not using a user different from the one in the config

Using a Mac

git config -l shows the user I want to use

I still get permission denied for another user I've been using.

The user git is using is in the keychain. Can be found by accessing Keychain Access

After removing the unwanted user from the keychain, my git command worked with the right user

NTFS for Mac

https://www.seagate.com/ca/en/support/downloads/item/ntfs-driver-for-mac-os-master-dl/

Sunday, 9 February 2020

angular, resetting creds before auth-guard

Problem:

Race condition:

Reloading the app redirects to login page too early, meaning before the credentials are reset and the user is automatically logged in.

The AuthGuard is triggered before the app finished resetting the credentials in the backgroud

Solution

Use the APP_INITIALIZER hook to run the code that reset the credentials, firing the appropriate actions before the AuthGuard is called.