Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228551 articles
Browse latest View live

How to check if the Server is Up or Down in ionic

$
0
0

Yes it does.

But for that user with that device it timed out, so it is "down" for them.


iOS splashscreen spinner not centered

$
0
0

Yes, it works with the blank project and my project's resources. I didn't find where the issue comes from yet, I keep searching, thanks.

Ion-item-sliding option probem

$
0
0

Problem was one I slide one list option and not close and open second list option the last one still open not closed automatically. See the picture you will understand

Image not displaying while displaying contacts

$
0
0

I tried adding the same,but still the same output..

export class AboutPage {
 contacts = []
 groupedContacts = []

 searchQuery: string = '';
  items: string[];
  constructor(public navCtrl: NavController,public co:Contacts,public viewCtrl:ViewController,public popoverCtrl:PopoverController,
  public callNumber:CallNumber,public sms:SMS,private domSanitizer:DomSanitizer) {
    this.initializeItems();
    co.find(["displayName", "phoneNumbers","photos"], {multiple: true, hasPhoneNumber: true}).then((contacts) => {
    for (var i=0 ; i < contacts.length; i++){
     if(contacts[i].displayName !== null){
       var obj = {};
       obj["name"] = contacts[i].displayName;
       obj["number"] = contacts[i].phoneNumbers[0].value;
       obj["image"]=  this.domSanitizer.bypassSecurityTrustUrl(contacts[i].photos[0].value);
        this.contacts.push(obj)
        console.log("message");
        }
    }
    this.groupContacts(this.contacts);
  })
}

Image not displaying while displaying contacts

$
0
0

how to do that..like if i am adding console.log("message") inside the for loop...I am getting that printed
/

 for (var i=0 ; i < contacts.length; i++){
     if(contacts[i].displayName !== null){
       var obj = {};
       obj["name"] = contacts[i].displayName;
       obj["number"] = contacts[i].phoneNumbers[0].value;
       obj["image"]=  this.domSanitizer.bypassSecurityTrustUrl(contacts[i].photos[0].value);
        this.contacts.push(obj)
        console.log("message");
        }
    }
    this.groupContacts(this.contacts);
  })
}

..I dont understand to what does it point to..

Image not displaying while displaying contacts

Ionic tabs device back button to exit app

$
0
0

hi guys,

in my app tabs page available on over another page. when i want back with device back button exit app because ever this.nav.getActive() equal 'TabsPage' and this.nav.canGoBack() equal false. when disable TabsPage Worked correct

SAP Fiori Approve Purchase Order in Ionic

$
0
0

SAP Fiori Approve Purchase Order in Ionic

Comparision on SAPUI5 and Ionic.


Just released: Tooltips Module for Ionic Apps

$
0
0

Sorry to ask the question but is there any difference between a press and a click?

I always assumed that the only event on a button was a click - can a press action be called without it be followed by a click event.

Image not displaying while displaying contacts

$
0
0

Get rid of the domSanitizer stuff, that is not your problem.

You try to set image to contacts[i].photos[0].value.
Try console.log(contacts[i].photos[0].value) to see what you are sending to the browser to display.
Or console.log(obj) before you push to to the contacts array.

Firing functions on tab select?

$
0
0

I'm developing a simple shopping cart solution. When I add product (using Objects) into the Ionic Storage, everything works, but when I change the tab to CartPage, it doesn't fire the this.storage.get. It shows the object with the cart content only if I refresh the page.

Here's my code:

export class CartPage {
    cart: any;

    subtotal: any;
    shipping: any;
    total: any;

    constructor(public navCtrl: NavController, private storage: Storage) {
        this.storage.get('cart').then((result) => {
            if(result) {
                this.cart = result;
            }
            else {
                this.cart = {};
            }

            this.subtotal = 0;
            this.shipping = 0;
            this.total = 0;

            console.log();
        });
    }
}

`ionic serve` changes my colors

$
0
0

well...you are right. havn't notices this small detail :slight_smile: sorry...

any idea why color changes?

Just released: Tooltips Module for Ionic Apps

$
0
0

The module listens to either click, OR press. Depending on how you
configure it. Press is different than click, you basically need to press
and hold for about a second for the event to fire. Click fires when you
press and release.

Ionic android gradle build takes long time!

$
0
0

cordova build android
ANDROID_HOME=C:\Users\username\AppData\Local\Android\
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_112
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated a
at build_b1us5zh0o4kbvz0k2z0f5tp0z.run(C:\Users\
The JavaCompile.setDependencyCacheDir() method has been
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug U
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsF
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:compileDebugJavaWithJavac UP-TO-DATE
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-DATE
:mergeDebugJniLibFolders UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:validateSigningDebug
:packageDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE

BUILD SUCCESSFUL

Total time: 2 mins 46.029 secs
Built the following apk(s):

cordova build android --debug
ANDROID_HOME=C:\Users\username\AppDa
JAVA_HOME=C:\Program Files\Java\jdk1.8.
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has
at build_b1us5zh0o4kbvz0k2z0f5t
The JavaCompile.setDependencyCacheDir()
Incremental java compilation is an incu
The TaskInputs.source(Object) method ha
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DAT
:CordovaLib:compileDebugShaders UP-TO-D
:CordovaLib:generateDebugAssets UP-TO-D
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-
:CordovaLib:packageDebugRenderscript UP
:CordovaLib:compileDebugRenderscript UP
:CordovaLib:generateDebugResValues UP-T
:CordovaLib:generateDebugResources UP-T
:CordovaLib:packageDebugResources UP-TO
:CordovaLib:processDebugManifest UP-TO-
:CordovaLib:generateDebugBuildConfig UP
:CordovaLib:processDebugResources UP-TO
:CordovaLib:generateDebugSources UP-TO-
:CordovaLib:incrementalDebugJavaCompila
:CordovaLib:compileDebugJavaWithJavac U
:CordovaLib:processDebugJavaRes UP-TO-D
:CordovaLib:transformResourcesWithMerge
:CordovaLib:transformClassesAndResource
:CordovaLib:mergeDebugJniLibFolders UP-
:CordovaLib:transformNative_libsWithMer
:CordovaLib:transformNative_libsWithSyn
:CordovaLib:bundleDebug UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib623De
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafegua
:compileDebugJavaWithJavac UP-TO-DATE
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-
:mergeDebugJniLibFolders UP-TO-DATE
:transformNative_libsWithMergeJniLibsFo
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForD
:validateSigningDebug
:packageDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE

BUILD SUCCESSFUL

Total time: 2 mins 45.537 secs
Built the following apk(s):

Graphic zoom changed after materialize css


Error: Uncaught (in promise): TypeError: Cannot read property 'undefined' of undefined

$
0
0

Anyone, please, kindly offer a solution to this.

Ionic android gradle build takes long time!

Firebase handle push notification and increase badge

$
0
0

Yes i think it's that,

Out of curiosity what's the utility of badge numbers on Android ?

How to display multiple icons in the same line

$
0
0

Thanks for your quick reply. you are right. it works.

  <ion-icon *ngFor="let count of item.stars" name="star" item-end ></ion-icon>

Build failing. error: Unable to find a destination matching the provided destination specifier:

$
0
0

Got the same error when building a simple cordova sample app on XCode 7.3.1.
The error disappears if my iOS device is plugged in, otherwise I always get the same error when there is no iOS devices connected to my PC.

Viewing all 228551 articles
Browse latest View live


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