Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 49116 articles
Browse latest View live

Slow load data from LoadingController REST API Wordpress

$
0
0

@rootthenile wrote:


export class HomePage {

  loop: true;

  autoplayDisableOnInteraction: true;


  loader: Loading;

  posts: Observable<Post[]>;
  @ViewChild('pSlides') pSlides: Slides;
  constructor(public navCtrl: NavController, public wpProvider: WpProvider, public loadingCtrl: LoadingController, public toastCtrl: ToastController) {
    this.presentLoading()
    this.posts = this.wpProvider.getPosts();
    this.posts.subscribe(data =>
        this.loader.dismiss());


    }

can any one tell me what the wrong with this code

because I think it make my homepage very slow

this is an app for api wordpress posts

but when I open any post from home page the post is going fast

Posts: 1

Participants: 1

Read full topic


Backend firebstore validation approve forms?

$
0
0

@rootthenile wrote:

how can I make any one send a form data from Ionic to firebase database ? form content name phone email select options and Main image and a 4 album Image and it will be under approved and when i accept this form data I can show it in the app ? its like some normal classifieds app

Posts: 1

Participants: 1

Read full topic

Can i check in-App purchase in the ios simulator?

$
0
0

@MahaRamesh wrote:

can i check in-App purchase in the simulator ? because i don’t have iPhone real device so,i couldn’t able to create provisioning profile certificate so what is the way to check in-App purchase in the simulator

Posts: 1

Participants: 1

Read full topic

Ionic alert to add input text box and check box same alert

$
0
0

@Madhawa wrote:

I’m try to add input text fild and check box in my alert but I cant do it correctly please help me to fix it,

This is my code

doPrompts() {
    let prompt = this.alertCtrl.create({
      title: 'Add new add-on',
      message: "",

      inputs: [
        {

          placeholder: 'Select category',

        },
        {
          placeholder: 'Description',


        },
        {
          placeholder: 'Units',


        },
        {
          placeholder: '$ 00.00',


        }
      ],

      buttons: [
        {
          text: 'Cancel',
          handler: data => {
            console.log('Cancel clicked');
          }
        },
        {
          text: 'Add',
          handler: data => {
            console.log('Saved clicked');
          }
        }
      ]
    });
    prompt.present();
  }

Posts: 1

Participants: 1

Read full topic

Facing issue to load updated content in PWA

$
0
0

@surjan152 wrote:

Hello , I have developed the PWA using ionic 2 … When I am trying to compile the code to upload it on the server and enabling the service worker in index.html file.

My problem is that the changes are not reflected in when I browse the application in my device . How would I get the updated content after compiling the code ?

Please help me .

Regards
Surjan

Posts: 2

Participants: 2

Read full topic

Unfortunately app closed in Android Image Picker plugin in ionic 3

$
0
0

@anand2610 wrote:

When i call this code

try { this.imagePicker.getPictures({maximumImagesCount: 5}).then((results) => { for (let i = 0; i < results.length; i++) { try { let result = results[i]; } catch (e) { break; } } }, (err) => { }); } catch(e){ }

then app will be unfortunately closed

I also tired remove plugin and add plugin link: https://ionicframework.com/docs/native/image-picker/
Is there any solutions?
Thanks in advance
-Anand

Posts: 2

Participants: 2

Read full topic

Open pdf link inside html to new window

$
0
0

@hatrednuow wrote:

hello

so i have problem, i was load and external site to inappbrowser, and in the site that loaded have links to open PDF files via window.open, and it won’t download nor open the files, how to make it possible? and how to open links in that site (loaded in inappbrowser) that have target attribut “_blank” to open in default browser instead of inappbrowser

sorry for my bad english

Posts: 1

Participants: 1

Read full topic

Tabs in HomePage with Angularfire 2

$
0
0

@junjunhernandez wrote:

Hi. I have 4 tabs inside HomePage (current root page). When I successfully update a toggle button on the 4th tab which saves to Firebase, the root page reloads and since it contains the tabs, it always sets to the default tab instead of staying at the 4th tab.

It was working really well before I added the InAppBrowser. It is also working on ionic serve but not using a real device. I really dont know what happened. Its been 5 days since I started fixing this. May someone tell me what have I done wrong? TIA! :slight_smile:

let usersList = this.afd.list('/users');
    usersList.update(id, {
      status: status
    }).then(data => {
      this.presentToast(status);
    }).catch(error => {
      console.log(JSON.stringify(error));
    });

cli packages: (C:\Users\junjunhernandez\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3 browser 4.1.0
Ionic Framework    : ionic-angular 3.6.1

System:

Node : v7.6.0
npm  : 4.1.2
OS   : Windows 10

Posts: 1

Participants: 1

Read full topic


Ionic-native/file issue

$
0
0

@leegee wrote:

Using the latest @ionic-native/file I’m getting back a value I don’t understand:

filesystem:FileSystem {name: "files", root: DirectoryEntry}
fullPath:"/1511859565798.jpg"
isDirectory:false
isFile:true
name:"1511859565798.jpg"
nativeURL:"file:///data/user/0/net.xxx.yyy/files/1511859565798.jpg"
__proto__:Entry {constructor: , createWriter: , file: }

How can the file be both a root dir entry, and have a nativeURL like that? Is it something to do with running in dev mode…?

Thanks in anticipation.

BTW, the docs link to GitHub, which says to report issues via the Cordova tracker, but that leads to a page with an error message, “The value ‘Plugin File’ does not exist for the field ‘component’.”

Posts: 1

Participants: 1

Read full topic

Load calender by API

$
0
0

@dipankar123 wrote:

hi guys i m new in ionic 2,
i hv created a calendar. now i want to load value in calendar by calling api

my API returns this type of value

[
    {
        "strAttendanceDate": "31-Jul-2017",
        "SubjectID": 672,
        "Present": 197,
        "Absent": 100,
    },
    {

        "strAttendanceDate": "01-Aug-2017",
        "SubjectID": 672,
        "Present": 1,
       "Absent": 296

    },........,.......

]

now i want to load present and absent value in calendar date wise

help me how to do load this in calendar
this is i how i created the calender

  <calendar [eventSource]="eventSource"
  [calendarMode]="calendar.mode"
  [currentDate]="calendar.currentDate"
  (onCurrentDateChanged)="onCurrentDateChanged($event)"
  (onEventSelected)="onEventSelected($event)"
  (onTitleChanged)="onViewTitleChanged($event)"
  (onTimeSelected)="onTimeSelected($event)"
  step="30">
</calendar>

Posts: 1

Participants: 1

Read full topic

HttpClient downloding data. App unexpectedly closed. Android

$
0
0

@anton_klochko wrote:

Hi all ! Could anyone suggest please … maybe someone has similar state … when I am trying downloding zip files with HttpClient … app always unexpectedly closed … Just closed without any errors on display … Could I debug such situation ?

Posts: 1

Participants: 1

Read full topic

Help please whit the icons in Ionic

Which version of Ionic the project uses?

$
0
0

@lsantaniello wrote:

Hi guys,
I have several project on my local pc but eachone uses a specific framework version of ionic. How can I get the right version?

If I execute commend “ionic -version”, I get “2.2.1” for everyone.

What is the right command exetuted by the root folder of the project?

Thanks

L

Posts: 1

Participants: 1

Read full topic

Ionic NFC apple pay - see the payment made

$
0
0

@Grundell wrote:

Hello,

So right now I’m looking in to creating an app where you’re able to see purchases made in stores with Apple Pay.

Posts: 1

Participants: 1

Read full topic

Notification sound and icon

$
0
0

@guptajagadish843 wrote:

Hi there ,

const options: PushOptions = {
android: {
icon:‘icon’,
sound:‘true’

},
ios: {
alert: ‘true’,
badge: true,
sound: ‘false’
},
windows: {},

};

The above is my options the notification is working fine sound and icon is not working
What should i do how do i get sound when the notification is arrived

Posts: 1

Participants: 1

Read full topic


Cordova build android --prod error

How to create submodule in ionic2

$
0
0

@dileep014 wrote:

Hi i am using ionic2 i want to create messaging (one to one message,one group message ,chat,profile) as submodule so i can use same module in multiple project
In angular2 lazy loading is there but in ionic2 i amn’t able to use as like angular2 so please help me

Thanks in advance

Posts: 1

Participants: 1

Read full topic

Displaying fetched base64 Image in ionViewWillEnter()

$
0
0

@dyme wrote:

Hi !
I am struggling with displaying a Base64 image fetched from backend…
How can I pass a string from ionViewWillEnter method (or ionViewDidLoad) to the HTML in order to display it !?
Thanks in advance

  ionViewWillEnter() {
    this.feathersClient.damageService.get(this.userId, {},
          (error, response) =>
                    {
                      if (error)
                      {
                        console.log("ErrorDamage: " + error);
                      }
                      else
                      {
                        console.log("Damage: " + JSON.stringify(response));
                        let img = JSON.stringify(response.image);
                      };

    });
  }

Posts: 1

Participants: 1

Read full topic

When i run my application

$
0
0

@vd_virani wrote:

When i run application using ionic serve below error is come.

Error: spawn EACCES
    at _errnoException (util.js:1024:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at Object.exports.spawn (child_process.js:502:9)
    at module.exports (/usr/local/lib/node_modules/ionic/node_modules/opn/index.js:74:26)
    at /usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/commands/serve.js:71:13
    at Generator.next (<anonymous>)
    at fulfilled (/usr/local/lib/node_modules/ionic/node_modules/tslib/tslib.js:100:62)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Posts: 2

Participants: 2

Read full topic

Release /request audio focus

$
0
0

@snikh wrote:

Hi everyone!

I have an app with video-calls and during incoming call I notify user with sound. All works fine except situation:

  1. User listens music on device.
  2. My app received incoming call and notify user with sound.
    2.1 Music automatically stops
    2.2. Sound from my app starts

When call ends I want to continue to play music automatically, but this does not happen.
The problem is that no one plugin that I find can’t release audio focus.

I tried:

  1. ionic native audio. Actually does not work, because based on the non latest version of cordova-plugin-nativeaudio from 2
  2. Last version of cordova-plugin-nativeaudio. It works but does not know anything about audio focus at all (music don’t stop and play together with my sound)
  3. cordova-plugin-media. Works fine. Stops music by request audio focus, but know nothing about release audio focus
  4. cordova-plugin-audiofocus. Can’t release audio focus

How can I release audio focus? Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Viewing all 49116 articles
Browse latest View live


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