Posts

Showing posts with the label ionic-framework

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...

Implement Multi Select feature (Long press/Hold and select) in Ionic

Implement Multi Select feature (Long press/Hold and select) in Ionic I am working on an Ionic project having a list. I want a multi-select feature just like the hold and select feature in android gallery , so that upon long press checkboxes appear in front of list items, enabling me to select more than one item. Any suggestions on how to implement that? I am not looking for GalleryView feature but just long press and select feature, just like it. Is it possible without creating actual checkboxes? Or do I need to create checkboxes and implement the on-hold event? Note: For those who are confusing whether I want to implement android gallery feature, please pay attention! I DO NOT want to implement android gallery feature here. I only want to implement a MULTI-SELECT feature on simple list in the same way we select multiple images on long press in android gallery, or even take an example of selecting multiple contacts in contact list, etc. You need to create ...

How to setup cordova-plugin-firebase-authenication for ionic 3?

How to setup cordova-plugin-firebase-authenication for ionic 3? I am using this plugin : https://github.com/chemerisuk/cordova-plugin-firebase-authentication to use Phone verify for my ionic android application. but, when i install this plugin and try to run it using : ionic cordova run android ..It gives me following error: ionic cordova run android [string/google_app_id] /home/intel/blank/platforms/android/app/src/main/res/values/strings.xml [string/google_app_id] /home/intel/blank/platforms/android/app/build/generated/res/google-services/debug/values/values.xml: Error: Duplicate resources I checked my strings.xml and values.xml but there are not any duplicate api key or id. My project.properties file : target=android-26 android.library.reference.1=CordovaLib android.library.reference.2=app cordova.gradle.include.1=cordova-plugin-firebase/starter-build.gradle cordova.system.library.1=com.google.gms:google-services:+ ...

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...