Skip to content

Commit

Permalink
add docs link to add permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Jan 3, 2024
1 parent acfab11 commit 7e95fd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AndroidNetworkConnectivityChecker(private val context: Context, private va
// Events will be treated like online
// regardless network connectivity
if (!hasPermission(context, ACCESS_NETWORK_STATE)) {
logger.warn("No ACCESS_NETWORK_STATE permission, offline mode is not supported.")
logger.warn("No ACCESS_NETWORK_STATE permission, offline mode is not supported. To enable, add <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" /> to your AndroidManifest.xml. Learn more at https://www.docs.developers.amplitude.com/data/sdks/android-kotlin/#offline-mode")
return true
}

Expand Down

0 comments on commit 7e95fd0

Please sign in to comment.