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

Firebase handle push notification and increase badge


How to get simply app version?

Not reciveing any data from BLE scan

$
0
0

ive set ever thing up but i don't know why i am not receiving anything.

home.ts

import { Component } from '@angular/core';
import { BluetoothSerial } from 'ionic-native';
import { NavController } from 'ionic-angular';
import { AlertController } from 'ionic-angular';
import { BLE } from '@ionic-native/ble';


@Component({
  selector: 'page-home',
  templateUrl: 'home.html'

})
export class HomePage {
  infomation: string;

constructor(private ble: BLE, public alertCtrl: AlertController, public navCtrl: NavController){}

ionViewDidLoad(){

    this.ble.isEnabled().then(() => {
      console.log('hurray it bluetooth is on');
    }, (error) => {
      console.log(error);
      this.ble.enable().then(resp => {
        console.log("bluetooth is enabled now");
      }, (error) => {
        console.log('bluetooth was not enabled');
      });
    });
}
    search(){
      this.ble.startScan([]).subscribe(data => {

          this.infomation = JSON.stringify(data.name) + ' '+ JSON.stringify(data.id);
      }, (error) => {
        let alert = this.alertCtrl.create({
          title: 'devices not found',
          message: error,
          buttons: ['ok']
        });
        alert.present();
    })
  }

home.html

<ion-header>
  <ion-navbar>
    <ion-title>
      Bluetooth Light control
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>

    <button ion-button (click) = "search()">list of paired devices</button>
    <button ion-button (click) = "discover()">list of unpaired devices</button>

    <p>
      here is a list of id's...
    </p>

    <ion-list>
      <ion-item>
        {{infomation}}
      </ion-item>
    </ion-list>

iv imported correctly. ive read the documents. ive ran it on ionic view on my phone. but i still cant understand why i am not receiving anything

Firebase handle push notification and increase badge

Ionic 2 Side menu not working after number of pushes

$
0
0

Hi Ionic Team,

I am facing a problem ionic 2 side menu not working when i go through number of pages some page are set as root and some page are pushes on stack.

Here is the Flow for Pages i am going through.

Navigation Stack:
RootPage -> navCtrl.push(Page1) -> navCtrl.setRoot(Page2) -> this.navCtrl.push(Page3) ->

this.navCtrl.push(Page4) -> this.navCtrl.push(Page5) -> this.navCtrl.setRoot(Page6) ->

this.navCtrl.setRoot( Page7)

<ion-menu  class="sproglets_menu"  [content]="content" persistent="true" >


  <!-- (ionOpen)="menuOpened()" (ionClose)="menuClosed()"
   -->
  <ion-content>

    <ion-item no-lines color="transparnt">
      <ion-avatar item-start>
        <img src="assets/images/addimage.png">
      </ion-avatar>
      <h2>Umer</h2>
      <p>Sproglets</p>
    </ion-item>


    <ion-list class="rr-menu" no-lines>

      <button class="search_button" ion-button block item-left round outline color="light" icon-only (click)="Place_order()">
        <ion-icon name='search'></ion-icon>
        Search Jobs
      </button>

      <button ion-item color="transparnt" (click)="Profile()"  detail-none>
        Profile
      </button>

      <button ion-item color="transparnt" (click)="Notifications()"  detail-none>
        Notifications
        <span ion-button clear item-end color="login_btn_color">28</span>
      </button>

      <button ion-item color="transparnt"   detail-none>
        Timesheets
        <span ion-button clear item-end color="login_btn_color">28</span>
      </button>

      <button ion-item color="transparnt" (click)="Payment()"  detail-none>
        Payments
        <span ion-button clear item-end color="login_btn_color">28</span>
      </button>

      <button ion-item color="transparnt" (click)="Setting()"  detail-none>
        Settings
      </button>

      <button ion-item color="transparnt" (click)="Logout()"  detail-none>
        Logout
      </button>

    </ion-list>

  </ion-content>

</ion-menu>

<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

Ionic Info:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.4.2
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 8.1
Node Version: v4.5.0
Xcode version: Not installed

Side menu works properly if i set Page7 as a root.

Please guide what i am doing wrong. Thanks!

How to do PUT request with FileTransfer

$
0
0

Are you saying to replace http with https?

Image not displaying while displaying contacts

$
0
0

Can u console the image src. that what u are getting from?

FCM Push notification handler

$
0
0

@Sujan12 thanks for reply,

I would try this and will update the progress.

Thanks,


Ionic editable list in ionic1

$
0
0

Please How can I achieve something like in the image below where I a have a list of items (in an array) and for each items put a button where i can update the number and in the bottom have the sum.

Thank you

TwitterConnect Authorize failed

$
0
0

Unfortunately i didn't manage to resolve the issue. I later decided to not include Twitter as a login option since it isn't very popular in my country anyways.

Ionic editable list in ionic1

Access objects from tabs page

$
0
0

thanks guys for your help , now its working fine.
still any thing like view child things its good to use instead of getting from providers.

InAppBrowser - Return from opened external Link

$
0
0

Hello,
I am developing an ionic app, which uses InAppBrowser plugin for external link navigation. The issue is that, whenever I return from that external link , I don't land on a page from which I left, instead I land somewhere else. Please help.

Thanks in advance. !!

Ionic android gradle build takes long time!

$
0
0

Ya.. but I am facing this issue after updating to ionic cli 3.0.0

How to set Popover full screen

$
0
0

Hi Everyone
Now when i'm using Popover the content not fit the screen

my code
this.pop = this.popoverCtrl.create(AutoCompleteSearchPage);

and autocomplete search page

<ion-header>

  <ion-toolbar color='primary'>
		<ion-buttons start>
			<button ion-button icon-only (click)='onCancel()'>
				<ion-icon name="close"></ion-icon>
			</button>
		</ion-buttons>
		<ion-searchbar (ionInput)="getItems($event)"></ion-searchbar>
		<ion-buttons end>
			<button ion-button icon-only (click)='onDismiss()'>
				<ion-icon name="add"></ion-icon>
			</button>
		</ion-buttons>
	</ion-toolbar>

</ion-header>


<ion-content padding>
  <ion-list>
    <ion-item *ngFor="let item of filterdItems">
      <button ion-item type="button">{{ item }}</button>
    </ion-item>
  </ion-list>
</ion-content>

how i can make this PopoverController fit content of full screen and send selected data back to primary page.


Error: exporting my App from Creator

$
0
0

Hello,

I'm trying to export the app from Creator following the steps of the documentation about "How to export a native Apk for Android and iOs"

I've done everything well but when I want to dowload the package clicking Package Project an error appear.

"There was an error with your build"

Does anyone knows why it appens and how can I solve this problem.
I really need the apk as soon as possible, so there is another way to get it?

There is a screenshot of the problem.

iOS9 Split screen feature not working

Ionic android gradle build takes long time!

$
0
0

And before?

As I wrote this is not connected to ionic in any way.
Did you also update cordova?

Firebase Cloud Messaging custom sound

$
0
0

Hey !

I am implementing an app that uses notifications with the help of Firebase Native and I'm having a hard time placing my custom sound file in the app. Does anybody know where to place it ? I have tried pretty much everywhere with no success.

Thank you !

How to set Popover full screen

$
0
0

Hello,
if i understand your example correct you might want to use a modal?

It is described how to receive data back, with onDidDismiss usually, same works for the PopOver.

Viewing all 228535 articles
Browse latest View live


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