我试图使用Android Intents在Chrome上打开位置设置(在Android上)。我遵循条码扫描器的例子,并尝试编码类似的方式。 对于位置我已经试过这样: -在Android上从Chrome上打开位置设置活动
const uri = "intent://com.google.android.gms.location.settings.GOOGLE_LOCATION_SETTINGS#Intent;action=com.google.android.gms.location.settings.GOOGLE_LOCATION_SETTINGS;end"
我也尝试使用这个打开的设置: -
const uri = "intent://ACTION_SETTINGS#Intent;action=android.provider.Settings.ACTION_SETTINGS;end"
或本
const uri = "intent://android.provider.Settings.ACTION_SETTINGS#Intent;action=android.provider.Settings.ACTION_SETTINGS;end"
但似乎没有任何工作。任何帮助表示赞赏。
我将它附加到使用href标记的按钮上。
那么我的使用案例是针对一些调查/数据收集的形式,没有涉及的应用程序,我可以深入链接。无论如何,看到你提到的答案,我也认为这是不可能的。谢谢。 – deepankar
@deepankar对于这种情况,您可以使用[Instant Apps](https://developer.android.com/topic/instant-apps/index.html)。 –
是的即时应用似乎是不错的选择,但他们只适用于Android 6.0及以上版本。很多设备属于较低类别。 – deepankar