简体   繁体   English

城市飞艇应用内消息显示在错误的位置

[英]Urban Airship In-App messages shown in wrong position

I'm trying to use the Urban Airship library to send In-App messages to the user on my Android app. 我正在尝试使用Urban Airship库向我的Android应用上的用户发送应用内消息。

The problem is that I want the message to be shown in the top position, so I set this up in the UA panel (as shown in the screenshot below) 问题是我希望消息显示在顶部,因此我在UA面板中进行了设置(如下面的屏幕快照所示)

screenshot 屏幕截图

but the messages continue to display on the bottom of the screen. 但是消息继续显示在屏幕底部。

I'm adding the library in the gradle file like this: 我正在像这样在gradle文件中添加库:

dependencies {
    ...
    compile 'com.urbanairship.android:urbanairship-sdk:6.1.2'
    ...
}

I think you have to configure it also on Urban Airship dashboard. 我认为您还必须在Urban Airship仪表板上进行配置。 Go on Settings -> Configuration -> In-app Message. 进入设置->配置->应用内消息。 And here you can choose the position you want for in-app (top or bottom). 在这里,您可以选择应用内所需的位置(顶部或底部)。

Hope it helps. 希望能帮助到你。

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

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