简体   繁体   English

Phonegap / Cordova中的“查看此应用程序”链接

[英]“Review this App” link in Phonegap/Cordova

I am putting the finishing touches on an iOS / Android application built in Phonegap/Cordova. 我正在对Phonegap / Cordova内置的iOS / Android应用程序进行最后润色。 The information page will offer a link to review the app, and I am trying to implement it. 信息页面将提供查看应用程序的链接,我正在尝试实施它。

This StackOverflow Post has great documentation on how to format the links: 这篇StackOverflow Post有很多关于如何格式化链接的文档:

...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>');
   }....

Now I'm wondering if there's any way to create these links before my app is actually approved by apple. 现在我想知道在我的应用程序实际被苹果批准之前是否有任何方法可以创建这些链接。 It seems to me like I first need to submit the app, get the app id/link, and then input the newly generated review link? 在我看来,我首先需要提交应用程序,获取应用程序ID /链接, 然后输入新生成的审查链接? For the purposes of testing, that's not exactly ideal. 出于测试目的,这并不完全理想。 What's the best way to accomplish this? 实现这一目标的最佳方法是什么?

一种临时的办法可能是把在HTTP基于URL的(例如http://yourdomain.com/ioshttp://yourdomain.com/android )到你自己的网页,并更换一个重定向到URL的相应的应用程序一旦他们获得批准。

why dont you just replace the "package_name" with your app package name since that is what android market is going to use to create the url parameter, 为什么不用你的应用程序包名称替换“package_name”,因为这是android市场将用于创建url参数,

for instant my app package name is com.inmoment.philecomsolutions so i created the link as "market://details?id=com.inmoment.philecomsolutions" 为了我的应用程序包名称是com.inmoment.philecomsolutions,所以我创建链接为“market:// details?id = com.inmoment.philecomsolutions”

and added it to the app before publishing it to the store and it worked. 并在将其发布到商店之前将其添加到应用程序并且它有效。 in this case you do not worry about setting multiple sub domain or link and you dont stress your users if they want to rate or review your app. 在这种情况下,您不必担心设置多个子域或链接,如果他们想要评估或审核您的应用,您不会给用户带来压力。

market://details?id=com.bethclip.android

I know this is an old question, but I ran into a similar issue. 我知道这是一个老问题,但我遇到了类似的问题。 The solution for me was to create the apps in iTunes Connect and Google Play Developer Console before completing the development or building the packages. 对我来说,解决方案是在完成开发或构建软件包之前在iTunes ConnectGoogle Play开发者控制台中创建应用程序。 You could do it even before coding begins. 你甚至可以在编码开始之前完成它。

In Android it shouldn't be an issue, as you have your package name that you know and you are positive it is unique, so you can create the link of the form market://details?id=<package_name> . 在Android中它不应该是一个问题,因为你有你知道的包名,并且你肯定它是唯一的,所以你可以创建表单market://details?id=<package_name>

For iOS, you can use a link like this one: https://itunes.apple.com/app/id<app_id> , and the main difficulty would be to find the app id. 对于iOS,您可以使用以下链接: https://itunes.apple.com/app/id<app_id>https://itunes.apple.com/app/id<app_id> ,主要难点是找到应用ID。 But, as I said in the first paragraph, you can start with the app process on iTunes Connect and get the app Id, even before writing a single line of code. 但是,正如我在第一段中所说,即使在编写一行代码之前,您也可以从iTunes Connect上的应用程序流程开始并获取应用程序ID。

The steps would be: 步骤将是:

  1. Log into your iTunes Connect account 登录您的iTunes Connect帐户

  2. Click on the + and select "New App" 点击+并选择“新应用”

    在此输入图像描述

  3. Enter the information needed in the pop-up form and click on "Create" 在弹出窗体中输入所需信息,然后单击“创建”

    在此输入图像描述

  4. Go to the app page, even without uploading the packages, Apple has assigned the app an Id that you will be able to use in the app itself: 转到应用程序页面,即使没有上传软件包,Apple也会为应用程序分配一个您可以在应用程序中使用的ID:

    在此输入图像描述

So, for that app in particular, the URL would be: https://itunes.apple.com/app/id1201054584 ( don't forget the id in front of the number ). 因此,特别是对于该应用,URL将是: https//itunes.apple.com/app/id1201054584不要忘记数字前面的id )。

Yes, I'm aware this is an old question, but since iOS 10.3 you can make use of the awesome InAppReview from Apple. 是的,我知道这是一个老问题,但是从iOS 10.3你可以利用Apple的超棒InAppReview。

I can attest to the fact that this new way of reviewing apps has been very fruitful for our apps in terms of the number of reviews. 我可以证明,这种审核应用程序的新方式对于我们的应用程序来说在评论数量方面非常有成效。

You can read an even more compelling case study here of how Instagram doubled their reviews . 你可以在这里阅读一个更加引人注目的案例研究,了解Instagram如何将他们的评论翻倍

So, in your example, instead of leading the user away from your app, you'd present them with this popup if they tap the link. 因此,在您的示例中,如果他们点击链接,您可以使用此弹出窗口向他们展示,而不是将用户从应用中引出。

The cordova plugin, which is very easy to use and implement is here: https://github.com/omaxlive/com.omarben.inappreview . cordova插件非常易于使用和实现,请访问: https//github.com/omaxlive/com.omarben.inappreview

For brevity, and in case that GitHub seize to exist (unlikely), here are the steps to use it: 为简洁起见,如果GitHub存在(不太可能),以下是使用它的步骤:

Install the plugin: cordova plugins add com.omarben.inappreview 安装插件: cordova plugins add com.omarben.inappreview

Call it in the code like this: 在这样的代码中调用它:

var requestReview = function(){
    try{
        var success = function() {
            console.log("Success");
        }
        var failure = function() {
            console.log("Error calling plugin");
        }

        inappreview.requestReview(success, failure);
    }catch(e){
        console.log("catch: "+e);
    }
};

Hope this helps someone... 希望这有助于某人......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM