The next version of Android, Android 0, will copy that feature from iOS:
https://developer.android.com/preview/features/notification-badges.html
Here the current situation is described:
The next version of Android, Android 0, will copy that feature from iOS:
https://developer.android.com/preview/features/notification-badges.html
Here the current situation is described:
For ionic2/3
Check here
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
It will be useful i'm sure
Thanks @Sujan12 to share
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!
Are you saying to replace http with https?
Can u console the image src. that what u are getting from?
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
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.
Hello @Royken,
For this you must have knowledge of css, so this list look beautiful, for basic ionic grid component will work to divide list item in 3 parts, image-description-quantity.
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.
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. !!
Ya.. but I am facing this issue after updating to ionic cli 3.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.
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.
iPad Split screen feature available in ios 11. Try this step : https://www.howtoisolve.com/fix-split-view-not-working-in-ios-on-ipad/
See this Video : https://www.youtube.com/watch?v=I_tGKLbJQUo
And before?
As I wrote this is not connected to ionic
in any way.
Did you also update cordova
?
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 !
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.