Git Product home page Git Product logo

cordova-plugin-apprate's People

Contributors

akofman avatar bipoza avatar ersingencturk avatar fpmweb avatar guylando avatar jesusbotella avatar jon-moreira avatar joshuahotz avatar kpatfln avatar krysalead avatar luigi37 avatar marcelozapatta avatar markarja avatar mikeboht avatar nbamj avatar osben avatar petercasinelli avatar pushandplay avatar regevbr avatar rei1011 avatar rgksugan avatar rodrigograca31 avatar rpanadero avatar saaiful avatar staskuban avatar steffen911 avatar timasjackus avatar viking2917 avatar westonganger avatar znegva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-apprate's Issues

what is the "the Package Family Name of the application" ?

hi @pushandplay
great plugin ~
but I met some trouble in WP8,Android and iOS are all work

according to this
https://github.com/pushandplay/cordova-plugin-apprate/blob/a126c2a/README.md

AppRate.preferences.storeAppURL.windows8 = 'ms-windows-store:Review?name=<the Package Family Name of the application>';
AppRate.promptForRating(true);

when I execute,it will show the dialog just like the ios
https://camo.githubusercontent.com/0d0b29b0b5d7cfabbe4a85219631ef92c8adc1e5/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f32363233382f436f72646f76612f506c7567696e732f417070526174652f707265766965775f695061642e706e67
but click the "Rate it now" button,nothing happened

so my question is...
how to get the correct "Family Name" ?
any rule in WMAppManifest.xml or other related file ?

PS
I try my "app name",but not work too
this is my address
http://www.windowsphone.com/zh-tw/store/app/phonegap-with-jquery-mobile/ab7bc038-ee4c-44f2-bbff-613a61fc9493

some suggestion feedback to you

in this
https://camo.githubusercontent.com/0d0b29b0b5d7cfabbe4a85219631ef92c8adc1e5/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f32363233382f436f72646f76612f506c7567696e732f417070526174652f707265766965775f695061642e706e67

suggestion 1
if these words can definition by javascript,I think it is more Elasticity,just like that...

var title = "..."
var content = "..."
var botton_1 = "..."
var botton_2 = "..."
var botton_3 = "..."

if could like above,You will never have to worry about the "translation problem"
https://crowdin.net/project/apprate-cordovaphonegap-plugin

suggestion 2
if could trigger the botton1 (no thanks)、botton2 (remind me)、botton3(rate now) ,just like that...

navigator.apprate.promptForRating(trigger_function);

function trigger_function(botton_index)
{
if(botton_index == 1) { ... }
if(botton_index == 2) { ... }
if(botton_index == 3) { ... }
}

suggestion 3
if these three buttons's Position can definition by javascript,I think it is more Elasticity,just like that...

var botton_1_index = "3"
var botton_2_index = "2"
var botton_3_index = "1"

and it will order by the "index" value ASC

suggestion 4
I have been complete the "Chinese Traditional" Translation,hope you will like it

Improve Android rate-dialog layout

#61

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5528388-improve-android-rate-dialog-layout?utm_campaign=plugin&utm_content=tracker%2F1192251&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1192251&utm_medium=issues&utm_source=github).

what is the "promptAgainForEachNewVersion" true usage meaning ?

hi @pushandplay
according to this
https://github.com/pushandplay/cordova-plugin-apprate/blob/a126c2a/README.md
it said "promptAgainForEachNewVersion" is show dialog again when application version will be updated

for example for Android with my code

AppRate.preferences.useLanguage = 'zh-TW'
AppRate.preferences.storeAppURL.android = 'market://details?id=com.littlebau.phonegap';
AppRate.preferences.promptAgainForEachNewVersion = true;
AppRate.promptForRating(true);

so...if my app is version 1.0 for now,but there is a new version maybe 1.1 in the Google Play or itunes store...whatever
after I update the new version and relaunch my app,that the dialog will show again automatically ?
is there anything that I misunderstood ?

every "custom language" seem use "displayAppName" that only can set by once time

these are all my code

function checkAppRate(action, action2)
{
AppRate.preferences.useLanguage = action
AppRate.preferences.displayAppName = action2;
AppRate.preferences.storeAppURL.ios = '864908959';
AppRate.preferences.storeAppURL.android = 'market://details?id=com.littlebau.phonegap';
AppRate.promptForRating(true);
}

<li onClick="checkAppRate('zh-TW','soft1');">botton1</li>
<li onClick="checkAppRate('zh-Hans','soft2');">botton2</li>
<li onClick="checkAppRate('zh-TW','soft3');">botton3</li>

ween I use botton1,it will show the 'zh-TW' dialog and the dialog's displayAppName become 'soft1',good~
ween I use botton2,it will show the 'zh-Hans' dialog and the dialog's displayAppName become 'soft2',good~

but...
ween I use botton3,it will show the 'zh-TW' dialog and the dialog's displayAppName still 'soft1'

so I just want to ask..
if every "custom language" seem use "displayAppName" that only can set by once time at the same moment

How do you simulate "uses"?

I can't seem to get the rating prompt to show up again after the initial one.

I tried swiping the app from the task switcher to "force quit" them but it doesn't seem to have any effect.

This happens on both IOS and Android.

Export navigateToAppStore

I'd love to see navigateToAppStore exported as a way to immediately send a user to the app store rating page (this way I could design my own app store dialog that better fits in with the design of my app).

after use "Set custom Locale object",the "Set custom language" will Invalidation anymore

this is my all code

<script type="text/javascript">
function checkAppRate(action, action2, action3, action4, action5, action6)
{
 if(action != '')
 {
 AppRate.preferences.useLanguage = action;
 }
 if(action == '')
 {
 var customLocale = {};
 customLocale.title = action2;
 customLocale.message = action3;
 customLocale.cancelButtonLabel = action4;
 customLocale.laterButtonLabel = action5;
 customLocale.rateButtonLabel = action6;
 AppRate.preferences.customLocale = customLocale;
 }
AppRate.preferences.storeAppURL.ios = '864908959';
AppRate.preferences.storeAppURL.android = 'market://details?id=com.littlebau.phonegap';
AppRate.preferences.storeAppURL.windows8 = 'ms-windows-store:Review?name=PhoneGap with jQuery Mobile';
var onButtonClicked = function(buttonIndex) { alert("click -> "  + buttonIndex); };
AppRate.preferences.callbacks.onButtonClicked = onButtonClicked;
AppRate.promptForRating(true);
}
</script>
<li onClick="checkAppRate('zh-TW','');">botton1</li>
<li onClick="checkAppRate('zh-Hans','');">botton2</li>
<li onClick="checkAppRate('','評分這個軟體','如果你喜歡使用這個軟體,可以給我一點時間幫助我進行評分的動做嗎? 它不會花你太多時間的啦,感謝你的幫忙唷!','不了謝謝唷','稍後提醒我吧','現在評分吧');">botton3</li>

when I click botton1,it will show "zh-TW" dialog,good work
when I click botton2,it will show "zh-Hans" dialog,good work
when I click botton3,it will show the dialog according my define keywords,good work too
but...
when I change back to click no mater "botton1" or "botton2",it will still show "botton3" behavior

PhoneGap Build: explain in readme

Hi,
how do I change preferences and locales when using your plugin via phonegap build?
Additional explanation in your readme would be nice.
Tried adding preferences.js and locales.js by myself, didn't work...
regards
Manuel

some issue feedback to you

I am using PGB 3.5 and your latest plugin 1.0.1
according to this
https://github.com/pushandplay/cordova-plugin-apprate
no mater Android or iOS

issue 1
no mater example 1 or 2,the result are sill this (fully same)
https://camo.githubusercontent.com/0d0b29b0b5d7cfabbe4a85219631ef92c8adc1e5/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f32363233382f436f72646f76612f506c7567696e732f417070526174652f707265766965775f695061642e706e67

issue 2
example 3 is broken,seem not work,no any response

Apprate causing Crash in iOS only

Plugin runs fine in Android but causing crash on start after Apple Store Release..Not sure if anyone else experiencing this especially after iOS 8 updates?

"onButtonClicked" never trigger

no mater in Android, iOS, WP8
the "onButtonClicked" never trigger "alert" method
for example Android code

AppRate.preferences.storeAppURL.android = 'market://details?id=com.littlebau.phonegap';
AppRate.onButtonClicked = function(buttonIndex) { alert("onButtonClicked -> " + buttonIndex); };
AppRate.promptForRating(true);

what is the "usesUntilPrompt" true usage meaning ?

hi @pushandplay
according to this
https://github.com/pushandplay/cordova-plugin-apprate/blob/a126c2a/README.md
it said "usesUntilPrompt" is count of runs of application before dialog will be displayed

but I try,it seem have no any affect
for example for Android with my code

AppRate.preferences.useLanguage = 'zh-TW'
AppRate.preferences.storeAppURL.android = 'market://details?id=com.littlebau.phonegap';
AppRate.preferences.usesUntilPrompt = 10;
AppRate.promptForRating(true);

when I execute it,it will show the dialog almost immediately,not must be wait for "10" seconds
is there anything that I misunderstood ?

PS
I found no mater what kind of usage behavior
if I use AppRate.promptForRating(true);
the dialog will show immediately
but if I use AppRate.promptForRating();
the dialog will never show (no mater what usesUntilPrompt integer is it...)

How to implement

I'm using the following code:

//rate
var cfg = {
    usesUntilPrompt: 2,
    displayAppName: "My App Name",
    customLocale: {
        title: "Rate %@",
        message: "If you enjoy using %@, would you mind taking a moment to rate it? It won’t take more than a minute. Thanks for your support!",
        buttonLabels: ["No, Thanks", "Remind Me Later", "Rate It Now",]
    },
    appStoreAppURL: {
        ios: 'itms-apps://itunes.apple.com/ru/app/id736199575?l=en&mt=8'
    }
};

navigator.apprate.setup(cfg);
navigator.apprate.promptForRating();

I have places this in the deviceready function (and also tested it in the "$(document).ready(function()" part) but the popup does not appear.

Where do I have to implement it to work?
What is the Android url? Same as iOS, what I mean is with "itms-apps://"

I can provide you with Dutch translations if you want.

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.