AGulev
June 26, 2017, 6:42pm
1
Small native extension for iOS and Android
if (defreview and defreview.isSupported()) then
defreview.requestReview()
else
--do something else
end
Native iOS and Android ratings and reviews window for Defold
Thank’s @dapetcu21 for workaround of issue with old ios SDK
https://www.defold.com/community/projects/131578/
https://defold.com/assets/defreview/
19 Likes
Thank you sir, this is amazing!!!
1 Like
britzl
June 26, 2017, 7:33pm
3
What’s the typical procedure for this on Android? Ask via in-game popup (Yes, No, Later), and if user answers Yes, navigate to Play Store listing? And perhaps remember the answer to not nag the user if the user has already declined. Maybe this could be added as well?
AGulev
June 26, 2017, 8:14pm
4
I am not sure what is typical behavior on android in this case.
We use own popup in game.
I can add if somebody know how it should be (maybe some link to android guideline?)
1 Like
britzl
June 26, 2017, 8:26pm
5
True, there’s no real guidelines. Might be better to leave it out. It was a bad idea.
2 Likes
Thanks for the extension @AGulev
I’m trying to test it in a debug version on my device but whenever I triggered asking for review nothing happens.
Is it because the app is in debug mode or that the app is not published yet?
Hope you can help me.
Cheers!
What iOS version are you on? According to the documentation and the code, it’s only supported on iOS 10.3+.
defreview.isSupported()
Is feature supprorted (It’s avaliable only on iOS 10.3+)
https://github.com/AGulev/defreview/blob/master/defreview/src/objc/DefReviewIOS.mm
1 Like
AGulev
December 9, 2019, 1:52pm
8
I don’t remember exactly, but maybe you need to upload your game to Testflight.
1 Like
I tried in Testflight with an app in debug and release mode without success. hopefully it works once the app gets published.
Thanks @AGulev
I used Defreview in my game (published ), it works.
3 Likes
Thanks for letting me know @Dragosha
totebo
June 30, 2020, 3:53pm
12
@Dragosha Were you able to test it before publishing? My integration works in Appcenter but, for some reason, not on Testflight. When it fails nothing happens when calling defreview.requestReview().
Edit: This is, apparently, expected behaviour:
4 Likes
britzl
November 25, 2020, 7:44am
14
The DefReview extension has been adopted (thank you @AGulev !) as an officially supported Defold extension and moved to the Defold Foundation repo:
The extension has its own manual page: https://defold.com/extension-review/
As part of the move we did refactor a few things:
Extension namespace changed from defreview
to review
Extension functions changed from camelCase to snake_case
So instead of calling defreview.isSupported()
you now need to call review.is_supported()
.
The changes can be found in release 3.0.1 of the extension:
https://github.com/defold/extension-review/archive/3.0.1.zip
If you have an old dependency URL in game.project GitHub should redirect to the new extension.
13 Likes
jorpak
February 22, 2023, 2:45pm
15
Do I have to make my own popup asking for the review or does the extension do that?
AGulev
February 22, 2023, 3:00pm
16
This extension call iOS or Android specific API, which shows native popup. So you don’t need to create your own popup on such platforms using this extentions. Moreover, this APIs doesn’t garantee the popup will be shown, because stores have their own rules about that. That means you can’t call this API on user interaction (e.g. user clicks button)
2 Likes