Error initializing Cordova: undefined - javascript

I've developed a web app using cordova 3.5.0 and it runs fine in my Z10, however there is an error when starting the app that says
After pressing OK app works fine. I cannot use Web Inspector because the error is thrown before it is available.
This is what I use to get the app up and running
cordova build
cordova run blackberry --devicepass 1234 --keystorepass 12345678

I couldn't find any solution using cordova directly, therefore I've decide to migrate to webworks and problem is gone.
Migration was quite easy as webworks is cordova based, I've created a new project with
webworks create myproject
webworks pluging add org.apache.cordova.device
I've overwritten the entire www folder with my development, updated the config.xml
and the magic comes with
webworks run --devicepass 1234
No initializing error anymore

Related

Can i make console logs visible in a cordova app running on an emulator?

Hello i'am currently building an app with cordova and the quasar framework.
I'm experiencing some problems in my android version running on an emulator that dont happen in my web version.
Is there a way to make the errors visible in some way or another.
Im using android studio as my emulator.
Open a chrome window on the same machine the emulator is running on. Navigation to chrome://inspect/#devices, you should be able to debug the emulator from there, giving you the full devtools, providing the APK is a dev build. This will not work for production builds.

nativescript 4.2. Error while building android app with release flag

I've done some app for IOS and Android.
IOS is working fine and it's poblished on App store since 3 weeks.
So, the time has come for android. I have to do some css tweaks, beacuse android was looking different in some aspects.
After when i did it, i run tns run android, next emulator appear.
All is working well, so i've run tests on Firebase console.
It was a suprise for me, beacuse i saw this error: (Emulator installed is launching app without issues.)
Nativescript fails to load code that holds common js functions.
Here is part of my app.js
And, right now i'm able to see this error in my emulator.
Steps to reproduce:
- run tns run android (app is working well)
- do some typo in any js file (make any error): livesync will run again, and as result i will see this error.
My question is: do android have problems with requiring this file? IOS is working very well, but i'm unable to deploy android.
Thank you.

Getting a 404 error when trying to setup WebStorm IDE JavaScript debugger for a create-react-app

When following an article entitled, "Debugging React apps created with Create React App in WebStorm", the Debugger says it's connected to the JetBrains IDE Chrome Extension, but I can't get breakpoints to execute when using port 3000 and when I try to use the default debug port 63342 a 404 error is shown.
Here is a recording of my settings in Chrome and Webstorm 2016.2 IDE when trying to debug: http://recordit.co/MQ3LICuUIc
Steps Taken:
I've created a new JS debug configuration with the name 'ERS React Debug', the browser set to Chrome, and I've tried using the following URLs in the configuration:
http://localhost:3000/
http://localhost:3000/ers_react/public/index.html
http://localhost:63342/ers_react/public/index.html
(YT video I watched used the debug port, which is what is in my recording)
I also setup the mapping to webpack:///src as recommend in the article.
Default ReactJS app created with create-react-app is designed to be hosted on webpack server started with react-scripts start, that builds the application and starts the server. You won't be able to open this application on the simple built-in webserver (localhost:63342).
To be able to debug modern React app, you need upgrading Webstorm to the most recent version - debugging will work out of the box. Fot Webstorm 2016.2, you can try specifying URL mappings... For "react-scripts": "1.0.17", it should be http://localhost:3000/static/js/full/path to project, like http://localhost:3000/static/js/C:/WebstormProjects/untitled if the project path is C:/WebstormProjects/untitled should work:
Note that you would need to refresh the browser page to get breakpoints in code executed on pagfe loading hit

ionic-material demo on android bowser/hybrid-App templates not showing

I successfully build the ionic-material demo
Ionic-material Demo
when I do ionic server
the browser opens and the app works as excpected but
when compiled on android
ionic platform add android
ionic build android
ionic run android
the app compiled and run but I'm not able to show diffrent screens on navigate the url changes and the floting action buttons show up but not te template files ?
what I'm doing wrong or what might be the problem ??
I added alert("debug") in the controller and the alert is showing up on navigation so just the template not rendering
note ionic is built over AngulaJs so Angular experts can help too
any help appreciated
Steps i'd take to debug this are:
run ionic serve, and check the console for angularJS errors and resolve any if there are any
run - ionic platform add android + ionic run android with a connected android device and from another console window run the following command to run logcat via ADB
adb logcat CordovaActivity:V CordovaWebView:V CordovaWebViewClient:V IceCreamCordovaWebViewClient:V CordovaLog:V *:S
Resolve any errors the ADB flags
Try ionic platform add android + ionic run android again
Note: ionic handles touch events in browser and on device so this will not be the issue, it is likely it is a syntax error that has stopped the compile to device

Meteor app suddenly no longer runs on iOS

My Meteor-based app no longer works as designed on iOS, without me having changed anything relevant. The app still works when run from a local server (http://localhost:3000) as well as when hosted at meteor.com. But, in an iOS simulator and when deployed to an iOS device through xCode, the app fails to run properly.
The app opens with a form that needs to be filled in by the user. When submitting the form, on iOS, the entered values briefly are stored in session variables, but almost immediately the session variables are emptied and the form is displayed again. (What should happen is for an external JSON file to be loaded, based on the form values, after which the contents of that JSON file is manipulated and displayed.)
I just now upgraded to the latest version of Meteor, and xCode did an upgrade itself in the background.
The app is supposed to load a Google font file (from fonts.googleapis.com), but though this works fine when the app is served from either the localhost or meteor, the font does not appear to be loaded when the app runs on iOS.
I'm sorry I don't have actual example code (the whole app?) or a running version of the app that I can show you. As the app is not yet publicly available, I'm a bit reluctant to publish it here. :(
Is there a way to meaningfully debug a Meteor app running on iOS? Is there something obvious I'm missing in the deployment?
Turns out there's an issue with meteor 1.0.4 and building a project using Cordova (https://github.com/meteor/meteor/issues/3814).
I downgraded to meteor 1.0.3 through:
meteor update --release 1.0.3
Then, I deleted the Cordova folder in .meteor/local/ with
rm -R cordova-build
Then, I patched 1.0.3 to 1.0.3.2 with
meteor update --patch
This solved the problem.

Categories