简体   繁体   English

Android BLE配对提示的可见性

[英]Visibility of Android BLE pairing prompt

I'm working on Android app that pairs and interacts with BLE accessory. 我正在研究与BLE配件配对并交互的Android应用。 When app initiates pairing with the accessory for the first time one of two things happen: 当应用首次启动与配件的配对时,会发生以下两种情况之一:

  • Either phone shows pairing dialog with the field for PIN code 任一手机都会显示带有PIN码字段的配对对话框
  • Phone adds new notification to the statusbar with small BT icon. 电话会使用小BT图标将新通知添加到状态栏。

User then has to swipe down and tap "Touch to pair with ..." notification that presents the prompt. 然后,用户必须向下滑动并点按出现提示的“触摸以与...配对”通知。

What does it depend upon? 它取决于什么? Is there a way to encourage OS to show dialog instead of the notification? 有没有一种方法可以鼓励OS显示对话框而不是通知?

There is nothing you can do about it. 您无能为力。 This is totally dependent on the OS (version/variant/manufacturer). 这完全取决于操作系统(版本/变体/制造商)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM