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

Page does not update after BLE scan

$
0
0

Yeah, I think it is broken. The observable can write the data to console, but the template value doesn't get updated.

Using NgZone and zone.run() also allows the template to be updated.

Which is the better way to update the display...

NgZone, or ChangeDetectorRef ??


Ionic 2 Fingerprint Plugin Authentication using Android Device

Snackbar Component

$
0
0

Like that, i'm using android studio with native code for example.

Ionic 2 Get Geolocation(Latitude and Longitude) Example

Ionic Push custom sound not works!

$
0
0

Please show some code for implementation.

Using Push Notification

$
0
0

Yes you will have to write you own API. Depending on the technology(pHp, nodeJs etc) there variant packages for them.

For nodeJs server side APP check this

https://www.npmjs.com/package/fcm-node

For Laravel project

https://github.com/turbo124/laravel-push-notification

You can google for other technology packages. I hope this helps.

Ionic Push custom sound not works!

$
0
0

   const options: PushOptions = {
          android: {
              senderID: 'Here is my send id',
              sound: true,
              vibrate: true,
              clearBadge: true,
              icon: 'icon',
              clearNotifications: true,
          },
          ios: {
              alert: true,
              badge: true,
              sound: true,
              clearBadge: true
          },
          windows: {}
      };

      const pushObject: PushObject = this.push.init(options);

      pushObject.on('notification').subscribe((notification: any) => {
          console.log('message', notification.message);
          let self = this;
          if (notification.additionalData.foreground) {
              // if application open, show popup
              let confirmAlert = this.alertCtrl.create({
                  title: 'Notification...',
                  message: JSON.stringify(notification),
                  buttons: [{
                      text: 'Ignore',
                      role: 'cancel'
                  }, {
                          text: 'View',
                          handler: () => {
                              //TODO: Your logic here
                              //self.nav.push(DetailsPage, {message: data.message});
                          }
                      }]
              });
              confirmAlert.present();
          } else {
              //if user NOT using app and push notification comes
              //TODO: Your logic on click of push notification directly
            //  this.nav.push(Contact, { message: notification.message });
          }
      });

      pushObject.on('registration').subscribe((registration: any) =>
      {
          console.log("Registration Id : " + registration);
      });

      pushObject.on('error').subscribe((error: any) => {
          console.log("Error : " + error);
      });

Ionic Push custom sound not works!

$
0
0

I am sending push messages from Firebase Cloud Messaging notifications.

I am receiving messages but I don't know how to play custom sound there.

I have placed mp3 Preformatted textsound file in res>>raw folder but nothing works.


Ionic Push custom sound not works!

$
0
0

I would recommend you check on this, I hope it helps.

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#sound

Unable to use the camera plugin cordova-plugin-camera install issue

$
0
0

This is a big issue and i am unable stuck :frowning:

I deleted the android platform and reinstalled it -- didn't work

when do i get the error?

its a button call and behind the call i call this lifted from the ionicframework site:

import { Camera, CameraOptions } from '@ionic-native/camera'

...

launchCamera() {
    const options: CameraOptions = {
      quality: 100,
      destinationType: this.camera.DestinationType.DATA_URL,
      encodingType: this.camera.EncodingType.JPEG,
      mediaType: this.camera.MediaType.PICTURE
    }

    this.camera.getPicture(options).then((imageData) => {
      // imageData is either a base64 encoded string or a file URI
      // If it's base64:
      let base64Image = 'data:image/jpeg;base64,' + imageData;
    }, (err) => {
      // Handle error
    });
  }

Now i cant event reinstall the Cordova Camera plugin. i am following what we have in the following post

i keep getting this error

"Error: Cannot find plugin.xml for plugin "cordova-plugin-camera". Please try adding it again."

I dont know what is this plugin.xml and what to do with it when i find it

So stuck.. will appreciate all help i can get :slight_smile:

Unable to use the camera plugin cordova-plugin-camera install issue

$
0
0

The last time I had to downgrade my systems cordova to 6.0.5. then reinstall the camera plugin.

npm install cordova@6.0.5

I hope it works in your case

Ionic Push custom sound not works!

$
0
0

I already read that documents. I have fixed the issue. I was using old version of push plugin.

Ionic Push custom sound not works!

*** process.env.ENV is not defined, assuming 'prod' env

$
0
0

Who is causing it? I don't know.

Angular is running is development mode could be the guy causing it.

Click the bundle.js:4776 to see the code on that line, perhaps that would give you an insight.

Ionic3 ERR_FILE_NOT_FOUND(file:///android_asset/www/index.html)

$
0
0

it is the same issue with every project.

E:\Ankit\ionicApps\abc>ionic info

global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.0
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : android 6.2.3
Ionic Framework                 : ionic-angular 3.0.1

System:

Node       : v6.10.3
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 3.10.10

How to implement ionic infinite scroll to show my array data

$
0
0

can you give example your code? i've been stuck for weeks :frowning:

Snackbar Component

Graphic zoom changed after materialize css

$
0
0

lol. no...
something went wrong with the app... took the last bkp. tnx.

Ionic 2 get latitude and longitude from address

$
0
0

hii,
how to get latitude and longitude from address using ionic 2 if any 1 have working example on it.
please provide me. i want to convert google autocomplete address into longitude and latitude.
i am using google api instead off ionic netive geocoder.

Images dont show, ionic bug?

$
0
0

i just put / before and it worked...

Viewing all 228551 articles
Browse latest View live


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