ionic-team / ionic-cloud-angular Goto Github PK
View Code? Open in Web Editor NEWAngular 2 Integration for Ionic Cloud
License: MIT License
Angular 2 Integration for Ionic Cloud
License: MIT License
Hey guys!
Sorry to keep bothering you with this plugin, but since the latest update (angular-cloud: 0.0.19 and ionic-plugin-deploy: 0.6.2), I'm having trouble updating my app. My scenario is as follows:
update()
method to get the latest version after running check()
My current code is below:
this.deploy.check().then(updateAvailable => {
if (updateAvailable) {
this.loadingService.show('Updating app to the latest and greatest...').then(() => {
this.deploy.download().then(success => {
this.deploy.extract().then(success => {
let message = success ? 'Update successfully installed. Restarting now...' : 'An error occurred while extracting the app'; // success is false
this.handleUpdateResponse(message, true, !!success);
}).catch(err => {
this.handleUpdateResponse('An error occurred while extracting the update.', true);
});
}).catch(err => {
this.handleUpdateResponse('An error occurred while updating the app: ' + err, true);
});
});
}
else {
this.handleUpdateResponse(null);
}
}).catch(err => {
console.error('An error occurred while checking for latest version', err);
this.handleUpdateResponse(null);
});
Runtime Error
Object prototype may only be an Object or null: undefined
Stack
TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (<anonymous>)
at __extends (http://localhost:8100/build/main.js:107679:9)
at http://localhost:8100/build/main.js:107776:5
at Object.<anonymous> (http://localhost:8100/build/main.js:107781:2)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:96292:79)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:130015:70)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at http://localhost:8100/build/main.js:66:18
Ionic Framework: 2.0.1
Ionic Native: 2.4.1
Ionic App Scripts: 1.0.0
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1
Node: 7.4.0
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
If I downgrade to 0.5.0 it works.
Fresh project works fine though.
UPDATE
Totally my bad guys... wasn't running with the --release
flag. False alarm; sorry!!
Hey folks! This is rather urgent for us because we have to release a new binary to the app store asap to fix a production issue. This seems to be happening for me only with my prod
profile, but others are having similar issues. The ionic.io status page doesn't indicate any issues though... any ideas?
My error is below. This was working without issue just 2-3 days ago and all of my certificates should still be valid; nothing has changed there.
$ ionic package info 111
id │ 111
status │ FAILED
platform │ ios
mode │ debug
started │ Nov 2nd, 2016 13:56:38
output:
=== BUILD TARGET Car Drop OF PROJECT Car Drop WITH CONFIGURATION Debug ===
Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found.
** BUILD FAILED **
https://forum.ionicframework.com/t/ionic-cloud-package-android-build-failed/68941
https://forum.ionicframework.com/t/ionic-package-android-builds-failing/68874/9 (this indicates that the issue is with the push plugin, but i'm not using that, so i don't think that's my issue personally)
Hey guys!
Sorry to be such a pest with this plugin, but I seem to have come across another issue... I know @dwieeb previously mentioned that calling deploy.load() was not recommended, but for the app that I'm working on we're being told it's mandatory :/ With that being said, we're getting the white screen of death after the app successfully extracts and we call deploy.load().
It would appear as though the app can't locate cordova.js upon restarting, which may be related to how this plugin was previously injecting cordova.js (which caused some other issues, ha). Any insight or suggestions would be much appreciated. Thanks!!
Our logs are below:
GET file:///data/user/0/com.ionicframework.redcapdriverapp828621/app_a0550e7a-7137-11e6-8871-bed395d43cc5/cordova.js?ionicCachebuster=14020 net::ERR_FILE_NOT_FOUND
app.bundle.js?ionicCachebuster=14020:54210 Ionic Cordova: searching for cordova.js
app.bundle.js?ionicCachebuster=14020:54210 Ionic Cordova: injecting cordova.js
app.bundle.js?ionicCachebuster=14020:34253 Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
cordova.js:1832 GET file:///data/user/0/com.ionicframework.redcapdriverapp828621/app_a0550e7a-7137-11e6-8871-bed395d43cc5/cordova_plugins.js net::ERR_FILE_NOT_FOUNDexports.injectScript @ cordova.js:1832injectIfNecessary @ cordova.js:1840exports.load @ cordova.js:1920(anonymous function) @ cordova.js:1263ZoneDelegate.invokeTask @ zone.js?ionicCachebuster=14020:356Zone.runTask @ zone.js?ionicCachebuster=14020:256ZoneTask.invoke @ zone.js?ionicCachebuster=14020:423
app.bundle.js?ionicCachebuster=14020:99968 Native: tried calling StatusBar.styleLightContent, but the StatusBar plugin is not installed.
app.bundle.js?ionicCachebuster=14020:99973 Install the StatusBar plugin: 'ionic plugin add cordova-plugin-statusbar'
app.bundle.js?ionicCachebuster=14020:90572 Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.
app.bundle.js?ionicCachebuster=14020:90567 DEVICE READY FIRED AFTER 5217 ms
app.bundle.js?ionicCachebuster=14020:54219 Ionic Deploy: Disabled! Deploy plugin is not installed or has not loaded. Have you run `ionic plugin add ionic-plugin-deploy` yet?
app.bundle.js?ionicCachebuster=14020:54219 Ionic Deploy: Disabled! Deploy plugin is not installed or has not loaded. Have you run `ionic plugin add ionic-plugin-deploy` yet?
app.bundle.js?ionicCachebuster=14020:48051 EXCEPTION: Error: Uncaught (in promise): IONIC_DEPLOY_MISSING_PLUGIN
app.bundle.js?ionicCachebuster=14020:48042 EXCEPTION: Error: Uncaught (in promise): IONIC_DEPLOY_MISSING_PLUGINBrowserDomAdapter.logError @ app.bundle.js?ionicCachebuster=14020:48042BrowserDomAdapter.logGroup @ app.bundle.js?ionicCachebuster=14020:48052ExceptionHandler.call @ app.bundle.js?ionicCachebuster=14020:5698(anonymous function) @ app.bundle.js?ionicCachebuster=14020:29528schedulerFn @ app.bundle.js?ionicCachebuster=14020:5170SafeSubscriber.__tryOrUnsub @ app.bundle.js?ionicCachebuster=14020:125115SafeSubscriber.next @ app.bundle.js?ionicCachebuster=14020:125064Subscriber._next @ app.bundle.js?ionicCachebuster=14020:125014Subscriber.next @ app.bundle.js?ionicCachebuster=14020:124978Subject._finalNext @ app.bundle.js?ionicCachebuster=14020:124770Subject._next @ app.bundle.js?ionicCachebuster=14020:124762Subject.next @ app.bundle.js?ionicCachebuster=14020:124719EventEmitter.emit @ app.bundle.js?ionicCachebuster=14020:5158NgZone._zoneImpl.ng_zone_impl_1.NgZoneImpl.onError @ app.bundle.js?ionicCachebuster=14020:40995NgZoneImpl.inner.inner.fork.onHandleError @ app.bundle.js?ionicCachebuster=14020:41203ZoneDelegate.handleError @ zone.js?ionicCachebuster=14020:327Zone.runGuarded @ zone.js?ionicCachebuster=14020:233_loop_1 @ zone.js?ionicCachebuster=14020:487drainMicroTaskQueue @ zone.js?ionicCachebuster=14020:494ZoneTask.invoke @ zone.js?ionicCachebuster=14020:426(anonymous function) @ cordova.js:229ZoneDelegate.invokeTask @ zone.js?ionicCachebuster=14020:356Zone.runTask @ zone.js?ionicCachebuster=14020:256ZoneTask.invoke @ zone.js?ionicCachebuster=14020:423
app.bundle.js?ionicCachebuster=14020:48042 STACKTRACE:BrowserDomAdapter.logError @ app.bundle.js?ionicCachebuster=14020:48042ExceptionHandler.call @ app.bundle.js?ionicCachebuster=14020:5700(anonymous function) @ app.bundle.js?ionicCachebuster=14020:29528schedulerFn @ app.bundle.js?ionicCachebuster=14020:5170SafeSubscriber.__tryOrUnsub @ app.bundle.js?ionicCachebuster=14020:125115SafeSubscriber.next @ app.bundle.js?ionicCachebuster=14020:125064Subscriber._next @ app.bundle.js?ionicCachebuster=14020:125014Subscriber.next @ app.bundle.js?ionicCachebuster=14020:124978Subject._finalNext @ app.bundle.js?ionicCachebuster=14020:124770Subject._next @ app.bundle.js?ionicCachebuster=14020:124762Subject.next @ app.bundle.js?ionicCachebuster=14020:124719EventEmitter.emit @ app.bundle.js?ionicCachebuster=14020:5158NgZone._zoneImpl.ng_zone_impl_1.NgZoneImpl.onError @ app.bundle.js?ionicCachebuster=14020:40995NgZoneImpl.inner.inner.fork.onHandleError @ app.bundle.js?ionicCachebuster=14020:41203ZoneDelegate.handleError @ zone.js?ionicCachebuster=14020:327Zone.runGuarded @ zone.js?ionicCachebuster=14020:233_loop_1 @ zone.js?ionicCachebuster=14020:487drainMicroTaskQueue @ zone.js?ionicCachebuster=14020:494ZoneTask.invoke @ zone.js?ionicCachebuster=14020:426(anonymous function) @ cordova.js:229ZoneDelegate.invokeTask @ zone.js?ionicCachebuster=14020:356Zone.runTask @ zone.js?ionicCachebuster=14020:256ZoneTask.invoke @ zone.js?ionicCachebuster=14020:423
app.bundle.js?ionicCachebuster=14020:48042 Error: Uncaught (in promise): IONIC_DEPLOY_MISSING_PLUGIN
at resolvePromise (zone.js?ionicCachebuster=14020:538)
at resolvePromise (zone.js?ionicCachebuster=14020:523)
at zone.js?ionicCachebuster=14020:571
at ZoneDelegate.invokeTask (zone.js?ionicCachebuster=14020:356)
at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (app.bundle.js?ionicCachebuster=14020:41173)
at ZoneDelegate.invokeTask (zone.js?ionicCachebuster=14020:355)
at Zone.runTask (zone.js?ionicCachebuster=14020:256)
at drainMicroTaskQueue (zone.js?ionicCachebuster=14020:474)
at HTMLDocument.ZoneTask.invoke (zone.js?ionicCachebuster=14020:426)
at cordova.js:229BrowserDomAdapter.logError @ app.bundle.js?ionicCachebuster=14020:48042ExceptionHandler.call @ app.bundle.js?ionicCachebuster=14020:5701(anonymous function) @ app.bundle.js?ionicCachebuster=14020:29528schedulerFn @ app.bundle.js?ionicCachebuster=14020:5170SafeSubscriber.__tryOrUnsub @ app.bundle.js?ionicCachebuster=14020:125115SafeSubscriber.next @ app.bundle.js?ionicCachebuster=14020:125064Subscriber._next @ app.bundle.js?ionicCachebuster=14020:125014Subscriber.next @ app.bundle.js?ionicCachebuster=14020:124978Subject._finalNext @ app.bundle.js?ionicCachebuster=14020:124770Subject._next @ app.bundle.js?ionicCachebuster=14020:124762Subject.next @ app.bundle.js?ionicCachebuster=14020:124719EventEmitter.emit @ app.bundle.js?ionicCachebuster=14020:5158NgZone._zoneImpl.ng_zone_impl_1.NgZoneImpl.onError @ app.bundle.js?ionicCachebuster=14020:40995NgZoneImpl.inner.inner.fork.onHandleError @ app.bundle.js?ionicCachebuster=14020:41203ZoneDelegate.handleError @ zone.js?ionicCachebuster=14020:327Zone.runGuarded @ zone.js?ionicCachebuster=14020:233_loop_1 @ zone.js?ionicCachebuster=14020:487drainMicroTaskQueue @ zone.js?ionicCachebuster=14020:494ZoneTask.invoke @ zone.js?ionicCachebuster=14020:426(anonymous function) @ cordova.js:229ZoneDelegate.invokeTask @ zone.js?ionicCachebuster=14020:356Zone.runTask @ zone.js?ionicCachebuster=14020:256ZoneTask.invoke @ zone.js?ionicCachebuster=14020:423
zone.js?ionicCachebuster=14020:461 Unhandled Promise rejection: IONIC_DEPLOY_MISSING_PLUGIN ; Zone: angular ; Task: Promise.then ; Value: IONIC_DEPLOY_MISSING_PLUGINconsoleError @ zone.js?ionicCachebuster=14020:461_loop_1 @ zone.js?ionicCachebuster=14020:490drainMicroTaskQueue @ zone.js?ionicCachebuster=14020:494ZoneTask.invoke @ zone.js?ionicCachebuster=14020:426(anonymous function) @ cordova.js:229ZoneDelegate.invokeTask @ zone.js?ionicCachebuster=14020:356Zone.runTask @ zone.js?ionicCachebuster=14020:256ZoneTask.invoke @ zone.js?ionicCachebuster=14020:423
zone.js?ionicCachebuster=14020:463 Error: Uncaught (in promise): IONIC_DEPLOY_MISSING_PLUGIN(…)
So I just ran an ionic package build for android and got the error below. The iOS version completed successfully. Others have reported the Android issue on the forum as noted here and here as well.
You have been opted out of telemetry. To change this, run: cordova telemetry on.
ANDROID_HOME=/usr/local/src/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Download https://repo1.maven.org/maven2/com/facebook/android/facebook-android-sdk/4.14.1/facebook-android-sdk-4.14.1.pom
Download https://repo1.maven.org/maven2/com/parse/bolts/bolts-android/1.4.0/bolts-android-1.4.0.pom
Download https://repo1.maven.org/maven2/com/parse/bolts/bolts-tasks/1.4.0/bolts-tasks-1.4.0.pom
Download https://repo1.maven.org/maven2/com/parse/bolts/bolts-applinks/1.4.0/bolts-applinks-1.4.0.pom
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.google.android.gms:play-services-gcm:9.8+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/
file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/google/android/gms/play-services-gcm/
file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.796 secs
Error: Error code 1 for command: /home/package/workspace/apps-46d201fd-2/cordova/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/package/workspace/apps-46d201fd-2/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
Hi there,
I'm trying to push notifications with an ionic2 app but I need to import classes from ionic-cloud-angular.
When I'm doing this, I have those errors :
TypeScript error: /home/crayer/dev/frontend/mobile/node_modules/@ionic/cloud/dist/es5/auth.d.ts(13,21): Error TS1110: Type expected.
[ ... ]
TypeScript error: /home/crayer/dev/frontend/mobile/node_modules/@ionic/cloud/node_modules/ionic-native/dist/es5/plugins/apprate.d.ts(46,21): Error TS1005: '=' expected.
TypeScript error: /home/crayer/dev/frontend/mobile/node_modules/@ionic/cloud/node_modules/ionic-native/dist/es5/plugins/apprate.d.ts(46,32): Error TS1005: ';' expected.
TypeScript error: /home/crayer/dev/frontend/mobile/node_modules/@ionic/cloud/node_modules/ionic-native/dist/es5/plugins/contacts.d.ts(39,14): Error TS1005: '=' expected.
[...]
These are my information about ionic configuration :
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v4.2.6
And here is my package.json :
{
"dependencies": {
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/http": "2.0.0-rc.4",
"@angular/forms": "0.2.0",
"@ionic/cloud-angular": "^0.5.2",
"es6-shim": "0.35.1",
"ionic-angular": "2.0.0-beta.11",
"ionic-native": "1.3.10",
"ionicons": "3.0.0",
"reflect-metadata": "0.1.8",
"rxjs": "5.0.0-beta.6",
"zone.js": "0.6.12"
},
"devDependencies": {
"del": "2.2.0",
"gulp": "3.9.1",
"gulp-watch": "4.3.5",
"ionic-gulp-browserify-typescript": "2.0.0",
"ionic-gulp-fonts-copy": "^1.0.0",
"ionic-gulp-html-copy": "^1.0.0",
"ionic-gulp-sass-build": "^1.0.0",
"ionic-gulp-scripts-copy": "^2.0.0",
"ionic-gulp-tslint": "^1.0.0",
"run-sequence": "1.1.5",
"tslint-ionic-rules": "0.0.4"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"name": "mobile",
"description": "mobile: An Ionic project"
}
I tried to install beta and stable version of ionic but there is nothing I can do to use the cloud classes ...
I hope someone could help
I'm trying to implement the Ionic Cloud Auth Service and now I want to do the password reset like it is described here. So I have a text field where the user can enter his email and a button.
Here is my pw-reset.html:
<ion-header>
<ion-navbar>
<ion-title>New Password</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-item>
<ion-label color="primary" stacked>E-Mail</ion-label>
<ion-input [(ngModel)]="email"></ion-input>
</ion-item>
<br />
<button ion-button (click)="sendPasswordRequest();">New Password</button>
</ion-content>
And here is my pw-reset.ts:
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Auth, User, UserDetails, IDetailedError } from '@ionic/cloud-angular';
import { ConfirmPasswordResetPage } from '../confirm-password-reset/confirm-password-reset';
@Component({
selector: 'page-pw-reset',
templateUrl: 'pw-reset.html'
})
export class PwResetPage {
email: any;
constructor(public navCtrl: NavController, public auth: Auth) {}
sendPasswordRequest() {
this.auth.requestPasswordReset(this.email);
this.navCtrl.push(ConfirmPasswordResetPage);
}
}
And here are the errors which come when I click on the button:
Within the past several days I have noticed that I've been getting build failures using ionic package build ios --profile [PROFILE_NAME]
, where PROFILE_NAME is dev
or prod
(I use --release if prod
is specified). In all cases, the build fails. I was able to build successfully on March 4th, so this appears to be a recent issue. Below is the very end of my build output for the prod --release
command. Please let me know if I can provide any further information:
Touch build/device/Nobly.app.dSYM
cd /Users/package/workspace/apps-46d201fd-34/cordova/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/touch -c /Users/package/workspace/apps-46d201fd-34/cordova/platforms/ios/build/device/Nobly.app.dSYM
** ARCHIVE SUCCEEDED **
2017-03-06 20:22:05.405 xcodebuild[28326:2041214] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/kc/f8g8tr7n1054j1nzrkkvyzpr0000gq/T/Nobly_2017-03-06_20-22-05.405.xcdistributionlogs'.
2017-03-06 20:22:05.429 xcodebuild[28326:2041214] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/package/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2017-03-06 20:22:05.854 xcodebuild[28326:2041214] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7ff3d8c46d80>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)
Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
** EXPORT FAILED **
Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,Nobly.xcarchive,-exportOptionsPlist,/Users/package/workspace/apps-46d201fd-34/cordova/platforms/ios/exportOptions.plist,-exportPath,/Users/package/workspace/apps-46d201fd-34/cordova/platforms/ios/build/device
Here is my output for --profile dev
(sensitive data is covered with *******)
Signing Identity: "iPhone Developer: Josh Garwood (*******)"
Provisioning Profile: "nobly_development"
(*******)
/usr/bin/codesign --force --sign ************** --entitlements /Users/package/Library/Developer/Xcode/DerivedData/Nobly-gtveufgzkaswqbembnttfwstvora/Build/Intermediates/ArchiveIntermediates/Nobly/IntermediateBuildFilesPath/Nobly.build/Debug-iphoneos/Nobly.build/Nobly.app.xcent --timestamp=none /Users/package/Library/Developer/Xcode/DerivedData/Nobly-gtveufgzkaswqbembnttfwstvora/Build/Intermediates/ArchiveIntermediates/Nobly/InstallationBuildProductsLocation/Applications/Nobly.app
**************: no identity found
Command /usr/bin/codesign failed with exit code 1
** ARCHIVE FAILED **
The following build commands failed:
CodeSign /Users/package/Library/Developer/Xcode/DerivedData/Nobly-gtveufgzkaswqbembnttfwstvora/Build/Intermediates/ArchiveIntermediates/Nobly/InstallationBuildProductsLocation/Applications/Nobly.app
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/package/workspace/apps-46d201fd-36/cordova/platforms/ios/cordova/build-debug.xcconfig,-workspace,Nobly.xcworkspace,-scheme,Nobly,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Nobly.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/package/workspace/apps-46d201fd-36/cordova/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/package/workspace/apps-46d201fd-36/cordova/platforms/ios/build/sharedpch
After sending a single notification.
both messages seem to be exactly the same.
{"foreground":false,"coldstart":false}
{"asleep":true,"closed":false}
IOS 9.2.1
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a
Got typescript Errors when updated.
Might have to do with the ionic-cloud
version dependency not being updated to ' 0.8.0-beta.11', but I wasn't able to make that work.
Tried to debug it, but oddly the src folder
in the npm_modules folder looks very different then the src folder in github https://github.com/driftyco/ionic-cloud/blob/master/src/index.ts.
I can build non-release versions just fine, but whenever I try to build a release one with the following command (note that the tag for my profile is 'production')
Fetching plugin "[email protected]" via npm
Installing "phonegap-plugin-push" for ios
Failed to install 'phonegap-plugin-push':undefined
Error: CocoaPods was not found. Please install version 1.0.1 or greater from https://cocoapods.org/
I am using protractor to test my app.
As long as there Deploy service is injected in the app during runtime, protractor would stop working.
I'm getting the following error if I try to download the current snapshot:
ERROR Error: Uncaught (in promise): /data/user/0/{package name}/{snapshot name}/assets/fonts (Not a directory)
at c (polyfills.js:3)
at c (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (main.js:4543)
at t.invokeTask (polyfills.js:3)
at r.runTask (polyfills.js:3)
at o (polyfills.js:3)
at
My steps:
ionic cordova run android --device
npm run build
ionic upload --note "v0.0.14" --deploy dev
I followed this tutorial: https://golb.hplar.ch/p/Hot-deploy-updates-to-Ionic-2-apps-with-Ionic-Deploy
But I'm using the dev channel and not the production channel like in the tutorial. Some weeks ago it was working fine. Now I tried it again and now the error occurs.
EDIT
After updating the plugin to version 0.6.7 it is working now.
Hi guys, trying to get this package running with my Angular 2 + Cordova app.
I have setup everything good so far, and the app checks and downloads updates when available.
But after extracting and calling this.deploy.load
, the app hangs on the splash screen, without any errors in the console. Not calling deploy.load
and restarting manually results in the same.
I'm testing on a Galaxy S7.
These are the versions of the specific packages:
// CLI
ionic -v 2.2.1
cordova -v 6.5.0
// ng2
"@ionic/cloud-angular": "^0.9.1",
// cordova plugin
ionic-plugin-deploy 0.6.5
This is the console output
DEVICE READY FIRED AFTER 1785 ms
Ionic Deploy: an update is available
Ionic Deploy: download complete
Ionic Deploy: extraction complete
and this is the code called in app.component.ts
ngOnInit(): void {
this.deploy.check().then((hasUpdate: boolean) => {
if (hasUpdate) {
this.deploy.download().then(() => {
return this.deploy.extract().then(() => {
return this.deploy.load();
}, (error) => {
console.log("Error extracting: " + error);
});
}, (err) => {
console.log("Error downloading: " + err);
});
}
}, (cErr) => {
console.log("Check error: " + cErr);
});
}
I get this error when trying to register a device for push notifications. I have set up the credentials for Android and iOS. Do I need both sets of credentials before notifications work at all? I tried both the legacy GCM server key and the FCM server key. I also tried using the v2 brach of phonegap-plugin-push.
Ionic info:
Your system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.48
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.7.0
Xcode version: Not installed
Hi,
To implement push notification, I installed Cloud Client, as per https://docs.ionic.io/setup.html#installation
npm install @ionic/cloud-angular --save
Now in my app,here is code ..
import { CloudSettings, CloudModule } from '@ionic/cloud-angular';
.....
const cloudSettings: CloudSettings = {
'core': {
'app_id': 'MY_APP_ID'
},
};
....
imports: [
CloudModule.forRoot(cloudSettings)
],
When I build in VSCode, it gives me following error..
11:39:34] Error: Could not resolve '@ionic/cloud-angular' from F:\projects\ionic_project.tmp\app\app.module.js
VSCode code intelligence works well, but while building from ionic CLI, it prompts the error
Is it possible to use the WKWebView from a Windows machine if building with ionic package
? As well, does ionic package
currently install WKWebView 3.0 properly if included correctly in the config.xml? I tried this from a mac and could not tell a different with the webview plugin installed per this post.
So I just wanted to make sure that ionic package does in fact install the web view properly.
Thanks!
The 0.12.0 release is bringing in ionic-native 2.9.0. It seems a compatibility problem. Can you please release a fix?
Hi there!
I've tried several ionic package builds for ios since yesterday, and all of them are stuck in a "Building" state. I can build the app locally in both ios and android, and ionic package build android works like a charm. It's just ios that's not working.
Any word on what could be going on here? I know there were a few issues that got resolved earlier this week; thinking maybe this could be related?
Thanks for your time!
In order to use user.resetPassword
you need to have a loaded user.
To have a loaded user you need to log him in which beats the purpose.
I thought User.load('user-id’)
would do the trick,
but -
User.load('user-id’)
doesn't work, I get a 401 (missing token). (Perhaps this deserves it's own issue).What am I missing? Is "reset password" different then "forgot password"?
If so what use case is it good for? Is there a plan to add "forgot password" functionality?
Hi,
I'm working on getting the Deploy functionality working in my Ionic 2 -ts app. It's mostly there, but having a problem - the deploy.done() doesn't seem to be working for me. I'm not seeing the updated app until I manually close the app and reopen it.
I can reproduce this by deploying a new build to the production channel, then running 'ionic run ios -lc' with my device connected.
Any help would be appreciated. :)
Here's my 'ionic info':
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.9
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.10.1
Xcode version: Xcode 7.3 Build version 7D175
Here's the relevant snippet from my app.ts:
platform.ready().then(() => {
// Check for updates then download and apply.
this.deploy.check().then((hasUpdate) => {
if (hasUpdate) {
deploy.download().then(() => {
deploy.extract().then(() => {
deploy.load();
}, (extractError) => {
console.log('Error extracting update: ' + extractError);
});
}, (updateError) => {
console.log('Error downloading update: ' + updateError);
});
}
}).then(() => {
deploy.getMetadata().then((metadata) => {
console.log(metadata.release);
}, (getMetadataErr) => {
console.log('getMetadataErr: ' + getMetadataErr);
});
}, (err) => {
console.log('Error checking for updates: ' + err);
});
});
Thanks,
Amy
Digging trough the code It looks like dev_push has been removed,
ionic-team/legacy-ionic-cloud@8906ae3
I'm assuming I am seeing this because i am using the bleeding edge? am I correct? If this effects other users I would strongly recommend updating the docs.
I also have to mention I liked the dev_push feature. Although it does add some complication and is error prone, I think it fits nicely with Ionics philosophy of embracing the web.
It allows you to check your code/app while still in the browser which is I big plus despite the disadvantages.
I think the problem was more to do with the terminology "limited_push", should have been something along the lines of "Browser Push" and with the no need to switch a configuration (would have been better for the framework to decided by it's self if it's running in the browser.)
Happy to hear your thoughts :)
I have an Ionic app that's setup to use Rollup as bundler and it seems that during the build, rollup cannot find the module:
10:34:02] ionic-app-scripts 1.0.0
[10:34:02] build prod started ...
[10:34:02] clean started ...
[10:34:02] clean finished in 6 ms
[10:34:02] copy started ...
[10:34:02] ngc started ...
[10:34:19] ngc finished in 16.13 s
[10:34:19] rollup started ...
[10:34:19] copy finished in 16.38 s
[10:34:26] rollup failed: Could not resolve '@ionic/cloud-angular' from
/Users/rolandjitsu/Projects/infarm/maintenance/src/app/app.module.ts
[10:34:26] ionic-app-script task: "build"
[10:34:26] Error: Could not resolve '@ionic/cloud-angular' from
/Users/rolandjitsu/Projects/infarm/maintenance/src/app/app.module.ts
Error: Could not resolve '@ionic/cloud-angular' from /Users/rolandjitsu/Projects/infarm/maintenance/src/app/app.module.ts
at Error (native)
at /Users/rolandjitsu/Projects/infarm/maintenance/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js:78:21
at /Users/rolandjitsu/Projects/infarm/maintenance/node_modules/browser-resolve/index.js:265:24
at /Users/rolandjitsu/Projects/infarm/maintenance/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:14
at process (/Users/rolandjitsu/Projects/infarm/maintenance/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
at ondir (/Users/rolandjitsu/Projects/infarm/maintenance/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
at load (/Users/rolandjitsu/Projects/infarm/maintenance/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/Users/rolandjitsu/Projects/infarm/maintenance/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /Users/rolandjitsu/Projects/infarm/maintenance/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:123:15)
Webpack seems to work just fine, but the problem is that with Webpack I cannot have env variables passed to the app when the app is build for production (something about the AOT), so I need to use Rollup at the moment.
System Info:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v6.7.0
Xcode version: Xcode 8.2.1 Build version 8C1002
Hey guys!
I'm setting up Push notifications for my app and am using the sweet new docs yall created (seriously, these are great!). Unfortunately, I've hit a snag... While the notification creates successfully (with a status of 'enqueue'), upon checking the /messages endpoint I discover that it failed to send because of a GCM_INVALID_AUTH error. In looking at the API docs (also awesome), it suggests that either my API key or GCM project id are incorrect. However, I've double and triple checked this and have found them both to be correct in all places...
The only difference that I could find, is that when creating the API key in the Google Dev Console, their process has changed such that you can no longer specify a type of credential (ie: Browser API key, as is suggested in the docs). Instead, it just creates a generic Api key, where you can specify platform restrictions (ie: Browser, server, android/ios app).
So I guess my question is, could this be the problem? Or are you guys aware of anything that could be going on here with GCM/ionic.io?
Thanks for your time!
For reference, this is my cloud settings:
const cloudSettings: CloudSettings = {
'core': {
'app_id': '<my app id>'
},
'push': {
'sender_id': '<my GCM Project Id>'
}
};
Here is my ionic push plugin statement in the config.xml:
<plugin name="phonegap-plugin-push" spec="~1.8.1">
<variable name="SENDER_ID" value="<my GCM Project Id>"/>
</plugin>
My Security profile in ionic.io is configured to use the GCM Api key as created through the Google Dev Dashboard...
constructor(deps: PushDependencies, options?: PushOptions);
I'm getting console errors in the browser I wasn't getting before:
Push no longer has an onReady function, is it not needed?
Here's the code i'm using:
this.platform.ready().then(() => {
//this.push.onReady(() => {
this.push.register().then((token) => {
console.log("Device token:", token.token);
this.push.saveToken(token);
});
//});
});
Hey guys!
I've read that Analytics won't be available until after the initial Ionic 2 release, but I was wondering if there are any plans for an Analytics preview. I ask because my project is at a point where we need analytics, and once we make this decision we wont' be able to easily "switch gears" down the line. I really want to use the Analytics yall are working on so we can keep as many services with Ionic as possible, but we need it in the very near future.
Any updates on the progress with Analytics? Thanks!
I'm asking for feedback on the Angular 2/Ionic 2 support in the Ionic Cloud client. Using this library is recommended for Ionic 2 projects, and will be the future of what once was the ionic-platform-web-client
. For usage, see the readme for now. The exported classes from '@ionic/cloud-angular'
are the same as Push
, Auth
, User
, etc. from the old client, except that they hook into the Angular 2 dependency injection framework (so there's no need to instantiate them).
The cloud client may differ from what you're used to in the ionic-platform-web-client
. Although written as a migration guide for v1 apps, this may help.
Hello.
I use push notifications settings like this:
const cloudSettings: CloudSettings = {
'core': {
'app_id': 'MyAppID'
},
'push': {
'sender_id': 'MySenderID',
'pluginConfig': {
'ios': {
'badge': true,
'sound': true
},
'android': {
'iconColor': '#ff0000'
}
}
}
};
When i run app on device - is't all ok.
But when i run app in browser (ionic run browser) i have error:
Uncaught (in promise): TypeError: Cannot read property 'applicationServerKey' of undefined
Can you help me? I try add to cloudSettings
'browser':
{ applicationServerKey = 'MyServerKey'}
but get compiliation error 'browser'" not exist in type "PushPluginConfig"
I have installed ionic-cloud-angular on my project and set up everything that is necessary for iOs and android.
It seems to work nicely, except there is a problem on the android platform.
Whenever a remote notification is sent and then removed by either swiping right OR pressing "clear all notifications" the ionic App is opened if it's on the background.
This makes no sense - it's only supposed to launch / bring it to the foreground when I click on the notification itself. The app is not supposed to open when the notifications are closed/cleared.
Note that this is happening on three different Android devices (two phones and one tablet).
If the app is completely closed, closing the notification won't launch the app. However clicking on the notification will launch the app which is the correct.
my code is very simple:
const cloudSettings: CloudSettings = {
'core': {
'app_id': 'XXXX'
},
'push': {
'sender_id': 'XXXXXX',
'pluginConfig': {
'ios': {
'badge': true,
'sound': true
},
'android': {
'iconColor': '#343434'
}
}
}
};
and I also just do simple register/saveToken. I am at 0.11.0 for ionic-cloud-angular. any ideas? how shall I go on debugging this?
The default behavior for logging in via Auth is to store "email" and "password" in LocalStorage. Ionic should really go out of their way to avoid using keys that an end user may use in their own application. As it stands, this is really two issues:
a) You document that you persist logins, but you do not how - and that is bad.
b) WHen you do make use of LocalStorage, you should be consistent. I see a key called "ionic_insights_session". But my user details are in "email" and "password". Why not "ionic_email" and "ionic_password"?
I wanted to implement the below code in JS as my Ionic2 is written in JS, I was not able to implement the below in JS as I received Unexpected token
const cloudSettings: CloudSettings = {
'core': {
'app_id': 'YOUR-APP-ID'
}
};
I'm facing this error when trying to build the app (ionic build android)
[15:23:18] Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function,
resolving symbol CloudSettingsToken in /var/www/html/myApp/node_modules/@ionic/cloud-angular/dist/es5/index.d.ts,
resolving symbol CloudModule in /var/www/html/myApp/node_modules/@ionic/cloud-angular/dist/es5/index.d.ts
resolving symbol AppModule in /var/www/html/myApp/.tmp/app/app.module.ts,
resolving symbol AppModule in /var/www/html/myApp/.tmp/app/app.module.ts
[15:23:18] ngc failed
[15:23:18] ionic-app-script task: "build"
[15:23:18] Error: Error
My Package.json dependencies:
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/cloud-angular": "0.8.0",
"@ionic/storage": "1.1.6",
"ionic-angular": "2.0.0-rc.3",
"ionic-native": "2.2.9",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"ts-md5": "^1.2.0",
"zone.js": "~0.6.26"
"@ionic/app-scripts": "0.0.46",
"typescript": "2.0.6"
cordova plugin list
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-googlemaps 1.4.0 "phonegap-googlemaps-plugin"
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"
ionic info
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.13
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.46
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.9.1
Xcode version: Not installed
UPDATE
Reverting to "@ionic/cloud-angular": "0.7.0" seems to enable the ngc to finish.
Hi,
I'm attempting to setup push in my app.ts and following the 'Injecting Push' section in the documentation here: http://docs.ionic.io/services/push/#injecting-push
Problem I'm facing is in my import statement:
import {Deploy, CloudSettings, provideCloud, Push, PushToken} from '@ionic/cloud-angular';
The PushToken doesn't come up in autocomplete, shows up in red, and has an error "Cannot resolve symbol 'PushToken'".
I just updated ionic-cloud-angular to version 0.4.0 - that didn't help.
Here's my ionic info:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.9
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.10.1
Xcode version: Xcode 7.3 Build version 7D175
Please help :)
Thanks,
Amy
I have followed the docs on the setup using the super starter app and the app crashes:
VM132 main.js:57014 TypeError: platform.toLowerCase is not a function at Insights.normalizeDevicePlatform (http://localhost:8100/build/main.js:64708:25) at Insights.markActive (http://localhost:8100/build/main.js:64698:33) at Insights.checkActivity (http://localhost:8100/build/main.js:64687:22) at http://localhost:8100/build/main.js:64663:27 at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9723) at Object.onInvokeTask (http://localhost:8100/build/main.js:37967:37) at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9659) at e.runTask (http://localhost:8100/build/polyfills.js:3:7083) at invoke (http://localhost:8100/build/polyfills.js:3:10836) at e.args.(anonymous function) (http://localhost:8100/build/polyfills.js:2:30123)
I can't figure out why I'm getting this error when running ionic serve
after using the package.
Why is it looking for a cloud.js file that does not exist ?
[16:35:43] Error on fetch for @ionic/cloud.js at file:///c:/ionic/orderForms/nod
e_modules/@ionic/cloud.js
Loading @ionic/cloud-angular
Loading app/dist/app.js
Error: ENOENT: no such file or directory, open 'c:\ionic\orderForms\node
_modules\@ionic\cloud.js'
at Error (native)
Hi
many thanks for ionic-cloud team that made life easier,
I am using ionic cloud for Authentication in Ionic2 + Angular2,, I am able to authenticate with LinkedIn ,Google and Facebook, now I need to call some api on LinkedIn, which they need access token, but value of access token is undefined,
this.user.social.linkedin.access_token
I have test various conditions like at first time that user creates a profile or relogin, but it's the same value is undefined.
I have googled and I see that people are saying if using InAppBrowser it will be undefined, then if it's true, why do we keep this property on linkedIn model (because there is no option to not using InAppBrowser with linkedIn)?
I can submit a minimal application if it's required.
Sorry for resubmitting this issue, I didn't know on which repo I should send this.
https://github.com/driftyco/ionic-cloud#172
https://github.com/driftyco/ionic-cloud-issues/issues/278
(Please kindly close the one that is not in the right repo)
Our build server has been working for a while and pushing to ionic.io.
Suddenly it stopped working after adding this plugin:
cordova-custom-config
We currently removed this plugin and now it's working again.
The errors we get from ionic.io:
Locally this build works, we get it running on a device, so our guess is that
the problem isn't something we can solve.
Any ideas are welcome!
Some relevant code on how we use this plugin:
config.xml:
...
<platform name="android">
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
</platform>
...
package.json:
...
"cordovaPlugins": [
...
"cordova-custom-config"
],
...
Your system information:
Cordova CLI: Not installed
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.34
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v6.8.1
Hi Team
Amazing work. Astonishing even...:))
Look what I have when I follow the docs with Ionic.io
If you need more infos ping me
ionic info
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.2.0
Xcode version: Xcode 7.3.1 Build version 7D1014
[18:57:43] lint finished in 2.38 s
[18:57:46] typescript compiler ready in 5.77 s
[18:57:46] bundle dev started ...
[18:57:53] Error: Module /Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/cloud-angular/dist/es5/index.js does not export CloudModule (imported by /Users/numerized/Work/00_Github/00_Emoviser_rc0_2/.tmp/app/app.module.js)
at Module.trace (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:7677:29)
at ModuleScope.findDeclaration (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:7300:22)
at Scope.findDeclaration (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:5351:39)
at MemberExpression.bind (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:6666:28)
at /Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:5151:50
at CallExpression.eachChild (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:5168:5)
at CallExpression.bind (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:5151:7)
at CallExpression.bind (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:5842:23)
at /Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:5151:50
at ArrayExpression.eachChild (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/rollup/dist/rollup.js:5165:19)
[18:57:53] sass started ...
[18:57:53] build dev failed: Build failed: ENOENT: no such file or directory, scandir '/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/.tmp/node_modules/ionic-angular/components/action-sheet'
[18:57:53] Error: ENOENT: no such file or directory, scandir '/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/.tmp/node_modules/ionic-angular/components/action-sheet'
at Error (native)
at Object.fs.readdirSync (fs.js:945:18)
at getSiblingSassFiles (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/app-scripts/dist/sass.js:126:17)
at addComponentSassFiles (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/app-scripts/dist/sass.js:100:24)
at /Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/app-scripts/dist/sass.js:95:9
at Array.forEach (native)
at getComponentSassFiles (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/app-scripts/dist/sass.js:94:26)
at generateSassData (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/app-scripts/dist/sass.js:79:30)
at Object.sass (/Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/app-scripts/dist/sass.js:38:9)
at /Users/numerized/Work/00_Github/00_Emoviser_rc0_2/node_modules/@ionic/app-scripts/dist/build.js:63:23
As suggested in #1 (comment), and similar to ionic-team/legacy-ionic-cloud#4, the cloud client should somehow provide observable streams to events such as "is the user logged in" and "push notification received."
Investigate how this would be done and discuss options.
not sure if this belongs here or the problem is in the underlying platform but:
How do can a user change his password (when logged in - not reset password which is for when he is logged out).
Doing this:
this.nav.present(loading).then(() => {
this.user.details.password = this.password.value;
return this.user.save();
}).catch((res) => {
// res = TypeError: Cannot read property 'value' of undefined(…)
this.nav.present(Alert.create({
title: 'Can\'t save...',
subTitle: 'Something went wrong',
buttons: ['OK']
}));
}).then(() => {
return loading.dismiss();
});
results in:
TypeError: Cannot read property 'value' of undefined(…)
I think ionic 2 is a nightmare, don't use it
When running ionic build --prod using Angular 4.0.0-rc.2 the below error is thrown. ionic serve runs with no errors.
[15:12:06] Error: Error encountered resolving symbol values statically. Calling function 'makeDecorator', function
calls are not supported. Consider replacing the function or lambda with a reference to an exported function,
resolving symbol Injectable in
/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/metadata.d.ts,
resolving symbol OpaqueToken in
/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts,
resolving symbol OpaqueToken in
/node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts
Error: Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in /node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in /node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in /node_modules/@ionic/cloud-angular/node_modules/@angular/core/src/di/opaque_token.d.ts
at Error (native)
at syntaxError (/node_modules/@angular/compiler/bundles/compiler.umd.js:1273:19)
at simplifyInContext (/node_modules/@angular/compiler/bundles/compiler.umd.js:16434:25)
at StaticReflector.simplify (/node_modules/@angular/compiler/bundles/compiler.umd.js:16446:15)
at StaticReflector.annotations (/node_modules/@angular/compiler/bundles/compiler.umd.js:15978:45)
at NgModuleResolver.resolve (/node_modules/@angular/compiler/bundles/compiler.umd.js:9521:67)
at CompileMetadataResolver.getNgModuleMetadata (/node_modules/@angular/compiler/bundles/compiler.umd.js:9951:45)
at addNgModule (/node_modules/@angular/compiler/bundles/compiler.umd.js:15825:43)
at /node_modules/@angular/compiler/bundles/compiler.umd.js:15836:16
at Array.forEach (native)
Contrary to the suggestion from RxJS, this module imports the complete RxJS library. It should only import the parts that are used as explained here: https://github.com/ReactiveX/rxjs
I noticed it because I could use all operators from RxJS in my Ionic 3 app without importing them. The only import from RxJS I used in my app was:
import { Observable } from 'rxjs/Observable';
After I commented out the following imports, I got errors because of the missing imports of used RxJS operators:
import { CloudModule, CloudSettings } from '@ionic/cloud-angular';
import { Push, PushToken } from '@ionic/cloud-angular';
I installed the following dependency:
"@ionic/cloud-angular": "0.12.0"
and found in
node_modules/@ionic/cloud-angular/dist/es5/index.js
the following line 22
var rxjs_1 = require("rxjs");
and in
node_modules/@ionic/cloud-angular/dist/esm/index.js
the line 18
import { Observable } from 'rxjs';
I think it should work, if the first line is
var rxjs_1 = require("rxjs/Observable");
and the other line is
import { Observable } from 'rxjs/Observable';
I would be grateful, if somebody could fix this.
Hello,
I am trying to show error when a login attempt is done.
However, I can't find in the documentation https://docs.ionic.io/services/auth/#login if there is any error handler for login method.
There is one existing for the signup method and is working well.
Does it exist ? if yes, is it possible to update the doc ?
Thanks.
Your system information:
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 7 SP1
Node Version: v6.6.0
Please update the peer dependency in package.json
so we can use this with Ionic beta 11 :)
It should be compatible already, I think.
Hey guys!
I'm in the process of upgrading to ionic 2 release candidate and am struggling to figure out how to initialize it with cloudSettings. Previously we did that in the AppComponent with ionicBootstrap
and provideCloud
. But now that it seems everything is being done in the app.module, I'm not sure how to get this working. Would we still use provideCloud, and just put it in the bootstrap
property?
Any advice would be much appreciated. Thanks!
Hello,
I am having this error when I import Deploy from '@ionic/cloud-angular' and instanciate in my constructor.
Like it is said in the documentation : http://docs.ionic.io/setup.html
Juste trying to lauch the application, no using the deploy.
For me, it worked good before I updated ionic, CLI and node_modules
An other guy @jsells on the Slack #technical-questions is facing the same issue
Thanks a lot
Running into this issue when trying to build with the module included via CloudModule.forRoot
.
Followed all the instructions here: http://docs.ionic.io/setup.html but can't seem to get around it.
Node v7.4.0
NPM 4.0.5
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.12
OS: macOS Sierra
Node Version: v7.4.0
Xcode version: Xcode 8.2.1 Build version 8C1002
Full Error Dump:
[16:18:13] rollup failed: Unexpected token
[16:18:13] ionic-app-script task: "build"
[16:18:13] Error: Unexpected token
Error: Unexpected token
at error (/Users/james/Projects/iCanQuit-App/node_modules/rollup/dist/rollup.js:170:12)
at Module.error$1 [as error] (/Users/james/Projects/iCanQuit-App/node_modules/rollup/dist/rollup.js:7997:2)
at tryParse (/Users/james/Projects/iCanQuit-App/node_modules/rollup/dist/rollup.js:7700:10)
at new Module (/Users/james/Projects/iCanQuit-App/node_modules/rollup/dist/rollup.js:7735:14)
at /Users/james/Projects/iCanQuit-App/node_modules/rollup/dist/rollup.js:9481:17
Hi there!
I recently updated my ionic-app-scripts to version 39, and when I tried to run ionic package build android --profile dev
I got an error when the build tried to create my resources. All of my resources files are in the appropriate folder(s) and this has worked in the past. That said, the ionic package command seemed to finish executing without a problem. The error I got is below:
Running with the force flag will overwrite your resources directory and modify your config.xml file
Preparing your resources...
Caught exception:
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at C:\Users\josh\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\io-config.js:169:24
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.