Git Product home page Git Product logo

Comments (6)

rhafiko avatar rhafiko commented on July 18, 2024

try callback(3) instead.

from cordova-plugin-apprate.

krishnadaspalode avatar krishnadaspalode commented on July 18, 2024

Hi @rhafiko , @selcuk-sahin , @pushandplay

The callbacks 'onRateDialogShow' and related callback(1) invokes 'onButtonClicked' on invoking AppRate.promptForRating(), however, they are not triggered based on the user selections in native prompt. Do we have any option to get the user button selections/actions

TIA
Krishna

from cordova-plugin-apprate.

selcuk-sahin avatar selcuk-sahin commented on July 18, 2024

A workaround:
I ended up creating my own soft prompt & trigger the app rate immediately.
I'm using ionic-native wrapper here.
Also using Swal2 for the soft alerts, but you can do it any way you like.

for example:

// show & handle alert
const initialFeedBack = await Swal.fire("Would you like to rate the app?");
if(initialFeedBack.isConfirmed) {
    
    // prompt appRate immediately
    this.appRate.promptForRating(true);
}

from cordova-plugin-apprate.

krishnadaspalode avatar krishnadaspalode commented on July 18, 2024

@selcuk-sahin

I have such controlled invoke of AppRate plugin, My issue is while invoking. I have to hold on to custom logics in below areas, however, these are not being triggered based on user selections in rate prompt. The 'onRateDialogShow' gets invoked right after popup gets launched along with 'onButtonClicked' function. Do we have any way to understand whether user given a rating or selected not now/cancel etc ?

AppRate.setPreferences({
callbacks: {
handleNegativeFeedback: () => {
//TODO- custom logic
},
onRateDialogShow: (callback) => {
callback(3);
//TODO- custom logic
},
onButtonClicked: (buttonIndex, currentBtn, type) => {
//TODO- custom logic
},
done: () => {
//TODO- custom logic
}
}
});

from cordova-plugin-apprate.

selcuk-sahin avatar selcuk-sahin commented on July 18, 2024

Do we have any way to understand whether user given a rating or selected not now/cancel etc ?

I don't believe we can, due to privacy reasons & device limitations.
Users share their opinion & rating with their app store & not with us, directly.

from cordova-plugin-apprate.

krishnadaspalode avatar krishnadaspalode commented on July 18, 2024

Do we have any way to understand whether user given a rating or selected not now/cancel etc ?

I don't believe we can, due to privacy reasons & device limitations. Users share their opinion & rating with their app store & not with us, directly.

Even I too reached the same understandings. Still was checking one more round. Thanks for your time :)

from cordova-plugin-apprate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.