hi all

first post here, please let me say how wonderful is pushwoosh

i'm building for windows phone with phonegap build. is this the right way to point to a specific push page in app.xaml?

<PushSDK:PhonePushApplicationService.PushPage>/WP8-Phonegap/www/push.html</PushSDK:PhonePushApplicationService.PushPage>

thanks in advance

asked 20 Jan '14, 14:46
maxborgatti's gravatar image

maxborgatti
112

edited 20 Jan '14, 15:40

fleurdeviande's gravatar image

fleurdeviande
114

If /WP8-Phonegap/www/push.html is the full path to the html that you'd like to open upon receiveing the toast-push, then yes, it is correct.

permanent link
answered 21 Jan '14, 10:17
Alex%20Spotar's gravatar image

Alex Spotar
3.6k6

it exits the app when opening the push, what kind of error could it be?

push.html is the exact copy of index.html page of your sample fot windows phone 8

permanent link
answered 21 Jan '14, 13:17
maxborgatti's gravatar image

maxborgatti
112

It seems that navigation doesn't work this way in Phonegap.

Here's what you can try to do: 1) Comment the following lines as on the screenshot below (with the correct App ID, obviously) alt text

2) Add a basic test push.html, (for example https://www.dropbox.com/s/6r780b5k53y6smd/push.html) to www > js alt text

3) locate the following function in your index.js:

onPushRecive: function (pushContent) {
console.log("Push has been recived: " + pushContent);
$("#secondPage").show();
$("#firstPage").hide();
$("#pushContent").html(pushContent);
app.getUserData();
},

and replace it with

onPushRecive: function (pushContent) {
console.log("Push has been recived: " + pushContent);
window.location.href = "push.html";
navigator.notification.alert("Navigated");
app.getUserData();
},

Thus, it should work as expected - by opening a toast notification the push.html should be opened.

permanent link
answered 10 Feb '14, 03:03
Alex%20Spotar's gravatar image

Alex Spotar
3.6k6

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:

×165
×10
×10

question asked: 20 Jan '14, 14:46

question was seen: 2,246 times

last updated: 10 Feb '14, 03:03