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.
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.
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);
is anybody has a solution ?
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.
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
Remove platform from your project and reinstall with ionic cordova prepare android
you don’t need it, with update ionic cli 5, native run to 0.2.5 and android-platform v28 is enough
In Ionic4, you would use a @Input() myProperty;
in your .ts file. Not sure about ionic 3, but perhaps it is the same.
Same problem i had…wasted abt a hr
import { ViewChild } from ‘@angular/core’;
what is use of Viewchild in angular /ionic
thanks in advance
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
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.
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?
Hello, Any solution to this problem?
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.
Solution
Please suggest how to use code
tag within ionic?
Thanks
Instead of this.cameraPreview.takePicture use this.cameraPreview.snapShot
@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 and what is its advantage in getting post calls
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
https://resizeimage.net/
try to change your img resolution using this online tool it worked for me … please check