Is it possible to open AdMob web links in native browser and market links in market app?
I.e. now when I click on the add my Phonegap WebView overrides by Ad content and there is no way back except pressing Back button (I should click many times to go back in some cases).
I'm using Phonegap 1.0 and "Smartphone Web" AdMob.
I would imagine this is a setting in the admob code you put in your UIWebView
Related
I have tried using this WL.App.openURL('link','_blank').
In my app, I have some hyperlinks. Upon clicking a link, it has to load respective pages in the app itself.
How do I accomplish this?
You are mis-using the API...
You have 2 options:
Use Cordova's InAppBrowser API
This way you can display a browser window ontop of the app; when done you tap a button to close it and return to the app. This code snippet works:
visit Apache.org;
Read the Integrating server-generated pages in hybrid applications training module and inspect the sample project
This way you can load an external URL within the application's WebView.
For your case option 1 seems the solution to use.
I know from here that when I put a fb://... link on my website it opens the native Facebook App (on iPhone and even on Android).
But how is it possible to put some parameters to this link? I want to make a share button, with a text/title/image. The user should be able to review it, but when he is lazy he should also be able just to press "Post it".
EDIT: My App is an webapp, it is just reachable through the browser (PC or mobile) or through an WebView of a native app (iPhone, WindowsPhone, Android).
You should use the native share dialogs with the Facebook SDK.
https://developers.facebook.com/blog/post/2013/07/11/four-reasons-to-upgrade-to-the-new-share-dialog-for-ios/
Here's the iOS documentation: https://developers.facebook.com/docs/ios/share-dialog/
Here's the Android documentation: https://developers.facebook.com/docs/android/share-dialog/
So I've been trying to figure out a way to open the native android facebook app from my Adobe AIR game but couldn't find a solution yet.
Basically I am interesting in letting my users open my game's facebook page and be able to click the like button.
My current solution is to open a webview but that is not good enough because users will have to enter their facebook login details.
So I just need them to open my game's page directly in their facebook app without needing to enter login details in a webview.
Is there a solution for this?
I think you can use navigateToURL(new URLRequest("fb://profile/your_page_id"));
You can get your page id by going to your Facebook page and pressing the Edit Page button. It will be in the browser url bar. E.g. https://www.facebook.com/pages/edit/?id=261615207268847&tab=public
The id is 261615207268847 so navigateToURL(new URLRequest("fb://profile/261615207268847"));
I'm building an Android app using Phonegap, which means all of my code is in html and javascript but is compiled to a native app.
Phonegap has an "in-app browser" that allows users to be smoothly directed to webpages without leaving the app. I've gotten the browser to open; my problem is that I can't get it to close after that. There seems to be no exit button or any way of quitting the browser from the inside.
Is there a way to configure the in-app browser so that it has an exit button? Or -- even better -- is there a way to wrap a custom header or frame around the browser? Like the Facebook app for ios, which wraps its own navigation frame around external webpages that users can view inside the app
If you open the inAppBrowser with _blank set then the browser should open with a navigation bar with a 'Done' button that allows you to dismiss the browser:
window.open("http://www.ibm.com", "_blank", "location=yes");
I'm looking to build an android app based off a mobile site. Basically, I just need an app with a browser that I can use as a platform.
Many of the "build an app online" sites offer this, where you just put in the home url etc, but they all include their own ads etc.
Any ideas where to start?
If you want to make your own simple app without Ads, use just a WebView inside of a simgle activity layout set to fill the screen.
Doing this you will eliminate all ads, as well as have the ability to add in more features later on if you so choose.
If you just want to create a launcher icon that will open up the default browser to your sites page, you can do that by just starting a browser intent, and then closing the actual app.
This will allow you to have an app icon and play store listing, however the only thing that iw will do is bring the user to your website like you have mentioned.
Create an Activity with a WebView.
I think you're looking for an app that displays a WebView. However, that will only display the website as if you were looking at it in a mobile browser such as Android Chrome.
If you want the data from a mobile site, without anything else, then you have to hope that the site provides that, or you have to download its HTML and scrape it.