[SOLVED] SDKBOX Review plugin bug

Hi,

I found bug on review plugin. First of all, on Android plugin works great. But on iOS if set custom title or anything else custom for review box, listener won’t work. None of these (onDisplayAlert(), onDeclineToRate(), onRate(); onRemindLater() ) will be triggered.

I’m using review v1.5.0.3

For everyone who wants to fix it on iOS, just put all custom stuff for prompt after sdkbox::PluginReview::init(); and it will work.

I am also integrating the review plugin in iOS. But it doesn’t work. Nothing to be shown. I didn’t custom anything, only initial box. Can you help me? It’s very important thing for me.

Hi @TobiasOlsen

It won’t work automatically after you import.
There are certain plugins which would requires user settings to make it to work, and this one certainly.

In order to receive this -

You have to call these functions before the init() as mentioned in the docs -

sdkbox::PluginReview::setTitle("custom title");
sdkbox::PluginReview::setMessage("custom message");
sdkbox::PluginReview::setCancelButtonTitle("custom cancel");
sdkbox::PluginReview::setRateButtonTitle("custom rate");
sdkbox::PluginReview::setRateLaterButtonTitle("custom rate later");

then call sdkbox::PluginReview::init();

Now, you should be having something like this in the sdkbox_config.json

{
    "android": {
        "Review": {
            "LaunchLimit": 3, 
            "DayForReminding": 1, 
            "tryPromptWhenInit": true, 
            "DayLimit": 0, 
            "LaunchForReminding": 2, 
            "UserEventLimit": 0
        }
    }, 
    "ios": {
        "Review": {
           "AppID":"587767923",            //appid, valid on ios
        "DayLimit": 0,                  //days before rate prompt show
        "LaunchLimit": 3,               //launch times before rate prompt show
        "UserEventLimit": 0,            //user event times before rate prompt show, user event increase by invoke userDidSignificantEvent
        "DayForReminding": 1,           //days after user selected reminding later button
        "LaunchForReminding": 2,        //launch times after user selected reminding later button
        "tryPromptWhenInit": true       //try to display prompt when plugin initialization
        }
    }
}

Please read the docs for further understanding clearly.
Let me know, if you face any issues in understanding the key values mentioned with comments inside sdkbox_config.json mentioned above.

Best,
Pabitra

Thanks a lot.

It works good. I had missed one for that.

Glad it worked for you :smile:

Best,
Pabitra

Same here. ReviewListener just doesn’t work in ios if I set custom string before init().
listener works well in android.
I have set
“Disable App Transport Security”,
“Disable Bitcode support”,
“Set your game requires full screen”,
“Initialize Review” in AppDelegate.cpp,
“sdkbox::PluginReview::setListener(this)” in AppDelegate.cpp

in AppDelegate.h
#include “PluginReview/PluginReview.h”
class AppDelegate : private cocos2d::Application, public sdkbox::ReviewListener
{
private:
void onDisplayAlert(){
CCLOG(“onDisplayAlert”);
}
void onDeclineToRate(){
CCLOG(“onDeclineToRate”);
}
void onRate(){
CCLOG(“onRate”);
}
void onRemindLater(){
CCLOG(“onRemindLater”);
}
};

same as Edvinas listener works in ios if I set custom string after init(), but then the auto pop won’t happen.
I have tried it on a new cocos2dx 3.8.1 project.

the listener works well in android, but not in ios.

Hi,
i found a problem on iOS.
If you add new targets(com.game.2) to the project, the rate plugin allways redirect you to the first target (imagine com.game.1)
Where the plugin is looking for the name of the package? Can I change this value?
Thanks

You can setup which app it points to in sdkbox_config.json

    "ios": {
        "Review":{
            "AppID":"587767923",
            ...
        }
    },

The AppID is the app it will point to

1 Like