Hi

I'm experiencing on Ionic/cordova project. Push works fine but badge doesn't clear while i've implemented the pushNotification.setApplicationIconBadgeNumber(0);

In my app.js i've implemented the init like this : angular.module('starter', ['ionic', 'starter.controllers', 'starter.services'])

.run(function($ionicPlatform) { $ionicPlatform.ready(function() { app.receivedEvent('deviceready'); initPushwoosh(); }} Any help?

asked 05 Jan '15, 05:31
elepetit's gravatar image

elepetit
112

Is pushNotification set to a valid object? The code looks correct from the first sight.

permanent link
answered 07 Jan '15, 08:40
shader's gravatar image

shader
3.9k7

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×190
×39
×18

question asked: 05 Jan '15, 05:31

question was seen: 1,408 times

last updated: 07 Jan '15, 08:40