where to add cordova variable in capacitor #3522
Answered
by
imhoffd
indraraj26
asked this question in
Q&A
-
I would like to add google plus
|
Beta Was this translation helpful? Give feedback.
Answered by
imhoffd
Sep 8, 2020
Replies: 1 comment 1 reply
-
Please see this section in the docs. Cordova variables aren't fully supported in Capacitor. You'll have to investigate how each plugin uses each variable and apply those changes to your project. For example:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
indraraj26
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see this section in the docs. Cordova variables aren't fully supported in Capacitor. You'll have to investigate how each plugin uses each variable and apply those changes to your project.
For example:
REVERSED_CLIENT_ID
: looks like you'll have to editInfo.plist
(https://github.com/EddyVerbruggen/cordova-plugin-googleplus/blob/8fd99c948a7e46c41855b855221438fdfb3fe9bc/plugin.xml#L69-L82)WEB_APPLICATION_CLIENT_ID
: used duringafter_prepare
hook for web to write the client ID into a source file (https://github.com/EddyVerbruggen/cordova-plugin-googleplus/blob/82d12c6b9a77f0395621f0419ef241ead756eaa2/hooks/browser/after_prepare.js)