Bluetooth permission?

Andrew Arnott

Posted on
Mar 21 2014

After installing the Xamarin.Android RayGun component, my app now requires the Bluetooth permission. This will hurt the automatic upgrade of my app and reduce the number of devices I can target. I don't know why Bluetooth is even relevant to the functionality of error reporting.

Can this be fixed?


John-Daniel Trask

Raygun

Posted on
Mar 21 2014

Hi Andrew,

That sounds super strange, I'm not sure why it would be a requested permission. Will investigate and talk with the team about it. Certainly the first I've ever heard of it needing it.

Kind regards,

John-Daniel Trask
Co-founder
Mindscape Limited


Andrew Arnott

Posted on
Mar 22 2014

Thanks. I've confirmed that Mindscape.Raygun4Net.Xamarin.Android.dll file has this attribute:

[assembly: UsesPermission("android.permission.BLUETOOTH")]

This would explain why my app's Android manifest file now says my app requires Bluetooth. It's not obvious why or whether this attribute is actually needed by your assembly. I'm hoping it's not, and that this attribute can be removed and an update released to NuGet soon.

Thanks.


John-Daniel Trask

Raygun

Posted on
Mar 22 2014

Hi Andrew,

I spoke with the engineer in charge of the Xamarin provider (Jason). He confirmed it uses the bluetooth permission as part of obtaining a device name, but he's going to take a look on Monday to see if there's a better place to obtain that information that removes the need for this permission.

We're based in New Zealand so hopefully our Monday is your Sunday night :-)

Kind regards,

John-Daniel Trask
Co-founder
Mindscape


John-Daniel Trask

Raygun

Posted on
Mar 24 2014

Hello Andrew

I've updated the Xamarin.Android provider to no longer require the Bluetooth permissions. This is available right now on NuGet (version 2.0.1). Unfortunately I could not find an alternative to getting the user-specified device name, so MachineName and DeviceName will always be "Unknown" in the error information, but I'm sure that won't be a problem for you. Thanks for bringing this up and sorry for any trouble.

Regards

-Jason Fauchelle


Reply