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

2.0.1: 'Android activity not available' on Android #45

Closed
amitkot opened this issue Aug 12, 2020 · 5 comments
Closed

2.0.1: 'Android activity not available' on Android #45

amitkot opened this issue Aug 12, 2020 · 5 comments

Comments

@amitkot
Copy link

amitkot commented Aug 12, 2020

Using version 2.0.1, running this code on an Android device with Play Services:

await AppReview.isRequestReviewAvailable

I get:

PlatformException(error, Android activity not available, null)

Note: my app uses pre-1.12 android setup (before Android v2 embedding).

Also, I see that an alternative implementation (https://github.com/britannio/in_app_review) uses the ApplicationContext instead of the Activity one. Wouldn't it be better to do the same instead of keeping a WeakReference to the Activity?

@alectogeek
Copy link

Does it happen even when installed from Google Play?

@tzachov
Copy link

tzachov commented Sep 29, 2020

@amitkot

Also, I see that an alternative implementation (https://github.com/britannio/in_app_review) uses the ApplicationContext instead of the Activity one. Wouldn't it be better to do the same instead of keeping a WeakReference to the Activity?

Tried it and got:

W/ActivityThread(27078): handleWindowVisibility: no activity for token android.os.BinderProxy@eb2aff9

@bakua
Copy link

bakua commented Oct 9, 2020

Does it happen even when installed from Google Play?

Hello, yes it does. I have real users running into this issue. Randomly picked user's device it happens on: Device Type Samsung Galaxy S7 Edge, OS android 8.0.0.

@shinriyo
Copy link
Contributor

A problem occurred configuring root project 'app_review'.

@rodydavis
Copy link
Member

Does not support every version of android, but there is a fix for it with version 2.1.1

reopen if it is still an issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants