如果用户没有振动器,如何确保应用在给予振动许可的情况下在应用商店中仍然可见
If user does not have a vibrator how to ensure app still visible on app store given vibrate permission
我有以下权限:
<uses-permission android:name="android.permission.VIBRATE" />
但有些手机没有振动器,因此拨打 Vibrator v = (Vibrator) this.context.getSystemService(Context.VIBRATOR_SERVICE);
将 return 无效。所以可能会发生崩溃。另外我的问题是,如果我按原样持有上述许可,是否会 google 播放状态说我的应用程序对用户设备不可用,因为他们不持有振动器硬件?
如果我更改对此的权限会怎样:
<uses-permission android:name="android.permission.VIBRATE" android:required="false" />
这会允许用户在 Play 商店中看到该设备吗?
if i hold the permission above as is, will google play state that my app is not available to the users device because they do not hold vibrator hardware ?
不,因为 VIBRATE
不是 a permission that implies any feature requirements。
What if i changed the permissions to this:
那是没用的,因为 there is no android:required
attribute on <uses-permission>
。
我有以下权限:
<uses-permission android:name="android.permission.VIBRATE" />
但有些手机没有振动器,因此拨打 Vibrator v = (Vibrator) this.context.getSystemService(Context.VIBRATOR_SERVICE);
将 return 无效。所以可能会发生崩溃。另外我的问题是,如果我按原样持有上述许可,是否会 google 播放状态说我的应用程序对用户设备不可用,因为他们不持有振动器硬件?
如果我更改对此的权限会怎样:
<uses-permission android:name="android.permission.VIBRATE" android:required="false" />
这会允许用户在 Play 商店中看到该设备吗?
if i hold the permission above as is, will google play state that my app is not available to the users device because they do not hold vibrator hardware ?
不,因为 VIBRATE
不是 a permission that implies any feature requirements。
What if i changed the permissions to this:
那是没用的,因为 there is no android:required
attribute on <uses-permission>
。