Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AR button object not found (Intent Error) #9

Closed
muazbutt9 opened this issue Mar 4, 2022 · 4 comments · Fixed by #15
Closed

AR button object not found (Intent Error) #9

muazbutt9 opened this issue Mar 4, 2022 · 4 comments · Fixed by #15
Labels
bug Something isn't working

Comments

@muazbutt9
Copy link

Screenshot_20220305_002457_com google android googlequicksearchbox

I recieved this error when i clieck the AR button.

In terminal it says errors sending intent.

@muazbutt9 muazbutt9 added the bug Something isn't working label Mar 4, 2022
@muazbutt9
Copy link
Author

@omchiii

@Foldblade
Copy link
Collaborator

Could you post your device's model and the version of Google Play Services for AR (ARCore)?

@muazbutt9 muazbutt9 reopened this Mar 14, 2022
@muazbutt9
Copy link
Author

muazbutt9 commented Mar 14, 2022

I am using huawer y9 prime and AR core version is 1.30.220390103

2nd device is POCO X3 and AR core version is 1.30.220390103

I also tested on samsung A5, Vivo, and emulator pixel 2 with AR Core latest version

Thanks, @Foldblade

Foldblade added a commit to Foldblade/model_viewer_plus.dart that referenced this issue Mar 14, 2022
### Changed

- `/lib/src/model_viewer_plus_mobile.dart`, update according to the [newest document](https://developers.google.com/ar/develop/scene-viewer#3d-or-ar). Fix [omchiii#9](omchiii#9).
  - Insted of `com.google.ar.core`, now we use `com.google.android.googlequicksearchbox`. This should support the widest possible range of devices.
  - Mode defaults to `ar_preferred`. Scene Viewer launches in AR native mode as the entry mode. If Google Play Services for AR isn't present, Scene Viewer gracefully falls back to 3D mode as the entry mode.
- Update `example\android\app\build.gradle` `compileSdkVersion` to 31
- Update `android_intent_plus` to `3.1.1`
- Update `android_intent_plus to` `3.0.1`

### Removed

- `/lib/src/http_proxy.dart`: empty file
@Foldblade Foldblade mentioned this issue Mar 14, 2022
Foldblade added a commit that referenced this issue Mar 14, 2022
@Foldblade
Copy link
Collaborator

Hello,

I think I've found the problem of "object not found", and a fix commit had been merged into master.

Instead of com.google.ar.core, now we use com.google.android.googlequicksearchbox. This should support the widest possible range of devices. I also set the mode to ar_preferred by default instead of the previous ar_only. Theoretically, if the device supports ARCore, it will use AR mode, otherwise it will fall back to 3D mode.

Because my physical device does not support ARCore, I can only see the model in the Scene Viewer on my device in 3D mode instead of AR mode. As to virtual devices, if ar_preferred is set, it seems that it just can't jump to the Scene Viewer. Temporary, I have no idea about it.

It may take some time for @omchiii to publish version 1.1.4. Could you please try the latest version to see if the problem is fixed for you, and can you view the model in the AR mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants