The following does not open a popup/new tab/do anything on Chrome 39.0.2171.50 for iOS 8.1.2 (12B440),
however it does seem to work on Safari on the same device:
<button ng-click="$auth.$authWithOAuthPopup('facebook')">Login with Facebook</button>
See plnkr: http://plnkr.co/edit/Ejd7fsyTHf6Ohn0F25Wy?p=preview
Is this a bug with Chrome or Firebase/AngularFire or am I doing something incorrectly?
I see from here that this may be a Chrome issue, however I can't get $authWithOAuthRedirect() to work either; see: http://plnkr.co/edit/9dd0W8X5k33LFBcCLmzs?p=preview
Both Popup and Redirect work on Desktop Chrome 39.0.2171.95
Firebase does not support popups are all platforms. In the event that an unsupported platform is detected, the authWithOAuthPopup() method will return an error with the code TRANSPORT_UNAVAILABLE, indicating that you should try to authenticate with a different transport, such as a browser redirect.
Iam not sure of ios but if you use android device along with ionic and firebase, run the following command to fix the issue:
ionic plugin add cordova-plugin-inappbrowser
Related
in my flutter app when data adding from web version its shows error like this on mobile. but works fine on web, I use firebase as backend. why this is happening
Since web is transpiled to javascript, that has a type number (which receives both double and int). That problem maybe solved if you cast to right type.
You can learn more about how dart handles numbers in here:
https://dart.dev/guides/language/numbers
I'm facing a problem right now, and I need some help.
I have a native app that displays in some point a webView, the class for this webView is called: org.xwalk.core.XWalkView. I'm developing in Windows and running calabash-android console, but when I use any of this commands:
query("webView css:'' ") or query("XWalkView css:'' ")
I'm unavailable to get any object from that webview. Is this an abnormal behavior? What should I do to get the css values?
Thank you so much.
Cheers.
PS: calabash-android version 0.4.20
Upgrade you Calabash-Android version to the latest one. 0.4.20 is a very old release and does not support crosswalk webviews.
From what I understand, doing a console.log in a normal Cordova app gets piped to the Xcode debug output, but that doesn't work for my Meteor Cordova iOS app, so I've been doing alerts, which isn't as good.
#Ethaan's answer is a good point, but I don't think it is answering the OP's intended question. I am going to re-iterate the comment from #user728291 on the Question since I believe it is the sought answer.
Safari Remote Debugging will show you console.log messages from
Xcode's simulator or a connected device.
And in the case that the hyper-link may someday be moot, I will re-iterate the referenced text from the link:
If you are doing iOS PhoneGap debugging and have the Safari Develop Menu enabled, you can access the currently active session through the built-in Safari Web Inspector. To activate, go to Develop -> (iPad || iPhone) Simulator (normally, the third menu item) and click the active session you want to connect to. Voila!
The same way you can use Meteor.isServer and Meteor.isClient booleans
to separate your client-side code and server-side code, you can use
Meteor.isCordova constant to separate your Cordova/Phonegap-specific
code from the rest of code shipped to browsers and mobile devices.
From Meteor Cordova Phonegap Integration Documentation
So try with this.
if (Meteor.isCordova) {
console.log('Hi iam on the console from Xcode")
console.log("Welcome back " + Meteor.user().username);
console.log("the user with the id " + Meteor.userId() + " Just logged In");
}
I am using V3 API for Google maps and every time I run my application in Chrome (application works in Firefox and IE9/10)
I get an error in the console - Cannot read property 'ROADMAP' of undefined.
On inspection of google.maps object in debugger I noticed that MapTypeId is not defined in the object google.maps. Also my fellow developers can run the same application in Chrome on their machines.
I was wondering if anybody had the same problem or can recommend a solution.
We have an advanced webpage (ASP.NET, C#), and a application which needs to be installed on the client computer in order to utilize the webpage to its fullest. The application is a tray app, and has primarily two tasks. Detect when certain events happen on the webserver (for instance invited to a meeting, or notify of an upcoming meeting). The other task the trayapp has is to use a custom protocol (trayapp://) to perform some ajax calls back to the server.
One problem we have is how to determine if the application is installed on the local machine or not. Now the user has to tick a checkbox to inform the website that the application is installed, and that it's safe to call the trayapp:// url calls.
Is there any way, for instance through a JavaScript or similar to detect if our application is installed on the local machine?
The check needs to work for IE, FF and Opera browsers.
When installing your client-side app you could modify the browser configuration to include another request header in HTTP requests and then have the server code look for that header, for example as a supported mime type using the following registry key (for Internet explorer)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
Internet Settings\Accepted Documents
I am not sure if Opera and FF use this same key, but they likely have similar configuration options, but this should at least get you on the right track.
If you want to detect with javascript inside the browser, you can probably use the collection "navigator.plugins". It works with Firefox, Opera and Chrome but unfortunately not with IE.
Update:
In FF, Opera and Chrome you can test it easily like this:
if (navigator.plugins["Adobe Acrobat"]) {
// do some stuff if it is installed
} else {
// do some other stuff if its not installed
}
Update #2:
If it is an ActiveX object in IE you can test if it exists by using something like this:
function getActiveXObject(name){
try{
return new ActiveXObject(name);
}
catch(err){
return undefined;
}
};
Another approach for IE is something similar to what JohnFx suggested (I found it here and have not tested it):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Internet
Settings\User Agent\Post Platform
Good idea from #JohnFx.
Another way to tackle this would be to install an ActiveX control or Browser plug-in with the trayapp installation. You could then access this in a similar way to that done when checking the version of Flash available.
Expose the trayapp (assuming this as a Managed app) as COM object. You could then use the tag with the GUID and trap errors when not found or use the ActiveXobject with the progid to detect if it's installed.