Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8230513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:09:49+00:00 2026-06-07T17:09:49+00:00

I have tested to send push notifications with cordova-1.8.1.js and the push plugin together

  • 0

I have tested to send push notifications with cordova-1.8.1.js and the push plugin together with pushwoosh.com and it work as it should.
I followed this tutorial: http://www.pushwoosh.com/programming-push-notification/push-notification-sdk-integration-for-phonegap/

The push notification is send to my iPhone and it plays the sound and shows the notification when the phone and app is closed, good!
But if I open the phone when the notification is visible then the app is opened as it should…but
the alert that is displayed is saying:
Alert
“push-notification”,”{\aps\”:\sound\”:\”default\”,\”alert\”:\” and then the message….\”}}”

  1. So what is wrong, it should only write the message in the alert and not the rest?

Also if I delete the app with home button and start it again I get another alert saying “registerDevice”, “type”:”7″…..and so on.
2. How can I make this go away?

Any input appeciated, thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:09:51+00:00Added an answer on June 7, 2026 at 5:09 pm

    Problem solved. Use this and it will only show the message in the alert and nothing else.

    document.addEventListener('push-notification', function(event) {
        //console.warn('push-notification!: ' + event.notification);
        //navigator.notification.alert(JSON.stringify(['push-notification1!', event.notification]));
        var notification = JSON.parse(event.notification);
        navigator.notification.alert(notification.aps.alert);
        //pushNotification.setApplicationIconBadgeNumber(0);
        pushNotification.setApplicationIconBadgeNumber(0);
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Everytime I test the email is send correctly. (I have tested in PC: IE6,
Everytime I test the email is send correctly. (I have tested in PC: IE6,
I have tested out hundreds of different codes, either they work and screw something
I have tested this servlet and it works well, except in Google Chrome it
I have a Custom usercontrol that I want to enlarge. I tested this whit
I have a program that generates a PDF as output. If I send this
I am about to send my iPhone application to Apple. I have tested the
I am using the Java-APNS framework to send push notifications to iOS devices. It
Since HTML5 isn't ready yet, and getUserMedia doesn't work in browsers i have tested,
I have tested the below script on a demo page which is not using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.