Config.set a custom value for all platforms


#1

I’m trying to set a value (for ex. my API URL) in Config for all platforms.
this.config.set('', 'url', 'http://localhost/cpapi/public'); console.log(this.config.get('url'));
I run the app on browser by running ionic serve in terminal, get null in console. Am I doing it wrong?


#2

I have the same problem? Any solution arround?


#3

I just saved it without the first parameter…
And then I get the token back from the config.
For me it works in that case.

          this.config.set('myToken', token);
          console.info('token from the config', this.config.get('myToken'));