You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have sucessfully build an apk to be opened on Meta Quest 3, i used Unity 6 editor cause i needed a version of android NDK high enough to support polar sdk, the probles is that after i open the apk file on quest3 the InitializePolarBleSdk()() function returns the following error: "Error initializing Polar BLE SDK: java.lang.ClassNotFoundException;com.polar.sdk.api.PolarBleApiDefaultImpl Polar BLE Manager is only supported on Android devices."
How to Reproduce
This is the function incriminted i took from the demo in polar sdk:
void InitializePolarBleSdk()
{
try
{
// Get the current Android Activity
using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
{
context = unityPlayer.GetStatic("currentActivity");
}
// Create an instance of PolarBleApi
using (AndroidJavaClass polarBleApiClass = new AndroidJavaClass("com.polar.sdk.api.PolarBleApiDefaultImpl"))
{
// Set the features you want to use
var features = new AndroidJavaObject("java.util.HashSet");
features.Call<bool>("add", "FEATURE_HR");
// Get default implementation
polarBleSdk = polarBleApiClass.CallStatic<AndroidJavaObject>("defaultImplementation", context, features);
}
// Set API callback
SetApiCallback();
}
catch (Exception ex)
{
UpdateStatus("Error initializing Polar BLE SDK: " + ex.Message);
}
}
Expected behavior
Meta should be an Android device, my question is: Did i miss something or polr sdk doesn't work with Quest 3?
Thanks
The text was updated successfully, but these errors were encountered:
Platform on which you observed the bug:
Device on which you observed the bug:
Describe the bug
I have sucessfully build an apk to be opened on Meta Quest 3, i used Unity 6 editor cause i needed a version of android NDK high enough to support polar sdk, the probles is that after i open the apk file on quest3 the InitializePolarBleSdk()() function returns the following error: "Error initializing Polar BLE SDK: java.lang.ClassNotFoundException;com.polar.sdk.api.PolarBleApiDefaultImpl Polar BLE Manager is only supported on Android devices."
How to Reproduce
This is the function incriminted i took from the demo in polar sdk:
void InitializePolarBleSdk()
{
try
{
// Get the current Android Activity
using (AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
{
context = unityPlayer.GetStatic("currentActivity");
}
Expected behavior
Meta should be an Android device, my question is: Did i miss something or polr sdk doesn't work with Quest 3?
Thanks
The text was updated successfully, but these errors were encountered: