Posts

Showing posts with the label ionic3

Back4app issue in registering device with ionic 3

Back4app issue in registering device with ionic 3 I m trying to use back4app for push notification. For this I have installed back4app 's ionic sdk (https://www.back4app.com/docs/ionic/parse-ionic-sdk) like this back4app back4app npm install parse npm install parse then in my app.component.ts I imported parse app.component.ts import Parse from 'parse'; and in platform ready Parse.serverURL = "https://parseapi.back4app.com/"; Parse.initialize("APP_ID_HERE", "JAVASCRIPT_KEY"); //I have used real keys from back4app dashboard. let install = new Parse.Installation(); install.save(null, { success: (install) => { // Execute any logic that should take place after the object is saved. // console.clear(); console.error('New object created with objectId: ' + install.id); }, error: (install, error) => { // Execute any logic that should take place if the save fails. // error is a Parse.Error with...

Ionic audio how can I play one track at a time

Ionic audio how can I play one track at a time I am using this ionic audio plugin for playing audio files instead of creating an html5 audio or customizing audio players using css and javascript. The plugin works great but the documentation is quite missing some pieces on how to handle some extra methods or how to customize its css. My goal is to play one track at a time and stop this track whenever the device is off. Here is the sample code of my home.html <ion-list> <audio-track #audio *ngFor="let track of myTracks" [track]="track" (onFinish)="onTrackFinished($event)"> <ion-item> <div class="from-me set-points"> <ion-thumbnail> <audio-track-play dark [audioTrack]="audio"><ion-spinner></ion-spinner></audio-track-play> </ion-thumbnail> <div item-content>...

Task.leftShift(Closure) method has been deprecated

Task.leftShift(Closure) method has been deprecated I am trying to run conference application using command ionic start conf conference It works fine when i run in my browsers as ionic serve But when i try to deploy using the command ionic cordova run android ANDROID_HOME=/Users/macbookpro/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home studio Subproject Path: CordovaLib Subproject Path: app publishNonDefault is deprecated and has no effect anymore. All variants are now published. null The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_br7zud05gv2qtk7uiqjkqvaey.run(/Users/macbookpro/ionic-conference-app/platforms/android/app/build.gradle:144) org.xwalk:xwalk_core_library:22+ Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead. My cordova version is 8.0.0 Ionic vers...