I did that to denote connection is secure anyways it still shows same error without theline
show us the screenshot again including Do it results
also to upload an image please follow this suggestion: To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
you have to connect with the companion app as it is described here
Taifun
I did try that but there is one caveat when u use the companion app i am unable grant it permision so i am unable to connect it to ane device
Oh thanks it is now containing but i still get error saying Mac address is not valid
Probably now you are able to provide this
Taifun
Hi i am not sure how but the issue is fixed thank you very much
Fine, then show your final blocks so others can learn from them too.
I only removed the second line in the after picking
And now it is not showing the Mac address not valid
Did you test you app with the APK.
If so, does it work? I don't think so (at least not on Android 12+).
No the app does work i am not sure why it won't work i just need to enable its permission manually
Ok, but do you really want the user to grant the permission manually?
Yes, this fix is already in progress:
I don't think this is correct, especially not for Android ≤ 11.
Here is a test APK that should work on all Android versions:
Maybe some can test it (on different Android versions) and give feedback.
I checked it on Android 9, 10, 11, 12.
At least these permissions must be declared in the Manifest (some only up to maxSdk=30
):
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
I added a LocationSensor
(as a dummy) to declare LOCATION
permissions in the Manifest (and disabled it in Designer).
Have you tried the test server I had set up for the change? The permissions should have the correct maxSdk asserted and also only ask for BLUETOOTH_CONNECT on Android S and later.
I'll check it later ...