#tinyapps-terminal
1 messages · Page 1 of 1 (latest)
@fervent niche you'd simply pass a tml_xxx location ID to BluetoothConnectionConfiguration instead of undefined. The idea is your app should have a default location configured(or otherwise determined, e.g. list them and ask the user of the app to pick one) and you register readers to that location if the reader isn't previously registered to somewhere.
Thank, but how I get location ID if I have gps coordinates or something? Please note I was not able to find any documentation how I can get tml_xx valid values?
there is no API to list locations and ask the user to select or app does it automaticlly?
can you please point me to a doc describing what is tml_ and how it is generated?
tml_xx is a Location object. https://stripe.com/docs/api/terminal/locations
you create them in the API on the backend, or through the dashboard.
there is no API to list locations and ask the user to select or app does it automaticlly?
you're writing the app so you can make it do that!
our example app has flows that lets the user list and pick a location, for instance. See the code at https://github.com/stripe/stripe-terminal-android/tree/a31ffdc001780b7926363c7289c5f059594afd89/Example/javaapp/src/main/java/com/stripe/example/javaapp/fragment/location (or run the example app)
but I need back-end to be able to make locations?
yes