Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Admob with external website !

josef_j_1
Beginner
617 Views

Hello

I am loading an external page (webiste) into intel xdk  Android App , How do i go about showing Admob banners , the normal method of adding the plugin and the code into the xdk index file does not work . is there any code that i should put in the remote site that is loaded in the App .

I am a bit lost and appreciate any help !

Thanks 

0 Kudos
2 Replies
PaulF_IntelCorp
Employee
617 Views

Your admob ads will only show on top of your apps webview. Typically, when you bring in another web page it opens a new "view" that is sandboxed and has no access to the Cordova APIs. Check the inAppBrowser plugin, there may be a way to get it to work using that plugin. Read the plugin docs carefully to understand the different ways that plugin will work with external pages.

In general, using an app as a shortcut to loading a web site is not considered good form for your app and may be rejected by some of the app stores

0 Kudos
josef_j_1
Beginner
617 Views

Paul F. (Intel) wrote:

Your admob ads will only show on top of your apps webview. Typically, when you bring in another web page it opens a new "view" that is sandboxed and has no access to the Cordova APIs. Check the inAppBrowser plugin, there may be a way to get it to work using that plugin. Read the plugin docs carefully to understand the different ways that plugin will work with external pages.

In general, using an app as a shortcut to loading a web site is not considered good form for your app and may be rejected by some of the app stores

 

Thanks Paul , i am using the inAppBrowser plugin and i don't think  there is a way to achieve what i want with it !

You are right , it's a bad idea loading an external site in an app and i will take your suggestion and use everything in the app .

All is fine for now , thanks

0 Kudos
Reply