inappbrowser

I need help modifying the InAppBrowser in native code

点点圈 提交于 2020-01-17 13:47:05
问题 this is a different question but is still regarding my original problem: Is there an elegant way to access the camera from the inappbrowser under iOS? tl;dr: I want to open the cordova camera plugin on top of the inappbrowser plugin(view hierarchy problem) After my first approach (old question) did not lead me anywhere, I tried to modify the inappbrowser (gitlink). I wanted it to be a subview of the cordova view, which the following code managed to accomplish: __weak CDVInAppBrowser* weakSelf

Cordova In App Browser event not firing IOS

寵の児 提交于 2020-01-15 07:37:08
问题 Trying to authenticate users on my ionic application through an external service and I need to use cordovas In app browser! The code works perfectly on android however on iOS the "loadstop" event never fires and thus, the browser never redirects itself back to the application. The code I have looks like this: $rootScope.$on('$cordovaInAppBrowser:loadstop', function (e, event) { console.log('inappbrowser loaded', event); var regex = /* regex to determine if url is correct redirected url */ var

InAppBrowser plugin for Cordova/Phonegap — window.open not opening links in default browser

喜夏-厌秋 提交于 2020-01-14 19:14:49
问题 I'm trying to add the InApBrowser PhoneGap plugin to my web app in order to open the links in the mobile default browser. The webapp is programmed with AngularJS and IonicFramework. I know there are very similar questions, but none of the solutions I've tried has worked so far. So when I create the apk file and run it on my Android phone device some things don't work as expected. By the way, I build the apk file through the https://build.phonegap.com/. In my index file I have this function: <

Cordova IOS camera plugin not working when trying to open from inappbrowser

萝らか妹 提交于 2020-01-14 06:26:28
问题 I am working for a hybrid mobile app using cordova 6.0.0. According to my requirements , I have to open dynamic url in web view. The url would be provided by api response. I am using the cordova in app browser plugin for web view. https://github.com/apache/cordova-plugin-inappbrowser Now when user clicks on any link in the page opened in the web view , I have to catch that click event and find the href value of the anchor tag on which user had clicked. And if target url will match my

inAppbrowser and webSql failure - cordova

自闭症网瘾萝莉.ら 提交于 2020-01-06 02:38:16
问题 I'm using cordova 3.4.1 and inAppbrowser. I'm using webSql. At the page load I'm retriving some data from database. Works fine at that moment. Next with some button press, database entry is updated and a inAppBrowser window is opened. tx.executeSql('UPDATE tb_comic SET page="'+image_id+'" WHERE id="'+id+'"'); ref=window.open('base.html','_blank','location=no, toolbar=yes, EnableViewPortScale=yes'); ref.addEventListener('exit', iabClose); function iabClose(event) { alert(event.type); ref.close

Phonegap 2.9 android - InAppBrowser - <input type=“file”> not working

一个人想着一个人 提交于 2020-01-06 02:22:09
问题 I have a small phonegap app for android. One button launches a website I built with jquery mobile 1.3. I am opening the page using: websiteRef=window.open('https://'+webstage+'.mysite.org/mobile?language_id=2', '_blank', 'location=no' ); The website works fine. But when I hit one page that allows for uploading a file using the following markup: <input type="file" name="upload" value="file" data-inline="true" style="min-width:100px;"/> It does not work. It does not even show a file selection

Define User Agent on InAppBrowser from Cordova

情到浓时终转凉″ 提交于 2020-01-05 08:49:12
问题 I use InAppBrowser plugin from Cordova and I would like to open a webpage from my app ( Android, iOS ). However, the website should know if the user has entered by the mobile browser or through my app. I though that changing the user agent from my app would be able to work. Is there a similar solution to that? I guess right before I open a new window I should define that the user has entered the website through my app. window.open("http://test.example.com", "_blank", "location=no"); 回答1: Sure

Cordova InAppBrowser - Open popups from web within the InAppBrowser container

╄→尐↘猪︶ㄣ 提交于 2020-01-04 04:22:06
问题 Folks, I have a mobile app that opens external URL links within the App by using InAppBrowser (IAB). However, when the web I open in IAB contains a link that would normally open in a popup/second window, this doesn't get loaded/displayed. Is this just not supported by IAB? Thanks, Skull 回答1: You need to override: web.setWebChromeClient(new WebChromeClient(){new WebChromeClient (){}} in your MainActivity.java .This will force all url to be open in your IAB . 来源: https://stackoverflow.com

InAppBrowser Allow-Navigation ONLY MY DOMAIN when it is already open

北慕城南 提交于 2020-01-04 01:56:21
问题 I know there are a thousand threads talking about this topic, but it is that, really reading them and executing what they say, I can not find the key. And .. I have read and already tried many. My problem is the following. I'm using InAppBrowser module (InAppBrowser from @ ionic-native / in-app-browser / ngx) I am creating the following code. constructor (private iab: InAppBrowser, private platform: Platform) { this.iab.create ('http://www.myweb.com/app', '_blank', 'EnableViewPortScale = yes,

Why Angular.js variables not accessible in Cordova InAppBrowser's executeScript callback

别等时光非礼了梦想. 提交于 2020-01-03 03:03:12
问题 I am developing hybrid app based on angular.js using cordova. I have faced the problem not accessing to angular variables $ (like $rootScope) after executing the followings. cordova and angular.js finished to be initialized as soon as this hybrid app is launched. When user click specific button for social login, the following loginTwitterAccount $scope function is called. loginTwitterAccount opens new window using 'InAppBrowser' cordova plugin to load external authorization page, not local.