Current version of cordova-android is 6.2.3cordova requirement
should not fail.
Ionic cordova run android: error in opening zip file
How to skip npm install on ionic start?
How can skip npm install on ionic start?. I would want to use yarn for package/dependency installation.
The below execution does not help
ionic start myApp blank --skip-npm
Confusion using FCM as a push notification service for iOS and Android
Hi there,
I'm wondering did you find out which was the better option.
Notifications is last thing left on my app and not sure to go with FCM or Ionic Push.
I'm using firebase as the backend for data.
I have never set up notifications before!
I like the other features available on the Ionic cloud platform so this is kind of swaying me with Ionic push.
Appreciate any help.
Thanks
How to skip npm install on ionic start?
https://ionicframework.com/docs/cli/start/
--skip-deps = Skip npm/yarn package installation of dependencies
Ionic cordova run android: error in opening zip file
what should I do this problem
Best way to implement list with toggles and sending it back to server
I think so, especially if the list is big. The way you had it, you had to walk the entire list on every toggle flip. With clone-and-compare, that only has to happen once, after all toggles have been modified.
How to skip npm install on ionic start?
That helped. Thank you!
Best way to implement list with toggles and sending it back to server
Oh right, map and filter methods will keep on comparing and creating new arrays.
Thanks again, very much appreciated!
Looking for a way to measure distance for workout app
isDistanceAvailable()
Distance estimation indicates the ability to use step information to supply the approximate distance travelled by the user. This capability is not supported on all devices, even with iOS 8. Only works on iOS.
I'm working with Android
this.pedometer.isDistanceAvailable()
.then((available: boolean) => console.log(available))
.catch((error: any) => console.log(error));
07-07 01:14:09.603 D/SystemWebChromeClient(22501): file:///android_asset/www/cordova.js: Line 312 : Error in Error callbackId: Pedometer1206703277 : [object Object]
07-07 01:14:09.603 I/chromium(22501): [INFO:CONSOLE(312)] "Error in Error callbackId: Pedometer1206703277 : [object Object]", source: file:///android_asset/www/cordova.js (312)
07-07 01:14:09.603 D/SystemWebChromeClient(22501): file:///android_asset/www/build/main.js: Line 56034 : false
07-07 01:14:09.603 I/chromium(22501): [INFO:CONSOLE(56034)] "false", source: file:///android_asset/www/build/main.js (56034)
Is there something similar for Android?
Looking for a way to measure distance for workout app
Plugin docs say live pedometer data works on Android; can you make something from that?
Offline map solution with follow user
So I've searched extensively for a long time for a maps solution that will give me what I need.
What I want is the ability to have an offline solution and also to show the users location on the map and potentially refresh that location as the user moves, to show their position.
My best bet seems to be skobbler maps (now scout) but I'm wondering if anyone else has any experience with this…?
From what I've read skobbler doesn't seem to provide a JavaScript offline solution (only a native one which obviously cannot be implemented)
If anyone has experience with this please let me know, thanks!
Also the native cordova Google map doesn't not work properly in an offline environment even though some believe it does.
Ionic error adding platform
I dont understand but I am change path environment
Looking for a way to measure distance for workout app
What am I missing?
try {
console.log("Starting Pedometer");
this.pedometer.startPedometerUpdates()
.subscribe((data: IPedometerData) => {
console.log(data);
});
} catch (error) {
console.error("Something went wrong with Pedometer: ", error);
}
07-07 01:29:27.949 D/SystemWebChromeClient(24493): file:///android_asset/www/build/main.js: Line 56034 : Starting Pedometer
07-07 01:29:27.949 I/chromium(24493): [INFO:CONSOLE(56034)] "Starting Pedometer", source: file:///android_asset/www/build/main.js (56034)
07-07 01:29:28.069 D/SystemWebChromeClient(24493): file:///android_asset/www/cordova.js: Line 312 : Error in Error callbackId: Pedometer431046343 : [object Object]
07-07 01:29:28.069 I/chromium(24493): [INFO:CONSOLE(312)] "Error in Error callbackId: Pedometer431046343 : [object Object]", source: file:///android_asset/www/cordova.js (312)
07-07 01:29:28.089 D/SystemWebChromeClient(24493): file:///android_asset/www/build/main.js: Line 1362 : ERROR
07-07 01:29:28.089 I/chromium(24493): [INFO:CONSOLE(1362)] "ERROR", source: file:///android_asset/www/build/main.js (1362)
What does it mean error in error callback id?
WEBP format for IOS
This exists: https://github.com/dpogue/cordova-plugin-webp
Looking for a way to measure distance for workout app
I don't know; I haven't actually used this plugin. You may also want to take a look at stepcounter instead.
Best way to implement list with toggles and sending it back to server
@rapropos - one more question.
So the above functionality is on of the pages in my app. On the click of "Done" button (as in point #3 in my original post), instead of submitting/sending the list to server I want to go back to the previous page which I can do using "pop()" method, however, I don't know how to carry this changed list back to the previous page.
Any help will be highly appreciated.
Looking for a way to measure distance for workout app
OK I will check it out.
Tell me please, don't you think some gps plugin would be better than a step-counter based plugin?
Best way to implement list with toggles and sending it back to server
I would stash it in a service provider injected by all relevant pages. You could also move the comparison and upload logic into there as well. Something with an API like:
class LevelProvider {
public levels: Level[];
private _changedLevels: Level[];
checkout(): Level[] {
return _.clone(this.levels);
}
checkin(newlevels: Level[]): void {
this._changedLevels = this.compareTo(newlevels);
this.levels = newlevels;
}
upload(): Observable<Response> {
return this._http.post(api, this._changedLevels);
}
}
Previous page could just inject this and access its levels
property.
Getting internal/fs error when trying to compile project or start new project
Hi...not certain what or when things went sideways but I am now getting the following error when trying to compile an existing project or even just create a new one from scratch. I am intentionally on Ionic v.1.7.16 because all of my code works and I am not ready to invest the time into revamping my entire app to handle AngularJS 2 or Ionic v2+.
iMac:dev test$ ionic start TempProj1 tabs
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at evalmachine.:40:20
at Object. (/usr/local/lib/node_modules/ionic/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
Cannot find module 'internal/fs' (CLI v1.7.16)
Your system information:
Cordova CLI: 7.0.1
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
ios-deploy version: 1.9.1
ios-sim version: 6.0.0
OS: Mac OS X El Capitan
Node Version: v8.1.3
Xcode version: Xcode 8.2.1 Build version 8C1002
I blew away my entire installation of node/npm and reinstalled everything from scratch and still got the same error. The only new thing I notice that was different than before is that now I have to use sudo simply to get the npm -v
iMac:dev test$ npm -v
5.0.3
┌────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /Users/test/.config │
└───────────────────────────
Even though I get the version number I never got that npm error before...now I have to do this:
iMac:dev test$ sudo npm -v
Password:
5.0.3
I don't know whats going on. Others with similar errors have said delete node_modules
and reinstall npm...but I completely blew mine away and reinstalled everything and its still not working.
Getting internal/fs error when trying to compile project or start new project
I would suggest using nvm to manage node versions without ever needing superuser privileges.