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

Problem while setting up app for testing #2

Open
celsott opened this issue Feb 4, 2020 · 3 comments
Open

Problem while setting up app for testing #2

celsott opened this issue Feb 4, 2020 · 3 comments

Comments

@celsott
Copy link

celsott commented Feb 4, 2020

Hi,

I've tried to install the app for testing, but had a few issues:

  • It complained about a img for the splash screen; I've solved this deleting all references for this image

  • Now it doesn't find the class PositionProviderAggregator, from package com.mapsindoors.stdapp.positionprovider and looks like this is a class I can't just throw away

please let me know if I did something wrong

Regards

@JoseJVaro
Copy link
Contributor

Hi Celso,

If you are not using the midemo variant, you can omit the PositionProviderAggregator - which is a way of adding different position providers to different variants, what we do internally for several customers - by just adding the GPS provider directly:

In MapsIndoorsActivity.java:

// Add the GPS Position provider directly
mPositionProvider = new GoogleAPIPositionProvider( mActivity );

// Set the position provider
MapsIndoors.setPositionProvider( mPositionProvider );

Please let me know if this did work for you.
Best regards,
Jose J Varo Duarte

@celsott
Copy link
Author

celsott commented Feb 5, 2020

Hi Jose, thank you for your response.

It solved my issue, but now it asks for mapsindoors_api_key. I did some research at the mapspeople website but I couldn't find where to sign up for a key or something. Could you help me with this too?

Thank you!

@JoseJVaro
Copy link
Contributor

Hi Celso, you're welcome.

Regarding the demo API Key, please take a look here: https://github.com/MapsIndoors/MapsIndoorsAndroid/blob/4c155ea3229ef4fdd19e36ff6a3dcb2f435c7eb1/app/src/MIDemo/res/values/mapsindoors_api.xml#L2

Best regards,
/Jose

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

2 participants