Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Update push url
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Jul 22, 2016
1 parent a2ad8da commit e1d8774
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Attribute | Type | Default | Description

Attribute | Type | Default | Description
--------- | ---- | ------- | -----------
`browser.pushServiceURL` | `string` | `http://push.api.phongeap.com/v1/push` | Optional. URL for the push server you want to use.
`browser.pushServiceURL` | `string` | `http://push.api.phongap.com/v1/push` | Optional. URL for the push server you want to use.

#### iOS

Expand Down Expand Up @@ -100,7 +100,7 @@ var push = PushNotification.init({
senderID: "12345679"
},
browser: {
pushServiceURL: 'https://yourPushServer.com/push'
pushServiceURL: 'http://push.api.phongap.com/v1/push'
},
ios: {
alert: "true",
Expand Down
2 changes: 1 addition & 1 deletion docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var push = PushNotification.init({
senderID: "12345679"
},
browser: {
pushServiceURL: 'https://yourPushServer.com/push'
pushServiceURL: 'http://push.api.phongap.com/v1/push'
},
ios: {
alert: "true",
Expand Down
4 changes: 2 additions & 2 deletions docs/PAYLOAD.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var push = PushNotification.init({
"senderID": "12345679"
},
browser: {
pushServiceURL: 'https://yourPushServer.com/push'
pushServiceURL: 'http://push.api.phongap.com/v1/push'
},
"ios": {
"alert": "true",
Expand All @@ -99,7 +99,7 @@ var push = PushNotification.init({
"iconColor": "blue"
},
browser: {
pushServiceURL: 'https://yourPushServer.com/push'
pushServiceURL: 'http://push.api.phongap.com/v1/push'
},
"ios": {
"alert": "true",
Expand Down
4 changes: 2 additions & 2 deletions www/browser/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var PushNotification = function(options) {

// send encryption keys to push server
var xmlHttp = new XMLHttpRequest();
var xmlURL = (options.browser.pushServiceURL || 'http://push.api.phongeap.com/v1/push') + '/keys';
var xmlURL = (options.browser.pushServiceURL || 'http://push.api.phongap.com/v1/push') + '/keys';
xmlHttp.open('POST', xmlURL, true);

var formData = new FormData();
Expand Down Expand Up @@ -112,7 +112,7 @@ PushNotification.prototype.unregister = function(successCallback, errorCallback,
serviceWorker.unregister().then(function(isSuccess) {
if (isSuccess) {
var xmlHttp = new XMLHttpRequest();
var xmlURL = (that.options.browser.pushServiceURL || 'http://push.api.phongeap.com/v1/push') + '/keys/remove';
var xmlURL = (that.options.browser.pushServiceURL || 'http://push.api.phongap.com/v1/push') + '/keys/remove';
xmlHttp.open('POST', xmlURL, true);

var formData = new FormData();
Expand Down

0 comments on commit e1d8774

Please sign in to comment.