pushandplay / cordova-plugin-apprate Goto Github PK
View Code? Open in Web Editor NEWThis plugin provide the "rate this app" functionality into your Cordova/Phonegap application
License: Apache License 2.0
This plugin provide the "rate this app" functionality into your Cordova/Phonegap application
License: Apache License 2.0
open link: itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=
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
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
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?
all detail content right here
http://community.phonegap.com/nitobi/topics/-plugins-cordova-io-seem-not-really-work
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).
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
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
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.
if somebody already rating,for example "Google Play"
that the "Rating Menu" should not pop up
https://camo.githubusercontent.com/0d0b29b0b5d7cfabbe4a85219631ef92c8adc1e5/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f32363233382f436f72646f76612f506c7567696e732f417070526174652f707265766965775f695061642e706e67
if could...
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
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 can i use your plugin for bb10?
ipad mini iOS 8.1
when I set "AppRate.preferences.openStoreInApp" to false,it will open the "outside" app store page and automatically locate to the "Discuss" label
http://www.littlebau.com/20141123/01.PNG
but...
when I set "AppRate.preferences.openStoreInApp" to true,it will open the "inside" app store page but can't automatically locate to the "Discuss" label
http://www.littlebau.com/20141123/02.PNG
Add improvements for mixed locales support (ala zh-TW)
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 ?
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.
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);
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.