Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

fitbit app deepLink

Hello,

I am developing an app using Flutter, and I would like to know if it's possible to open the Fitbit app from my app using a deep link. If there's any other way to open the Fitbit app, I would appreciate it if you could let me know.

Thank you.

Best Answer
0 Votes
2 REPLIES 2

Additionally, when I try to open the app with the following code in Kotlin, it doesn’t seem to work.
Is there a problem with the code, or has the Fitbit app blocked this action?

Spoiler
fun openFitbitApp() {
val packageManager = packageManager
val intent = packageManager.getLaunchIntentForPackage("com.fitbit.FitbitMobile")

if (intent != null) {
startActivity(intent)
} else {
val playStoreIntent = Intent(Intent.ACTION_VIEW).apply {
data = Uri.parse("https://play.google.com/store/apps/details?id=com.fitbit.FitbitMobile")
setPackage("com.android.vending")
}
startActivity(playStoreIntent)
}
}
Best Answer
0 Votes

Hi @whwndud 

Instead of deeplinks, Fitbit supports Universale or App Links (depending on the platform you are using).   We have a few that we support which are listed in the documentation.   See Universal Links / App Links.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes