Meteor Android Oauth2 google account error 10 - android

I am using MeteorJS and cordova build for Android, I am using Meteor.loginwithgoogle() method which works fine with web browser, but when debugging the app on android device it returns with error 10 and refuses to authenticate, I am not using any related plugins, just the accounts-google package, any help is appreciated.

Related

Meteor deploy android app on galaxy

I have a beginners question.
I deployed my meteor website on Galaxy. Now I want an android version of my website. I followed every step in mobile docs. Everything is working fine on windows and the app is working as expected in the emulator.
Now if I build my app for production, we need to give a host and port.
What port and host should I use so I can use the same code base as my website?
Here is My domain
I tried:
meteor build ../output --server http://heybuddy.meteorapp.com:80
But without success. Or do I see it totally wrong.
Thank you for any answers!
The host is where your server is accessible, typically the address you use to access the browser-based version of your application / website.
The port is not mandatory.

PhoneGap native app error. "Illegal access"

I am new to PhoneGap app development framework. I created a simple app which picks up user location and plots it on Google map. I am using PhoneGap desktop app, and I am able to run my app on IE and Firefox by pinging the IP. But it throws an error "Error(1): Only secure origins are allowed." when I am running in Chrome browser.
I used PhoneGap cloud build platform and created packages for Android native app. After installation, while running the app I am getting the error: "Error(1): Illegal access."
Can anyone please tell me the way to fix these issues?
Thank you.

Cannot call local web api from cordova android app

I am currently developing a cordova 4.3 android app in Visual Studio 2015 RC. It's an AngularJS app and I use $resource to send requests to an ASP.NET Web Api application running on a different port on the same computer. Debugging the app in Ripple works fine if I disable the Cross Domain Proxy but when I try to debug in the Visual Studio Android Emulator or on my Android device I get a not very helpful "Failed to load resource" as soon as try to reach the web api. The url looks correct and I suspect the problem has to do with either CORS or my HTTPS certificate or both? What I have tried so far is:
Set <uses-permission android:name="android.permission.INTERNET" /> and android:debuggable="true" in the manifest file.
Tried chrome://inspect/#devices to get more info about the problem but got the error message "Cannot load DevTools frontend from an untrusted origin".
I am able to connect my android phone chrome web browser to the localhost web api using the very helpful tool sharpproxy [https://www.codefromjames.com/wordpress/?p=97] but this approach unfortunately does not work with the app's webview.
The ajax request does work when I point the app to my azure hosted live web api endpoint where I have a valid https certificate but that is not very convenient to use while developing the app.
Made sure the config.xml-file contains <access origin="*" />
My web api is configured with app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll)
I am completely new to cordova/hybrid app development and am surely missing some obvious thing? Any help or suggestion would be very appreciated!!
After having all sort of problems with Visual Studio 2015 I uninstalled it went back to Visual Studio 2013 Update 4 and now I can connect my android device to a local running web api using sharp proxy I mentioned and linked to above.
So to be clear:
Use Visual Studio 2013 Update 4 to run your web api on for example the url https://localhost:44358/.
Start sharp proxy with external port 5000 and internal 44358.
Make sure your android device is connected to the same wifi and instruct your app to use https://your-ip-address:5000 for all service calls.

Strange behaviour when Meteor server is built with Android platform

I'm making a todo list app, using meteor and cordova full code is at: github.
I've added an Android app version. Login is via accounts-password.
The server is running via nodejs with an nginx frontend.
The problem:
If I build the server with the android-platform then connect an android device to it the login buttons appear briefly but then the screen refreshes and they're gone and will not return unless the app cache is cleared.
If I build the server without the android-platform then it works fine. This happens with meteor run android (emulated). meteor run android-device and via loading an APK from the play store.
I assume what is happening is building the server with android platform results in a different version of the code being put on the server which then gets pushed to the phone when it connects.
But I have no clue how to debug this.

Debugging Cordova on Mobile

I'm building a HTML5 Game and deploying it to my Android phone for testing using Apache Cordova.
Is there anyway to debug my application on the device while it's running, such as seeing the JS Console?
Have you taken a look at the debug.phonegap.com?
Another way you can upload the html to a server or localhost and use it. But this only for outside the apk:
https://developers.google.com/chrome-developer-tools/docs/remote-debugging
You can also run your Cordova project via the AppGyver Steroids tooling, which gives you enhanced access to the Safari and Chrome web inspectors.

Categories

Resources