Thu, 08 Jul 2021 08:25:22 GMT
Join the conversation at slack.cordova.io
Wed, 07 Jul 2021 14:06:41 GMT
@nagendlav says
Hi, i had facing an issue with saving cookies in cordova lib, I see there a function to enable cookies in android but i dont see anything in ios lib. Does anyone has similar experience ?
Wed, 07 Jul 2021 15:18:28 GMT
@nagendlav says
I am working on some payment related UI so when user enables remember me on this device..Server has to recognize the user by storing cookies in the next session. Do you have any inputs on saving
Thu, 08 Jul 2021 00:16:29 GMT
@mathewp.94 says
I‘m currently running a script on the
after_prepare
hook, but I want to run it after the script of a plugin I am using, which is also running onafter_prepare
. Because it’s a plugin it‘s running after my hook that is defined inconfig.xml
is there a way that I can get my script to run after the plugin’s script?
Thu, 08 Jul 2021 00:30:19 GMT
@dpogue says
Can yours run
before_compile
?
Thu, 08 Jul 2021 01:42:02 GMT
@mathewp.94 says
when does the compile step run?
Thu, 08 Jul 2021 01:44:39 GMT
@dpogue says
If you're running
cordova build
it happens afterprepare
Thu, 08 Jul 2021 01:44:48 GMT
@dpogue says
build = prepare & compile
Thu, 08 Jul 2021 01:45:23 GMT
@mathewp.94 says
and build also runs when you use
cordova run
?
Thu, 08 Jul 2021 01:47:55 GMT
@mathewp.94 says
I‘ve been avoiding using run because one of the phones I dev on (a Nokia) never gets picked up properly when I plug it in and I can’t deploy to it. But strangely I can deploy to it fine with Android Studio.
I haven't seen the use of build since I can deploy straight to a phone with Android Studio
Thu, 08 Jul 2021 01:54:38 GMT
@dpogue says
IIRC
run
does weird things and does not runprepare
Thu, 08 Jul 2021 01:54:54 GMT
@dpogue says
run = compile + launch, or something like that
Thu, 08 Jul 2021 01:58:19 GMT
@mathewp.94 says
Does the build command support building signed
.aab
files?
Thu, 08 Jul 2021 01:58:48 GMT
@dpogue says
It should... you can use build.json to tell it to output aab files
Thu, 08 Jul 2021 01:59:54 GMT
@dpogue says
--packageType=bundle
on the command-line, or"packageType": "bundle"
in build.json
Thu, 08 Jul 2021 02:07:51 GMT
@mathewp.94 says
Cool cool, thanks for the explanation. I'm hoping to eventually automate as much of my build process as possible so this is very helpful
Thu, 08 Jul 2021 02:11:26 GMT
@dpogue says
In theory with build.json, you should be able to get your build process down to just
cordova build --release
🙂
Thu, 08 Jul 2021 03:39:37 GMT
@mathewp.94 says
For those curious, I ended up getting around this by making my own plugin that only has anÂ
after_prepare
 hook in it 🙃