inappbrowser

window.open to open local image,pdf on windows platform using InAppBrowser

谁说胖子不能爱 提交于 2019-12-23 15:44:40
问题 I am working on cordova based hybrid application targeted to Windows 8.1 platform with InAppBrowser plugin added. I have used following code to open local image/pdf file: window.open("Screenshot.png", "_blank", "location=no"); But it does nothing...no exception and no image. I am able to use the same code to open text file. But the same code does not work with image/pdf/word/excel documents. Any help will be much appreciated. Thanks, Chirag. Update: I found solution. Following is the sample

Android InAppBrowser _system callbacks

情到浓时终转凉″ 提交于 2019-12-23 09:44:56
问题 I have been developing a mobile app for Android/IOS/Windows 8 in Cordova that needs to pass a few strings to a web page. Unfortunately for me, the web page does not support TLS 1.0 protocol, which means older Android versions (and IOS versions) cannot open the page within the native browser. This means the window.open call, when set to '_blank', will not load the page on any Android version before 16 API, and it's only really guaranteed for 19 API and above: window.open('https://www

How can I hide the heading and options bar in google drive

为君一笑 提交于 2019-12-23 05:02:04
问题 I want to hide the top options bar in google drive. How can I achieve that? I am using cordova inAppBrowser to open this link. https://drive.google.com/file/d/0B_nipvep1WpPd2JXeDdJcUlNYXM/view I want to use embedded=true but I don't know how it would work. Please see the image below. 回答1: May be this will help you You have to wait until your inAppBrowser page loading finishes. //Set css in your inAppstyle.css .drive-viewer-toolstrip{ display: none !important; opacity: 0 !important; } You must

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

吃可爱长大的小学妹 提交于 2019-12-23 02:38:31
问题 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

OAuth SignIn Cordova Firebase

妖精的绣舞 提交于 2019-12-22 11:28:52
问题 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."} 回答1: I found the

Phonegap InAppBrowser - back button don't go to previous page

倖福魔咒の 提交于 2019-12-22 08:07:08
问题 I'm using Phonegap for my application and I need to display an external link in a InAppBrowser but it looks like the back botton is not working as expecting: if I'm doing var ref = window.open('www.example.com/a.html' , '_blank', 'location=no') from from a.html page I clicked a link to www.example.com/b.html next time when I click back, the InAppBrowser is closed but it should go back to a.html . Do you know how can I enable the 'navigation history' for InAppBrowser? Thank you. 回答1: This is

Cordova iOS - InAppBrowser always on top issue

混江龙づ霸主 提交于 2019-12-22 00:55:49
问题 I am creating an Apache Cordova app. I have added InAppBrowser plugin and barcode scanner plugin that is invoked from the page opened inside InAppBrowser through cross browser communication. It is running perfectly fine in Android. But when ran in iOS, the InAppBrowser acts like a modal pop-up and doesn't let barcode scanner appear until the InAppBrowser is closed/dismissed. I have confirmed that barcode scanner is working even when in background but it just won't appear because the

PhoneGap InAppBrowser: open iOS Safari Browser

纵饮孤独 提交于 2019-12-21 19:48:20
问题 In our PhoneGap iOS application, we are using the InAppBrowser plugin to display some content, and we need to open a page in Safari from within the InAppBrowser. How can we have links from within the InAppBrowser open in Safari? 回答1: From the phonegap documentation: Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser. var ref = window.open(url, target, options); ref: Reference to the InAppBrowser window. (InAppBrowser) url: The URL to load (String).

Inappbrowser callback

自古美人都是妖i 提交于 2019-12-21 05:39:40
问题 I have tried to call back after login in facebook using inappbrowser. But it doesnt work to check the email,name etc.Here my code Inappbrowser calling function onDeviceReady(){ var my_client_id = FBkey, my_redirect_uri = "http://www.fastabuy.com/index.php", my_type = "user_agent", my_display = "touch"; var authorize_url = FBgraphapiurl+"/oauth/authorize?"; authorize_url += "client_id=" + my_client_id; authorize_url += "&redirect_uri=" + my_redirect_uri; authorize_url += "&display=" + my

Phonegap: InAppBrowser insertCSS file

江枫思渺然 提交于 2019-12-21 05:26:05
问题 I'm trying to create an app that loads a website and then adds some custom CSS to adjust it to a mobile device. I'm using window.open to load the page successfully, and I have a callback on loadstop where I'm calling browser.insertCSS, this is where the problem is. If I do something like this: browser.insertCSS({code:"body{background-color:red;}"); The style is applied correctly. However if I do this: browser.insertCSS({file:"mobile-style.css"); And add the same CSS to the file, it doesn't