Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Accessing AppFlow environment keys from Ionic 4/5/6 apps

$
0
0

Might be a stupid question but I’d like to store some API keys as key values in AppFlow Environment variables such as

TEST
api_endpoint:  https://whatever.com
client_key: "12345"

PRODUCTION
api_endpoint:  https://whateverelse.com
client_key: "98765"

The Appflow docs here state I can get to those values in my source code but only in an Ionic 3 app.

What’s the method for this in Ionic 4 and beyond? I realise I can access them from the build scripts in package.json to swap environment files but what’s the advantage of storing actual keys in AppFlow Environments rather than in environment files in the app?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>