Hello,

I installed the plugins pushwoosh Ionic, it works very well on ios and android.

I followed this article: http://docs.pushwoosh.com/docs/cordova-phonegap

and the code source I take here: https://github.com/Pushwoosh/pushwoosh-phonegap-cordova-sample

However when I notified I alert the window that opens and the title I see index.html

I wonder if I can change the name of my Application

index.html to MyApp

I think it is here to see, I added a title but it does not work

//set push notifications handler document.addEventListener('push-notification', function(event) { var message = event.notification.message;

  var userData = event.notification.userdata;

  //alert("Push message opened: " + message);
  alert(message);
  console.info(JSON.stringify(event.notification));

  //dump custom data to the console if it exists
  if (typeof(userData) != "undefined") {
    console.warn('user data: ' + JSON.stringify(userData));
  }
}

);

can you help me on this?

Thank you

Here in the picture alert

http://d.pr/i/18kxe

asked 18 Oct '16, 05:50
pecnet's gravatar image

pecnet
112

I understood how to do it one must also comment on this line => //alert(message);

permanent link
answered 18 Oct '16, 20:18
pecnet's gravatar image

pecnet
112

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:

×39
×13
×6

question asked: 18 Oct '16, 05:50

question was seen: 1,556 times

last updated: 18 Oct '16, 20:18