Scringo Android缺陷:不支持亚马逊商店应用程序



我已经完成了研究,现在面临一个非常奇怪的问题,没有团队 @ scringo的支持,android sdk或suringo罐子有足够的证据表明,当我单击我时,请邀请朋友去我通过Facebook的应用程序仅支持Google Play商店链接,而不是Amazon Store链接

任何方法要覆盖这一点,质疑的类是:scringofaceBookAgentIn.java在JAR文件中找到,Facebook邀请或共享方法仅支持PLA Store链接,并且没有为Amazon App Store提供的准备,我是唯一的一个受到这个?

注意:如何覆盖此方法,在相同的

上没有支持的API文档

所讨论的代码来自JAR类文件中的代码:

public void邀请(上下文上下文,长ID)/* 431:/{/ 432:357 /bundle params = new Bundle();/ 433:358 /
params.putString(" to",id);/
434:359 /params.putstring("名称", scringopReferences.instance.ApplicationData.facebookInvitEtitle);/ 435:360 */params.putstring("链接", " https://play.google.com/store/apps/details?id=" context.getpackagename());

我有一个修复程序。这不是一个漂亮的,但会起作用。

scringo项目找到名为Scringo_feedback_root的XML文件。您可以通过转到 res/layout/scringo_feedback_root 来找到它。

此文件包含scringo侧栏上的反馈选项的XML外观。

接下来,更改以下代码

com.scringo.features.ScringoListItem
android:id="@+id/scringoFeedbackRootFacebook"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

to

com.scringo.features.ScringoListItem
android:id="@+id/scringoFeedbackRootFacebook"
android:layout_width="match_parent"
android:layout_height="wrap_content" 
android:visibility = "gone"/>

更改可见度的可见性,以获取与Amazon App Store策略不兼容的任何选项。

接下来,通过导航到res/values/scringo_strings.xml并更改以下字符串

,将找到 scringo_strings.xml 文件 scringo_text_post_feedback_popup_message_5stars

scringo_text_rate_us_description

scringo_text_claim_it

将它们更改为Amazon Appstore而不是Google Play。=)

接下来,在您的活动中,scringoObject.init()呼叫

Scringo.builtForStore(ScringoBuiltForStore.AMAZON);

接下来,您需要在进行测验时删除免费应用程序的索赔,因为这也将直接直接用于Google Play商店而不是Amazon App Store。=)

导航到 res/layout/scringo_quiz_end_dialog.xml

找到具有> android ID的线性层压:id ="@ id/scringoquizendfreegamebamebutton" >在该布局项目中添加 Android:alpha =" 0.0" 。Android:可见性=" Gone"和Android:Clickable =" false"无效。通过将alpha更改为0。

使视图不可见。

接下来,您需要照顾邀请部分,因为它也直接链接到Google Play商店。

通过转到scringo项目中的res/layout/scringo_find_friends_root.xml,导航到XML scringo_find_friends_root.xml。

找到以下代码

<com.scringo.features.ScringoListItem
android:id="@+id/scringoFacebook"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

添加一个android:visibility =" got goot"到该代码中,就像您对scringo_feedback_root.xml所做的那样,如果需要删除othere选项,请通过更改可见性来删除它们。

您应该现在就完成,但是您在亚马逊上的用户的体验与您在Google Play上的用户的体验略有不同。不过,积极的事情是,您来自亚马逊和Google Play的所有用户都将在一个应用程序ID下,这应该增加应用程序中的用户活动。

希望Scringo团队能够在更新中对此进行修复。在此之前,我们必须即兴创作。

替代选项 - ?

选项1:

在www.scringo.com上创建一个新的应用程序ID,然后更改此处的链接,以指向您的Amazon AppStore应用程序以获取"反馈"选项卡/共享链接。我不喜欢此选项,因为它将您的两个社区分开,而不是将它们结合在一起。

选项2:

在www.scringo.com上禁用反馈和邀请选项,并为用户提供另一种方式向您发送反馈或邀请他们的朋友。也不好,因为Scringo已经为您处理了这一点。

全部完成

最新更新