-
Notifications
You must be signed in to change notification settings - Fork 30
docs: Update docs #849
docs: Update docs #849
Conversation
Codecov Report
@@ Coverage Diff @@
## master #849 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 48 51 +3
Lines 9470 9504 +34
=====================================
+ Hits 9470 9504 +34
Continue to review full report at Codecov.
|
docs/apns.rst
Outdated
"aps": { | ||
"alert": "notification title", | ||
"content_available": 1 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a comma here.
.. code-block:: json | ||
|
||
{ | ||
"aps": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why aps instead of apns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because Apple. aps
is a reserved name for the dictionary of meta values.
docs/index.rst
Outdated
@@ -22,7 +22,7 @@ the `Mozilla Push Service architecture diagram`_. This push service uses | |||
websockets to talk to Firefox, with a Push endpoint that implements the | |||
:term:`WebPush` standard for its :ref:`http` API. | |||
|
|||
Autopush API's | |||
Autopush APIs | |||
============== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Length usually needs to match the text above.
@@ -135,7 +135,7 @@ Reference | |||
License | |||
======= | |||
|
|||
``autopush`` is offered under the Apache License 2.0. | |||
``autopush`` is offered under the Mozilla Public License 2.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that's weird, wonder why that was there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few things I found after looking at sphinx rendering
docs/apns.rst
Outdated
*aps* is reserved as a sub-dictionary. All other *key*: *value* slots are open. | ||
|
||
In addition, you must specify the following headers: | ||
* *apns-id*: A lowercase, dash formatted UUID for this message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed an extra newline here to make this section render nicely
docs/apns.rst
Outdated
* *apns-id*: A lowercase, dash formatted UUID for this message. | ||
* *apns-priority*: Either **10** for Immediate delivery or **5** for delayable delivery. | ||
* *apns-topic*: The bundle ID for the recipient application. This must match the bundle ID of | ||
the AppID used to create the *"Apple Push Services:..."* certificate. It usually has the format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few of these hanging lines need indents to render nicely too
docs/apns.rst
Outdated
----------------------- | ||
|
||
APNS returns a status code and an optional JSON block describing the error. A list of `these | ||
responses are provided in the APNS documentation <https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html#//apple_ref/doc/uid/TP40008194-CH101-SW18>`_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this link seems dead
Fixes typos, spilling, and other minor errors.
Fixes typos, spilling, and other minor errors.