diff --git a/app/libraries/remote-storage/remote-storage-library.js b/app/libraries/remote-storage/remote-storage-library.js index a1093259..3ff580dc 100644 --- a/app/libraries/remote-storage/remote-storage-library.js +++ b/app/libraries/remote-storage/remote-storage-library.js @@ -5700,7 +5700,9 @@ if (typeof XMLHttpRequest === 'undefined') { this.access.setStorageType(this.remote.storageType); var scope = this.access.scopeParameter; - var redirectUri = String(RemoteStorage.Authorize.getLocation()); + var redirectUri = window.cordova ? + 'http://localhost/callback' : + String(RemoteStorage.Authorize.getLocation()); // not sure what to use as the id here // don't see any good candidates in window.location on cordova android // { diff --git a/gulpfile.js b/gulpfile.js index d826947c..47932ff1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -103,7 +103,9 @@ gulp.task('package', ['build', 'clean-package'], function package() { .pipe(gulp.dest(basePaths.prod)); return gulp.src('') - .pipe(shell('ionic build android' + (argv.prod ? ' --release' : ''))) + .pipe(shell('ionic build android')) + //FIXME: release build throws error on install + // .pipe(shell('ionic build android' + (argv.prod ? ' --release' : ''))) .pipe(shell('mkdir -p ' + basePaths.mobile)) .pipe(shell( 'cp ' + basePaths.platforms +