Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add APNS client #235

Merged
merged 1 commit into from
Feb 5, 2016
Merged

Add APNS client #235

merged 1 commit into from
Feb 5, 2016

Conversation

wangmengyan95
Copy link
Contributor

No description provided.

@wangmengyan95
Copy link
Contributor Author

cc @fantasist for review

* @param {Array} deviceTokens A array of device tokens
* @returns {Object} A promise which is resolved immediately
*/
APNS.prototype.send = function(data, deviceTokens) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no max for deviceTokens?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, internally the library just sends the notifications one by one, so we do not need to have size limitation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bnham
Copy link

bnham commented Feb 4, 2016

LGTM. One issue is how to deal with dev vs. prod device tokens. You'll probably need a higher layer that selects the appropriate APNs connection to use (dev or prod) based on the bundle id of the app (available in the "appIdentifier" field of the installation).

@bnham
Copy link

bnham commented Feb 5, 2016

Okay, seems fine to me. We can add the connection-selecting behavior in some higher-level module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants