App integration

Our apps for iOS and Android supports deep linking to select parts of the app. This way, you may open the city bike app directly from your own app.

Android

URI Schema
URIDescription
trondheimbysykkel://stationsOpens the map view
trondheimbysykkel://stations/{station-id}Opens the map view with the station matching the station-id selected
trondheimbysykkel://tripsOpens the trip history view
trondheimbysykkel://profileOpens the profile view

Testing deep links from the command line on Android:

adb shell am start -W -a android.intent.action.VIEW -d trondheimbysykkel://trips

Testing deep links from your app code as an implicit intent on Android:

Intent tripsIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("trondheimbysykkel://trips"));
this.startActivity(tripsIntent);

iOS

URI Schema
URIDescription
trondheimbysykkel://stationsOpens the map view
trondheimbysykkel://stations/{station-id}Opens the map view with the station matching the station-id selected
trondheimbysykkel://tripsOpens the trip history view
trondheimbysykkel://profileOpens the profile view