Clicks on banner launch the activity itself, no the browser

31 views
Skip to first unread message

Francisco Gomez

unread,
Jul 29, 2014, 5:38:34 AM7/29/14
to google-adm...@googlegroups.com
I have an app with the following filter

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:scheme="http" />
    <data android:scheme="https" />
</intent-filter>

it works fine, and when the user clicks on an URL in gmail, my activity is launched.

But, I've realized that when an user clicks on the AdMob banner (and its an http URL), the activity is launched again. so all clicks fails because my activity is not a browser, just read aloud the web content.

when the Banner correspond with an app it works fine.

I tried to disable the filter when the app is visible, but it gives some undesired problems.

Can someone give me a advice?

Thanks,

Franci.


Amy Quispe (AdMob SDK Team)

unread,
Jul 29, 2014, 7:36:13 PM7/29/14
to google-adm...@googlegroups.com
Hi Franci,

What are the problems with disabling the filter when the app is visible?

Amy Quispe

Francisco Gomez

unread,
Jul 30, 2014, 5:51:50 PM7/30/14
to google-adm...@googlegroups.com
finally I've found the problem, and it seems to be solved. I have two cases:

1. When I click an URL in Gmail app, it shows a chooser, if I choose my app and "only once", it opens my activity. Then I click the banner and it shows the same chooser. No problem.

2. When I click an URL in Gmail app, it shows a chooser, if I choose my app and "always", it opens my activity. Then I click the banner and it calls again my activity.  And the problem persists until I drop default values for my app.

I tried to disable the filter, but sometimes it crashes and the app gets invisible 

I've finally decided to inspect the intent for an action "android.intent.action.VIEW" and an url in data starting by "http://googleads.g.doubleclick.net", is so then I start a chooser for the same intent and finish the activity.

Now my question is, What are the urls I should test for?

Franci.

Amy Quispe (AdMob SDK Team)

unread,
Aug 5, 2014, 5:29:40 PM8/5/14
to google-adm...@googlegroups.com
Hi Francisco,

I'm not sure what your question is?

Amy
Reply all
Reply to author
Forward
0 new messages