问题标签 [smartbanner]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
652 浏览

angularjs - How to make the node modules working in AngularJS project?

I want to use Smart App Banner in my AngularJS project, smart-app-banner uses npm to manage itself.

The guide is very simple and all in one html file. However, in real project, we need to put each file in the right place.

  1. CSS (my project uses scss)

In sample, there is one line in head in html file:

So in my project, I import this css file in app.scss:

  1. JS (my project uses ECMAScript 6)

In sample, there are two part for JS in body in html file:

First Part:

So in my project, I import this js file in app.js:

Second Part:

So in my project, I create a new js file called smart-banner.js in the same directory as app.js file, and put this code in, then import the js file in app.js

smart-banner.js:

But, it's not working. The banner didn't display correctly. Is any step wrong? How to check these process step by step to make sure every file works correctly?

0 投票
2 回答
1961 浏览

ios - iOS 自定义智能应用横幅

我想为智能应用横幅提供自定义视图,我认为这是不可能的。但我在维基百科移动网站上看到过它比标准的苹果横幅小。

仅当安装了 wikipedia 应用程序时,wikipedia 才会在其移动网站上显示自定义横幅。如果未安装或用户卸载它,则横幅会消失。

有没有办法实现这种横幅?

0 投票
0 回答
458 浏览

ios - ios 9.3.1 在开发环境中的 safari 上不显示智能横幅

我在尝试在 ios 9.3.1 上测试智能横幅时遇到问题。我已经在开发环境中使用 ios 9.3.1 的真实设备上进行了尝试,其中智能横幅未显示但存在于 9.2.1 上。相同的元标记正在生产中,并且智能横幅显示在 ios 9.3.1 上。我能看到的唯一区别是,在生产中我有 apple-app-site-association json 文件,而我在 dev 上没有它。但它在 ios 9.2 上运行良好......

这是我使用的元标记

谢谢

0 投票
1 回答
587 浏览

javascript - 如何更改分支智能横幅的位置?

我正在使用分支智能横幅

要设置横幅,我将以下代码放入head

所以它会在每一页的顶部显示横幅。但我希望某些页面在底部显示此横幅。我尝试调用banner特定页面来覆盖它:

但它不起作用。那么该怎么做呢?谢谢!

0 投票
3 回答
5931 浏览

android - Android 广告尺寸(智能横幅并不总是有效)

我遇到了一个非常烦人的问题,adMob他的banner尺寸。智能横幅尺寸是一件非常好的事情,它几乎可以为您做任何事情,与调整广告大小有关,但几乎......

在谷歌文档中是一个智能横幅支持大小的表格。支持多种尺寸,但不是普通 android 手机的景观.. https://developers.google.com/mobile-ads-sdk/android-legacy/docs/admob/smart-banners

这就是它现在的样子:肖像 - 一切都很好

在此处输入图像描述

景观 - 不工作

在此处输入图像描述

那么有没有办法以正确的方式横向展示我的广告?(这是为了ads:adSize="SMART_BANNER",当我使用ads:adSize="BANNER"它时,它会同时显示,但它会锁定到ads:adSize="BANNER"给你的尺寸,所以在更大的屏幕上看起来很糟糕)

XML

0 投票
1 回答
749 浏览

jquery - 智能应用横幅不适用于 jQuery Mobile

我们正在使用此代码:

但是它不起作用,我们无法在移动网站上看到横幅。

因此,我们进行了这样的更改,并且能够在顶部看到横幅,但是我们网站上的 jquery 按钮的 css 崩溃了,所有设计看起来都很糟糕。

什么是最好的解决方案,这样我们就可以在我们的移动网站上使用应用程序横幅,并且使用 jquery mobile 设计我们的移动网站不会中断。

提前致谢。

0 投票
1 回答
1163 浏览

html - 如何在我们的网站中使用 ios 的智能应用横幅

我在我们的网站上使用 ios 的智能应用横幅。我在我的 banner.html 页面中编写了以下代码,但是当我在 iphone 的 safari 浏览器中点击banner.html 时,它没有显示任何类型的横幅。我在做什么错误或我的代码中有任何错误。

我的智能应用横幅网络代码。

请帮助我,在此先感谢

0 投票
1 回答
387 浏览

javascript - 单击按钮后分支智能横幅未重定向

我在我们的应用程序中使用了 Branch SDK,在我们的网站页面中,我们有一个智能横幅将用户重定向到苹果商店和谷歌播放以下载我们的应用程序。智能横幅在Android/Chrome和中正常工作IOS/Safari,但是Chrome/IOS当用户单击按钮下载时,它不会重定向到苹果商店。

我们在这个实现中使用了这个脚本:https ://dev.branch.io/features/smart-banner/guide/

我们已按照教程中的要求更改了 Branch_Key。

0 投票
1 回答
1076 浏览

android - 如何在 branch.io 中为 android 自定义智能应用横幅?

我使用 wordpress 中的分支指标提供的代码来创建智能横幅,但我无法更改横幅的颜色、高度和位置。我还需要横幅上的箭头!!wordpress 中是否有用于此目的的插件!

0 投票
1 回答
1586 浏览

android - 智能应用横幅仅在应用已安装时出现

Jquery.smartbanner当有人尝试在移动设备中打开我的网站时,我正在使用插件来推广我的应用程序。

如果我的应用程序已经安装,它工作正常。

如果应用程序未安装在我的手机中并且如果应用程序已安装而不是显示打开按钮而不是安装,我想显示应用程序横幅。

预先感谢。