I'm working on a taxi application that consumes a lot of the google map service, so in order to reduce costs we decided to use 6 different ApiKeys that rotate throughout the month. These ApiKeys are received by my app through a service that tells me which ApiKey to use when it starts.
The problem appears when I can't find a way to change the apiKey because the only way to assign it is through a constant and It became imposible.
(Sorry for my bad English)
ACTUAL SCREENSHOTS/STACKTRACE
This is what happens when I don´t use a constant
But When it is a constant, everything is OK
EXPECTED BEHAVIOR
Get ApiKey through a service and assign it at the beginning when I launch my App
VERSIONS
PLATFORMS
ACTUAL BEHAVIOR
I will explain my situation.
I'm working on a taxi application that consumes a lot of the google map service, so in order to reduce costs we decided to use 6 different ApiKeys that rotate throughout the month. These ApiKeys are received by my app through a service that tells me which ApiKey to use when it starts.
The problem appears when I can't find a way to change the apiKey because the only way to assign it is through a constant and It became imposible.
(Sorry for my bad English)
ACTUAL SCREENSHOTS/STACKTRACE
This is what happens when I don´t use a constant
But When it is a constant, everything is OK
EXPECTED BEHAVIOR
Get ApiKey through a service and assign it at the beginning when I launch my App