Posts by Leonardo Belintani • 121 points
10 posts
-
1
votes1
answer216
viewsA: Ionic 2 - Onesignal - Get player_id
I found how to recover the player_id from the Onesignal plugin, and it’s actually quite simple. In app.component.ts, I added the code: window["plugins"].OneSignal.getIds(ids => {…
-
3
votes1
answer216
viewsQ: Ionic 2 - Onesignal - Get player_id
I use Onesignal for push notifications in an Ionic 2 application. To send notifications targeted to specific users I need to recover player_id from Onesignal. Does anyone have any idea how to…
-
0
votes1
answer518
viewsA: Error running "npm run Prod" command in Git Bash to build an Ionic 2 project
Try to rotate npm run production instead of npm run prod. This can be the version of Node.js... Update the version with the command: npm update -g.…
-
2
votes0
answers58
viewsQ: Incompatibility android 4.4.2 with Ionic 2
I made an application in Ionic 2 and everything works perfectly, however, a user when using on mobile with android 4.4.2, some features, as for example, file upload, It does not work. Does not…
-
0
votes1
answer117
viewsA: Problem with angular Expression Angular2 Ionic2
Try so on file . ts: export class SuaPage{ public prayers: any[]; ionViewDidLoad(){ this.getPlayers(); } getPlayers(){ this._dataBaseProvider.getAllPrayers() .subscribe( data=>…
-
1
votes1
answer331
viewsA: How to view multi-request loading with Ionic 3 and Angular 4
I think that’s what you need... In order for Loading to run while requests are being processed, you can use it as follows: let lr = this.loadingCtrl.create({ content: 'Carregando...', });…
-
0
votes1
answer74
viewsA: Equivalent to setOnItemLongClickListener in Ionic 2
In Ionic 2, you can do this with the Ionic-long-press. You need to rotate the command: npm install --save ionic-long-press On app.module.ts: import { LongPressModule } from 'ionic-long-press';…
-
0
votes1
answer398
viewsA: Get IMEI using Ionic 2
Ionic provides access to some device information on which it runs, for example: device model, operating system version, serial number and uuid. In the terminal, inside the project folder, it is…
-
2
votes2
answers3010
viewsA: How to change pages on Ionic V2
If you want the next page to have the option to go back to the top of the screen, use: import { NavController } from 'ionic-angular'; constructor(public navCtrl: NavController) {} goToPage() {…
-
0
votes1
answer1184
viewsQ: Javascript to check if popup blocker is active
I need to do Javascript for an application that checks if the popup blocker is active. I have the following code: $(window).ready(function(){ var Janela = window.open('', '', ''); if(Janela==null){…