如何实施“评价我们” PhoneGap 应用程序中的功能

发布于 2024-12-11 18:47:33 字数 135 浏览 0 评论 0原文

我希望在我的应用程序中添加某种“撰写评论”或“给我们评分”功能,以便我的客户可以轻松地对我的应用程序进行评分和评论。

问题是该应用程序是使用电话间隙实现的。是否可以使用html5-phone gear来实现这个功能?

谢谢!

I wish to add some sort of a "Write a Review" or "Rate Us" feature to my app so my customers can easily rate and review my app.

The problem is that the app is implemented using phone gap. Is it possible to implement this feature using html5-phone gap?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

つ可否回来 2024-12-18 18:47:33

我使用 navigator.notification.confirm 并在用户到达某个点或频繁使用您的应用程序时调用它。当然,您需要添加自己的链接。

请注意,此代码段引用了我的应用程序的其他部分,因此请进行自定义以满足您的需求。

if (settings.core.rate_app_counter === 10) {
    navigator.notification.confirm(
    'If you enjoy using domainsicle, whould you mind taking a moment to rate it? It won\'t take more than a minute. Thanks for your support!',
    function(button) {
        // yes = 1, no = 2, later = 3
        if (button == '1') {    // Rate Now
            if (device_ios) {
                window.open('itms-apps://itunes.apple.com/us/app/domainsicle-domain-name-search/id511364723?ls=1&mt=8'); // or itms://
            } else if (device_android) {
                window.open('market://details?id=<package_name>');
            } else if (device_bb){
                window.open('http://appworld.blackberry.com/webstore/content/<applicationid>');
            }

            this.core.rate_app = false;
        } else if (button == '2') { // Later
            this.core.rate_app_counter = 0;
        } else if (button == '3') { // No
            this.core.rate_app = false;
        }
    }, 'Rate domainsicle', ['Rate domainsicle', 'Remind me later', 'No Thanks']);
}

I use navigator.notification.confirm and have it called when the user reaches a certain point or uses your app so much. Of course you need to add your own links in.

Note this snippet references other parts of my app so customize to meet your needs.

if (settings.core.rate_app_counter === 10) {
    navigator.notification.confirm(
    'If you enjoy using domainsicle, whould you mind taking a moment to rate it? It won\'t take more than a minute. Thanks for your support!',
    function(button) {
        // yes = 1, no = 2, later = 3
        if (button == '1') {    // Rate Now
            if (device_ios) {
                window.open('itms-apps://itunes.apple.com/us/app/domainsicle-domain-name-search/id511364723?ls=1&mt=8'); // or itms://
            } else if (device_android) {
                window.open('market://details?id=<package_name>');
            } else if (device_bb){
                window.open('http://appworld.blackberry.com/webstore/content/<applicationid>');
            }

            this.core.rate_app = false;
        } else if (button == '2') { // Later
            this.core.rate_app_counter = 0;
        } else if (button == '3') { // No
            this.core.rate_app = false;
        }
    }, 'Rate domainsicle', ['Rate domainsicle', 'Remind me later', 'No Thanks']);
}
弱骨蛰伏 2024-12-18 18:47:33

您可以查看 http://itunes.apple.com/linkmaker

另请参阅有关创建 URL 的部分直接进入您的应用程序的评论页面。

http://www.manicgaming.com/2010 /12/make-your-app-easy-to-rate/

最后:

“评价/评论此应用”的应用商店链接

You can checkout http://itunes.apple.com/linkmaker

Also see the section about creating a URL directly to the review page of your app.

http://www.manicgaming.com/2010/12/make-your-app-easy-to-rate/

And finally:

App store link for "rate/review this app"

快乐很简单 2024-12-18 18:47:33

仅供参考,在 wwdc '11 会谈中特别不鼓励评级此应用程序警报。

FYI, rate this app alerts were specifically discouraged in the wwdc '11 talks.

雨落□心尘 2024-12-18 18:47:33

您必须按如下方式调用 window.open

window.open("market://details?id=com.your.app","_system");

You must call window.open as follows

window.open("market://details?id=com.your.app","_system");
寄居人 2024-12-18 18:47:33

现在有一个专门用于此的插件 https://github.com/pushandplay/cordova-plugin-评价

There is now a plugin just for that https://github.com/pushandplay/cordova-plugin-apprate

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文