PhoneGap native app error. "Illegal access" - android

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.

Related

Meteor Android Oauth2 google account error 10

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.

Cordova / Ionic - Default App Build Does Not Work Behind a Proxy

I've got a Cordova / Ionic App developed by an external group that we're trying to do some QA testing on. To build out these tests we're attempting to intercept the application with a proxy so we can monitor what API calls the application is making. However, every time we configure the Android or iOS device to use a proxy; the HTTP calls in the application error out.
We have already imported the Certificate Authority of our proxy into the device as a trusted Certificate Authority, and this is confirmed working in the native browser (We can go to SSL sites without any errors/prompts).
The development team is telling us that they haven't done any certificate pinning, or anything "extra" besides what is built into the framework. They are confused as to why our proxying isn't working.
Can anyone tell me what default "platform features" that is preventing our proxying from working, and what we need to tell the development group to give us a build that will allow us to do what we need to do?
Just to be clear, all we have available to us directly is the APK and the IPA file. We do not have the full source-code. We can request the source-code be changed with a new build for us to use; but we cannot just run the Cordova app.

Meteor Android relase apk not working

I built a react-meteor android app, which I signed with Android Studio for a release.
The app is loading with a splash screen and then stuck in den loading screen of my React Komposer ( I guess the subscription does not get ready ).
However running the app via:
meteor run android-device --mobile-server https://fuldacity.de
runs the app successful, as well as running from signed debug apk.
I really do not now where to start to debug this problem. I guess there is a possiblity to get some error logs out of Android Studio? I would be really glad on any inspiration on how to tackle this problem!
Furthermore I have the feeling it is connected to my setup. I have a domain hosted by domainfactory, where I also get my https certificate from. The domain is then redirected to Heroku, where my App is hosted. I furthermore redirect all http:// accesses to https:// via the Meteor package force-ssl.
`
Try like this:
meteor add-platform android
After
meteor install-sdk android
After
meteor run android-device --mobile-server https://fuldacity.de
Long story short the error was on domainfactory where I have choosen the IP instead of the domainname as A configuration for the nameserver.
Domainfactory does not allow a the correct settings for usage of heroku. Now I use the nameservers of Route 53 which could setup the right CNAME settings to heroku.
For the debugging I also learned that you can
meteor run android-device --server https://fuldacity
then go to your chrome browser (on your pc) open the developer tools and there you can find remote devices which gives you all the error outputs from the client side!
This let me to the network error, which only appeared on the mobile devices.

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.

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