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

Order data by date from json in ionic 3

$
0
0

hi
thank you for responding but ı cannot use like this.

var data = [{“start_time”:“2019-06-26 10:00:00”},{“start_time”:“2019-06-26 07:00:00”},{“start_time”:“2019-05-26 00:00:00”}]

ı have to pull from json. Can you help me.


Integrate pixijs - typescript in Ionic 2 with npm

$
0
0

Hi sir. I managed to make the canvas work but the sprite isn’t showing.

var me = PIXI.Sprite.from(‘assets/basics/test.png’);
me.anchor.x = 0.5;
me.anchor.y = 0.5;
me.x = 20;
me.y = 20;
stage.addChild(me);

White screen comes scroll fast [List]

Order data by date from json in ionic 3

$
0
0

You are getting the data from API. subscribe that data and store that in variable.

data = {“data”:[{“id”:2,“start_time”:“2019-06-26 00:00:00”,“delete”:0,“type”:1,“created_at”:null,“updated_at”:null}]}

var arraydata = data.data
//now arraydata = [{“id”:2,“start_time”:“2019-06-26 00:00:00”,“delete”:0,“type”:1,“created_at”:null,“updated_at”:null}]

so you can access the data key object from jSON object array.

Dual Camera

$
0
0

Hello everyone!
I need to access the cameras simultaneously. In particular I need to start a video from the rear camera and take a picture with the front camera. I found some examples with the native camera2 API. Is there a possible solution to do it with ionic?
Thanks

Error "ionic cordova run android " after native-run and IONIC 5 update

$
0
0

Remove platform from your project and reinstall with ionic cordova prepare android

IONIC 4/CLI 5.0.3 - run android error

$
0
0

you don’t need it, with update ionic cli 5, native run to 0.2.5 and android-platform v28 is enough

How to add custom property to Ionic Component?

$
0
0

In Ionic4, you would use a @Input() myProperty; in your .ts file. Not sure about ionic 3, but perhaps it is the same.


Error: Failed to fetch platform andriod

$
0
0

Same problem i had…wasted abt a hr

Use of ViewChild in angular

$
0
0

import { ViewChild } from ‘@angular/core’;

what is use of Viewchild in angular /ionic

thanks in advance :grinning:

IONIC 4/CLI 5.0.3 - run android error

$
0
0

I’m using ionic 3
my ionic info:

cli packages: (/usr/lib/node_modules)

    @ionic/cli-utils  : 1.19.3
    ionic (Ionic CLI) : 3.20.1

global packages:

    cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1) 

local packages:

    @ionic/app-scripts : 3.2.2
    Cordova Platforms  : android 8.0.0
    Ionic Framework    : ionic-angular 3.9.5

System:

    Node : v10.16.0
    npm  : 6.9.0 
    OS   : Linux 4.15

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Use of ViewChild in angular

$
0
0

Sometimes you need to “get a hold of” some element on the page, so that you can set properties on it, etc. E.g., I have a page with an HTML5 <audio> element. I need to dynamically add the source of the file that needs to be played when the user clicks the play button. So, I can do this:

@ViewChild audio: any;

Now, in my code, I can do stuff like:

this.audio.setProperty('src', 'assets/EN/1.mp3')

In another case I want to programmatically scroll the page to the top. So, I have to use ViewChild to get a handle on the IonContent element so that I can call scrollToTop() on that object.

Get notification into ionic app after clearing app data from setting

$
0
0

I am using ionic native push notification for sending a notification into an app using firebase. But when I clear app data of my app from setting page, still I am getting notification into my mobile.

Can anyone help me out with this?

Taken image from camera not able to show in UI,

$
0
0

Hello, Any solution to this problem?

Issue with html tag

$
0
0

Problem:
Trying to use html code tag within Ionic app. Instead, Ionic app renders the actual Custom Component itself.

Context:
In html page I have:

<p>Code sample</p>
  <pre>
    <code class="html" width=100%>
    <empty src={this.messages} message="No messages in this conversation"></empty>
  </code>
</pre>

Now, I was expecting to see the code as-is. However, it shows the output from tag as below.
image%20(2)

Solution
Please suggest how to use code tag within ionic?

Thanks


CameraPreview plugin

$
0
0

Instead of this.cameraPreview.takePicture use this.cameraPreview.snapShot

Can anyone help me with localnotification and fcm?

$
0
0

@rafaeldatalan
I updated both plugins now it’s working fine…

cordova plugin add cordova-plugin-fcm-with-dependency-updated-apns
cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications.git

What are observables in ionic

$
0
0

what are observables in ionic and what is its advantage in getting post calls

On pressing mobile back button, app is refreshed and reloaded instead of going back

$
0
0

Hello Folks,

I am facing one weird issue with my ionic android application. When I press mobile phone hardware back button it is reloading/refreshing whole application instead of going back.
I have tried to use event.stopPropogation() and also this.nav.pop() but nothing works.
So kindly help me out.

Thanks & Regards,
Kunal Kakkad

Can't use my custom icons

Viewing all 230429 articles
Browse latest View live


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