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.
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?
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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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.
Best Answer