Hello. Im new in android development. I made html5 app with phonegap but dont use sdk android, only have folder with all webapp and i uploaded it to build.phonegap.com. I want to include notifications, but i have some problems. Any error, only cant receive notifications. I've done this:

-Include pushwoosh in config.xml - Include js/index.js with appid and gcm code - Added all files from sample app from github (without index.html) - Is not working.

¿Any help?

asked 12 Mar '14, 13:01
Robert%20Techs's gravatar image

Robert Techs
11

If you are using a default phonegap project, then it's in www/js/index.js that you want to put that function in.

permanent link
answered 14 Mar '14, 01:50
alberts's gravatar image

alberts
283

I had A LOT of trouble getting Pushes to work with my existing application. I ended up using the Cordova sample application and instructions below and then piecing the code into my project.

http://www.pushwoosh.com/programming-push-notification/android/android-additional-platforms/phonegapcordova-sdk-integration/

permanent link
answered 12 Mar '14, 17:44
alberts's gravatar image

alberts
283

  1. Register for push notifications: Add the following function to your javascript file, enter the correct Project Number and Pushwoosh App ID

What javascript file?

permanent link
answered 13 Mar '14, 09:47
Robert%20Techs's gravatar image

Robert Techs
11

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:

×446
×165
×10

question asked: 12 Mar '14, 13:01

question was seen: 1,850 times

last updated: 14 Mar '14, 01:50