inappbrowser

Render PDF from HTML and show it

自作多情 提交于 2019-12-08 02:51:58
问题 I'm having issues with mobile development. As I'm trying to render a PDF from HTML, I need to show it on my mobile device. So far, I'm able to render a pdf in the form of a datauri (using jsPDF), but showing it on my mobile device is just ... well, I've got no words for it, only frustration :) I'm working with a simple test HTML file, PhoneGap and jsPDF (w/ Html2Canvas) HTML <div id="content"> <div> <div> Hello world </div> </div> </div> <button type="button"> Download </button> CSS div {

How to open iTunes link with inappbrowser?

巧了我就是萌 提交于 2019-12-08 02:09:36
问题 I've got inappbrowser working in my Cordova 2.8 app except that links to iTunes, like this: <p><a href="#" onclick="window.open('https://www.itunes.apple.com/us/app/apppname', '_blank', 'location=yes,enableViewPortScale=yes');">open</a></p> do not open - can anyone help me out and explain how to fix this? (all other URL's open fine). 回答1: Try to use encodeURI() method with your URL. I think it will resolve your problem <a href="#" onclick="window.open(encodeURI('itms-apps://itunes.apple.com

How to access cordova functions from an IFrame in phonegap IOS

烈酒焚心 提交于 2019-12-08 00:52:08
问题 IN my Phonegap ios project i have an i frame and src of Iframe is a local html page within the same www folder . inside the html (IFrame source) one button and onlick listener. i need to open one website while clicking that button in InAppBrowser or in safari (new window). i cannot able to access phonegap methods from the html file (IFrame source), i includeed cordova on both html files, my source html page given bellow, this page is shown in an Iframe. <html> <head> <script type="text

Phonegap In App Browser and Local Storage

旧街凉风 提交于 2019-12-07 22:41:03
问题 I am going to create an Android application using HTML5/jQuery and Phonegap In app Browser. I will display web page inside the In app Browser, I want to implement the functionality that the user only enters his Name when he first time access the application. I can save value using Phonegap's Local Storage but can't find how to access this value inside In app Browser. Any help will be much appreciated. Thanks. 回答1: Check the following documentation for more information Is local storage for a

Handling events from remote webpage directly to the app using InAppBrowser

眉间皱痕 提交于 2019-12-07 19:39:32
问题 I would like to open an external webapp from my cordova app and handle webapp events directly on the native app. For instance, when a specific URL is loaded the app should handle it by calling a function. Does anyone know if this is possible? 回答1: Yes, it is definitly possible to handle some events with the InAppBrowser. If you look at the API docs you'll see an addEventListener function that you can use. Currently it looks like the list of events you can listen for on the external page are

Opening _blank links inside inappbrowser

懵懂的女人 提交于 2019-12-07 19:32:51
问题 We have 'external' anchor links in our cordova app, which we open using the _blank target of the inappbrowser plugin, which opens an inappbrowser instance 'above' the native app. These are generally links to our web-based support site. Now, when the user is on our support site in the inappbrowser, we have links to third-party sites that use the standard target="_blank" . However, users are not seeing a new instance of the inappbrowwser open, nor a system browser instance open, but rather the

Opening a local file with InAppBrowser under iOS doesn't work

柔情痞子 提交于 2019-12-06 20:31:34
I am developping a mobile application using Cordova. This application allows users to navigate in a kind of a file manager and allows them to download files. I use the plugin "FileTransfer" to download the file on the user's device and then call the InAppBrowser (version 0.5.2) plugin in order to open it. While it works really great under Android, I can't say the same under iOS (tested under versions 7 and 8). This is the line of code I use to open the downloaded file: window.open(entry.toURL(), "_system"); Under Android, it proposes the user which application he wants to launch to open the

How to access cordova functions from an IFrame in phonegap IOS

纵然是瞬间 提交于 2019-12-06 12:15:57
IN my Phonegap ios project i have an i frame and src of Iframe is a local html page within the same www folder . inside the html (IFrame source) one button and onlick listener. i need to open one website while clicking that button in InAppBrowser or in safari (new window). i cannot able to access phonegap methods from the html file (IFrame source), i includeed cordova on both html files, my source html page given bellow, this page is shown in an Iframe. <html> <head> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script src="js/libs/jquery.js"></script> <script src=

cordova phonegap: handling links from within inappbrowser (need external links to open new browser or open in system browser)

早过忘川 提交于 2019-12-06 11:56:26
问题 I made a phonegap/cordova application that just skins a mobile friendly website. I'm loading the website via the InAppBrowser plugin fullscreen (no address bar or 'next' buttons) This works fine and dandy, but when you click on an external link from the website, it changes the location on the current browser and there is no way to return :( I am trying to use the executeScript function to send a script to the InAppBrowser to catch links that I want to load in a new browser, but the window

OAuth SignIn Cordova Firebase

五迷三道 提交于 2019-12-06 07:41:32
I tried to use OAuth SignIn Cordova Firebase in a hybrid cordova app following the steps from this firebase tutorial: Authenticate Using OAuth Providers with Cordova But I did not succeed and get the error message below: Error: {"code":"auth/operation-not-supported-in-this-environment","message":"This operation is not supported in the environment this application is running on. \"location.protocol\" must be http, https or chrome-extension and web storage must be enabled."} I found the solution, the issue was corrected in the latest Firebase JavaScript SDK release (4.1.3) Firebase JavaScript