Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70434 articles
Browse latest View live

Http.post Property 'subscribe' does not exist on type 'void'

$
0
0

@jfsoftwarellc wrote:

Try to relearn how to use http in Ionic 4 so I can do a sign up process. Tried following this article but something is off.

API Service

import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders, HttpErrorResponse, HttpParams } from '@angular/common/http';
import { Observable, of, throwError } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class ApiService {

  url: string = 'http://localhost:3000';

  constructor(public http: HttpClient) {
  }

  post(endpoint: string, body: any, reqOpts?: any): Observable<any> {
    return this.http.post(this.url + '/' + endpoint, body, reqOpts);
  }
}

User Service

import { Injectable } from '@angular/core';
import { ApiService } from './api.service'

@Injectable({
  providedIn: 'root'
})
export class UserService {
  _user: any;

  constructor(public api: ApiService) { }

  signup(accountInfo: any) {
    this.api.post('users.json', { user: accountInfo }).subscribe(res => {
      console.log(res);
    }, err => {
      console.log(err);
    });
  }
}

Error
“ERROR in src/app/signup/signup.page.ts(28,36): error TS2339: Property ‘subscribe’ does not exist on type ‘void’.”

I was getting that property ‘subscribe’ does not exist on type ‘Observable’ but now I’m just getting void. Not sure what I changed to get void instead but either way, it no work.

Posts: 1

Participants: 1

Read full topic


Development very slow

$
0
0

@fattanasio wrote:

Hi everyone,
I’m trying the native Sqlite storage plugin and I have to test the code on a real device every time.
For each change I have to enter the command “ionic cordova run android” and test the changes made on the device. The problem is that development is very slow. Is there a faster way to test changes that affect native plugins?
Thank you

Posts: 1

Participants: 1

Read full topic

Can't launch Ionic 4 app in emulator

$
0
0

@russellbj wrote:

I’m trying to run ’ ionic cordova emulate ios ’ to deploy an Ionic app to the simulator. The simulator opens, but the application fails to deploy.

This is the error message I get:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.

Here’s my ionic info:

Ionic:

ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.3.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.1, (and 4 other plugins)

System:

ios-deploy : 1.9.4
NodeJS : v10.15.0 (/usr/local/bin/node)
npm : 6.7.0
OS : macOS Mojave
Xcode : Xcode 9.4.1 Build version 9F2000

The command does create a working ios build that I can open in xcode, but I’m looking for live reload. If anyone has ever dealt with this issue and found a solution, I would love your input.

Thanks!

Posts: 1

Participants: 1

Read full topic

[Migration] Ionic-native/http crashes Ionic DevApp

$
0
0

@justed wrote:

Hi there, I’m migrating to Ionic v4 and noticed a lot of things need to be rewritten. The first thing I stumble upon is the new way HTTP requests are handled. In our current version we’re using @angular/http to do this. But I’ve discovered we can use a Ionic Native function for this. So I’m experimenting with it.

I’ve got a simple setup right now. But I cannot test it in the browser because it is a native function. So I tried installing the Ionic DevApp and started ionic serve -c

First of all the devapp cannot find my app so I have to manually enter the ip address. All goes well until I start using the HTTP function. If I do the DevApp crashes.

Is this a know issue? Because I cannot find anything about this :frowning:

Posts: 1

Participants: 1

Read full topic

Ionic 4 plugin image-picker not working with Capacitor

$
0
0

@lucascardoso wrote:

Hello guys!

I have a problem with the image-picker plugin.
The plugin opens the gallery and I can select the image,
however it returns the empty image list.

I’m using Ionic 4 with Capacitor on the Android platform

This is my code

  import { ImagePicker } from '@ionic-native/image-picker/ngx';
  constructor(private galeria: ImagePicker) {}

  getFotoGaleria(){
    console.log("getFotoGaleria: ", this.configuracao);
    let size = parseInt(this.configuracao['largura_imagem']);
    let options = {
      maximumImagesCount: 1,
      width: size,
      height: size,
      quality: 100
    }
    this.galeria.getPictures(options).then((results) => {
      console.log("results imagem: ", results);
      this.loading = this.base.mostrarLoading(this.translate.instant('amostragem.localizando_papel'));
      this.ngZone.run(() => {
        this.getResultadoGaleria(results);
      });
    }).catch((err) => {
      console.log("ERROR ao pegar foto da galeria: "+ err);
    });
  }

Plugin installation command

npm install --save cordova-plugin-telerik-imagepicker

ionic info

Log Android Studio

Could anyone help me with this issue?
Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Component detect if display as modal

$
0
0

@Dovel wrote:

Is it possible to check if a component is displayed as model (or nav pushed, or popover, or embedded, …)?
Without passing custom params. In my case: I want to display a close button on the right side in the header navbar of a component / ionic page. But only if I display it as modal. As page, the back-button is automatically added. But in modal mode, the user have to click the Android back button, if the modal is fullscreen and no backdrop is available.

Posts: 1

Participants: 1

Read full topic

Nested ModalController Not Working Ionic 4

$
0
0

@Rahadur wrote:

Hi there,

I’am current working on a Ionic 4 project where i have to open Modal B from Modal A
Modal A Open--> Modal B

// in modal-a.component.ts file
async openModalB() {
      const modal = await this.modalCtrl.create({
          component: ModalBComponent
      });
      const { data } = await modal.onDidDismiss();
      console.log(data);
      await modal.present();
}

Problem:

Modal B is not open at top of Modal A or neither showing any error in developer console.

Ionic:

Ionic:                                                                                             
                                                                                                   
   ionic (Ionic CLI)             : 4.10.1 (C:\Users\Rahadur\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0                                            
   @angular-devkit/build-angular : 0.12.4                                                          
   @angular-devkit/schematics    : 7.2.4                                                           
   @angular/cli                  : 7.2.4                                                           
   @ionic/angular-toolkit        : 1.3.0                                                           
                                                                                                   
Capacitor:                                                                                         
                                                                                                   
   capacitor (Capacitor CLI) : 1.0.0-beta.17                                                       
   @capacitor/core           : 1.0.0-beta.17                                                       
                                                                                                   
System:                                                                                            
                                                                                                   
   NodeJS : v10.5.0 (C:\Program Files\nodejs\node.exe)                                             
   npm    : 6.5.0                                                                                  
   OS     : Windows 10                                                                             

Posts: 1

Participants: 1

Read full topic

Error when trying to update Contact properties

$
0
0

@ewehrmann wrote:

I am trying to write a function that will save a Contact to the device using the Ionic Native Contacts API. First time working with the Contact api.

I am able to get an instantiation of ‘contact’ but when I test in the browser I get an error ‘Cannot set property ‘name’ of undefined’. I also tried to compile and install an IPA file on my iOS device. The code compiled without error but when I trigger the function it does not add the contact to the device.

Two questions:

  1. Should I be able to test this API from browser without an error??? e.g. when I invoke the Call or SMS functions from browser they do not cause the app to error and stop, I just get get a message saying “cordova_not_available”

  2. Is there a problem with the syntax or logic in my code?

From home.ts page

import { Contacts, Contact, ContactField, ContactName } from ‘@ionic-native/contacts’;

constructor(public navCtrl: NavController, public navParams: NavParams, public search: SearchProvider, private callNumber: CallNumber, private sms: SMS, private contacts: Contacts, public alertController: AlertController) {
this.employees$ = ;
this.letters$ = ;
}

saveContact(fullName, phoneNumber) {
var first = fullName[0].split(" “)[0];
var last = fullName[0].split(” ")[1];
let contact: Contact = this.contacts.create();
console.log(contact[0])
contact.name = new ContactName(null, first, last);
contact.save().then(
() => this.presentAlert(),
(error: any) => console.error(‘Error saving contact.’, error)
);
}

From app.module.ts

import { Contacts} from ‘@ionic-native/contacts’;

providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler},
SearchProvider,
CallNumber,
Contacts,
HTTP,
SMS,
{provide: HttpBackend, useClass: NativeHttpFallback, deps: [Platform, NativeHttpBackend, HttpXhrBackend]}
]

Posts: 1

Participants: 1

Read full topic


Cant build my App with cordova build (Failure)

$
0
0

@jstrauss wrote:

Hi,

i tried to compile my Project but it failed.
I compiled this Project yesterday with no problems and i just installed one new Cordova Plugin and now it doesn’t work anymore.

My Error:

tNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:compileDebugJavaWithJavac
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:transformClassesWithStackFramesFixerForDebug
Exception in thread "main" java.lang.IllegalArgumentException
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319)
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88)
        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
        at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85)
        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
        at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401)
        at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326)
        at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280)
        at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)

:app:transformClassesWithDesugarForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDesugarForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/23.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/21.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/3.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/6.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/22.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/5.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/15.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/16.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/CordovaLib/build/intermediates/intermediate-jars/debug/classes.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/classes/debug --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar--classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry/Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --bootclasspath_entry /Users/jstrauss/Library/Android/sdk/platforms/android-27/android.jar --bootclasspath_entry /Users/jstrauss/Library/Android/sdk/platforms/android-27/optional/org.apache.http.legacy.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/charsets.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jfr.jar --min_sdk_version 19 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 15s
35 actionable tasks: 35 executed
/Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Exception in thread "main" java.lang.IllegalArgumentException
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319)
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88)
        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
        at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85)
        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
        at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)
        at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401)
        at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326)
        at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280)
        at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDesugarForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/23.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/21.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/3.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/6.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/22.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/5.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/15.jar --input /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --output /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/desugar/debug/16.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/CordovaLib/build/intermediates/intermediate-jars/debug/classes.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/classes/debug --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar--classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry/Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --classpath_entry /Users/jstrauss/Documents/PROGAMMING/IONIC/VendorChecklist/platforms/android/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --bootclasspath_entry /Users/jstrauss/Library/Android/sdk/platforms/android-27/android.jar --bootclasspath_entry /Users/jstrauss/Library/Android/sdk/platforms/android-27/optional/org.apache.http.legacy.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/charsets.jar --bootclasspath_entry /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/jfr.jar --min_sdk_version 19 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 15s
[ERROR] An error occurred while running subprocess cordova.

        cordova build android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

I hope anyone can help me.

Thanks

Posts: 1

Participants: 1

Read full topic

Android app launch success but app is not installed on device

$
0
0

@woonmar wrote:

I have successfully installed the app on device and everything worked just fine. But after i deleted the app from device and tried ionic cordova run android again, the app is not installed on device anymore but work perfectly on emulator.

Posts: 1

Participants: 1

Read full topic

[Capacitor] Anyone using in Production?

$
0
0

@ARafay1 wrote:

Hi there,

Is there anyone using Capacitor on production? What are your thoughts?
What about electron support?

Thanks

Posts: 1

Participants: 1

Read full topic

Passing parameters to child tabs - why isn't my subscriber function called again?

$
0
0

@pzwosta wrote:

Hi, I’m stuck in trying to pass a parameter to a child page of a tab (ionic 4):

tabs.page.html

  <ion-tab label="Settings" icon="settings" href="/tabs/(settings:settings)">
    <ion-router-outlet name="settings"></ion-router-outlet>
  </ion-tab>

tabs.router.module.ts

const routes: Routes = [
  {
    path: 'tabs', 
    component: TabsPage,
    children: [
      ....
     { path: 'settings/:func', outlet: 'settings', component: SettingsPage },
     { path: 'settings', ...      },
   ]
   ...
];

settings.page.ts

export class SettingsPage implements OnInit ... {

  private routeSub: Subscription;
 
  constructor( private activatedRoute: ActivatedRoute) {}

  ngOnInit() {      
      console.log('Calling this without parameter. OK.');
      this.routeSub = this.activatedRoute.params.subscribe(params => {
        console.log('This is called for the first time the settings tab loads and never again.');
        if (params['func'] == 'myFunc') {
           console.log('You cant see me :-(');
        }
      })
  }

After the first ngOnInit, I navigate to another page and return from that page with:

this.router.navigateByUrl('/tabs/(settings:settings/myFunc');

I’d expect to see “You can’t see me :-(”. I am trying for some days now and hope the answer isn’t too easy. :slight_smile:

Thanks for your help.

Posts: 1

Participants: 1

Read full topic

Using Google Places API and Autocomplete with Ionic 4

$
0
0

@iuviene wrote:

After getting Google Maps working in Ionic 4 I was excited to move on to setting up a search bar with the Places API and Autocomplete.

I’ve seen a few Ionic 3 tutorials for creating a provider that consumes the Places API - but I’m curious if here are any good tutorials or suggestions for implementing this functionality in Ionic 4?

Any suggestions appreciated.

Posts: 1

Participants: 1

Read full topic

App is going back to login page when pressing backbutton

$
0
0

@Thiago.Lives wrote:

Hi Everyone,

I am authenticating an app using token, in the app.component I have a condition to get “state” and redirect to home page or login page. If I log in and press backbutton, it is going to login page again. How to avoid this?
I looked at some structures showing how to build login and home page correctly in ionic 3, but I’m using ionic 4.

If I log in, even with the token authentication saved in storage, it is returning me the login page quickly before the home page.

What I really want to know is: How to avoid showing login page after sign in ? and how to remove it from the history back?

If anyone faced this issue, please, let me know!

Posts: 1

Participants: 1

Read full topic

Overriding global theme in Ionic v4

$
0
0

@nvahalik wrote:

I’m trying to override some of the styles to change the entire theme in my v4 app. Basically it boils down to wanting to do this:

$card-ios-border-radius: 0;
$card-ios-box-shadow: none;

However, the changes aren’t making their way into the theme. The documentation says to just edit the src/theme/variables.scss file but even in the other demos I’m looking at (ionic-super) the default is to import the CSS and not the SCSS files. This would lead me to believe that no amount of changing will make a difference.

So, is changing SCSS variables supported? If so, what’s the recommended way to handle this?
If it isn’t supported, then what’s the recommended way to override the base theme like this?

Posts: 2

Participants: 1

Read full topic


Link on Button not working

$
0
0

@the_luanblakaj wrote:

Why do I always get an error that the button closed unexpectadly?
This is the code that seems to fuck everything up, whats wrong with it?

<ion-fab right top>
   <button ion-fab class="fab-map" window.open('http://google.com', '_system')>
      <ion-icon name='pin'></ion-icon>
   </button>
</ion-fab>

I appreciate any help.

Posts: 1

Participants: 1

Read full topic

List of data by google map plaace

$
0
0

@hanan150 wrote:

I want to create a list of all restaurants in my city
how can collect the data about it,
I know I will use google map place API, but I need more detail
anyone have an idea

Posts: 1

Participants: 1

Read full topic

Why did the ionicframework website get rid of the SEARCH bar?

$
0
0

@chiemeka wrote:

The large search bar on the legacy ionic framework.com/docs/ made it so easy to get at any item of interest. Why did the team get rid of it in this new 2019 website interface.
It is a lot harder to navigate and get to exactly what you want now.

Posts: 1

Participants: 1

Read full topic

Python/Ionic/MySQL Notifications

$
0
0

@murrayxaiyan wrote:

I have a code in Python that inserts data into a table in MySQL. What I want to do and I do not know how to do it is to be able to receive the data that is inserted in my application in Ionic. By this I mean to be able to receive only that data that is inserted (not the whole table) to be able to notify in the application, each time a row is inserted in the table.

I tried to do it with observables but I did not understand much about that and it did not work either. The other thing that occurs to me is to use web sockets but I do not know if it will serve me correctly.

If someone can guide me or help, I would greatly appreciate it.

Posts: 1

Participants: 1

Read full topic

Where I can find https://s3.amazonaws.com/ionic-io-static/xxxx.png

Viewing all 70434 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>