Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to assign an ApiKey without the use of a constant? #794

Open
1 task
Maticasale opened this issue Oct 14, 2022 · 0 comments
Open
1 task

Comments

@Maticasale
Copy link

Maticasale commented Oct 14, 2022

VERSIONS

  • Xamarin.Forms.GoogleMaps - 5.0.0
  • Xamarin.Forms - 5.0.0.2515

PLATFORMS

  • Android

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.

Captura de Pantalla 2022-10-14 a la(s) 15 34 11

(Sorry for my bad English)

ACTUAL SCREENSHOTS/STACKTRACE

This is what happens when I don´t use a constant
Captura de Pantalla 2022-10-14 a la(s) 15 36 50

But When it is a constant, everything is OK
Captura de Pantalla 2022-10-14 a la(s) 15 41 04

EXPECTED BEHAVIOR

Get ApiKey through a service and assign it at the beginning when I launch my App

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant