cordova-plugin-inappbrowser won't open system browser in IOS when using Phonegap Build - phonegap-build

I'm trying to get links in a Phonegap app to open the system browser but recently they stopped working when using Phonegap build. They work if I build the app locally and put it on my phone, but now when the app is built using Phonegap build. I'm including it in my config file like this:
I also have the following code in my deviceready listener:
$$(document).on('deviceready', function() {
console.log("Device is ready!");
window.open = cordova.InAppBrowser.open;
});
And finally, here's an example of what my links look like:
Dashboard
I've whitelisted the urls that I would like to open. The strange thing is that if I leave my app, the browser opens and goes to the url. It appears that I must exit the app to get the link to trigger. Has anyone run into this problem?

Related

Debugging navtivescript vue

I'm really new to developing an Android app using NativeScript Vue.
I'm struggling to understand what the debugging capabilities are. I have created a sample project using the template https://github.com/nativescript-vue/vue-cli-template) and have read about vue devtools. I'm wanting to put breakpoints in my JavaScript somewhere (in Chrome?) so I can step through my code, I just can't work out if this is possible?
Can anyone help?
Thanks
Did you try tns debug [ios|android]?
This will by default initiate a debugger with Chrome Dev Tools. You will see a URL in console once app is launched in your Simulator / Device, just have hit that with Chrome.

Getting dropbox login to work with Universal Window Platform app

I was trying to getting drop box login to work through my Universal Window Platform App. I have followed the steps through the following guide : https://microsoftedge.github.io/WebAppsDocs/en-US/win10/CreateHWA.htm , where it turns my website into a Windows Store app but I can't seem to get dropbox login working. When I try click on the icon which allows users to login, it crashes the app. On the website it works perfectly.
I have tried adding https://www.dropbox.com to the URI but it didn't work. I checked through the console and got the following problem:
Dropbox:APPHOST9624: The app can’t use script to load [website url] url because the url launches another app. Only direct user interaction can launch another app.
I never encountered this problem through the website.
I also encountered another error which I don't recognise the source of which was:
APPHOST9603: Can’t load the ActiveX plug-in that has the class ID '[Class id here]'. Apps can't load ActiveX controls.

Cordova windows 8.1 app opening in browser instead opening in application view

I am working on cordova windows app .After login page submit, there will be an authentication web service, which will redirect to one particular url in my application.
But in my app, after login submit, the redirected page is opening in internet explorer instead of opening in application view itself. The redirected cross domain url is not opening in application view. But it opens internet explorer and opening the page. It should not happen like this.
Since it is opening in internet explorer browser ,instead opening in application view,login is not successfully happening.
Could any one help me on this issue ?
We are using windows 8.1 and cordova version 5.3.0 .
The same problem I faced in android app also .But after I added allow -navigation tag in config.xml (This is part of whitelist cordova plugin), The redirected page opened correctly in application view itself. But cordova white list plugin not supporting windows cordova app.
Install this plugin cordova-plugin-inappbrowser.
When successfully installed, your code should look kinda like this.
Code example:
<button id="login">Log in</button>
var btn = document.getElementById("login").addEventListener("click", login, false);
function login() {
var ref = cordova.InAppBrowser.open(
'link_to_the_website',
'_system',
'location=yes');
}
You have three type of options to load the URL.
_self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.
_blank: Opens in the InAppBrowser.
_system: Opens in the system's web browser.

Clean app cache in windows phone 7

I am developing an app based on winPho7 (no updated to 7.5 yet)
In my app, I call to a navigator to show a webpage but my problem is that (still testing)when I deploy the app in the phone, it shows the webpage perfectly.
But if I make changes in the webpage, the next time I open the app, it still shows the older one. My app doesn't get new images, new css, new buttons...
In Android I can delete cache and get the new webpage. How can I do it on winpho?
Now, I have to delete the app, install again and then, it will show the new webpage.
To prevent caching, add a random query parameter to the url, e.g. http://example.com/?ignore=425897425.
That will force retrieving the page again.
I hope that that is what you are looking for.

PhoneGap library that helps with debugging AJAX requests

I have a simple PhoneGap project that makes a cross-domain AJAX request, but when the app runs on the device nothing happens.
Locally testing the app in Chrome it works fine.
I've tried the PhoneGap remote debugger, but it's very slow.
Is there a JavaScript library that I can include with my project that will assist me in debugging my app while it's on the device?
I'd try running it in the Chrome browser on an android device and use remote web inspector or checkout this post about how to use remote web inspector on iOS actually right in PhoneGap

Resources