2
0

Zend_Mobile_Push-Introduction.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.mobile.push.introduction">
  4. <title>Zend_Mobile_Push Introduction</title>
  5. <para>
  6. Zend_Mobile_Push provides the ability for sending push notifications to
  7. the vendor specific notification servers. Currently this list includes
  8. APNS (iTouch/iPad/iPhone), GCM (Google Android) and MPNS (Windows Phone).
  9. </para>
  10. <para>
  11. Since many of the underlying implementations vary; please see each
  12. specific notification class for usage details. Outlined below are
  13. details on the common functionality that exists between the
  14. implementations.
  15. </para>
  16. <sect2 id="zend.mobile.push.common-functionality">
  17. <title>Common Functionality</title>
  18. <para>
  19. While each individual push notification adapter contains specific
  20. functionality; there are commonalities that have been attempted to
  21. make implementation of the adapters easier.
  22. </para>
  23. <table id="zend.mobile.push.common-functionality.adapters">
  24. <title>Adapters</title>
  25. <tgroup cols="2" align="left" colsep="1" rowsep="1">
  26. <thead>
  27. <row>
  28. <entry>Method</entry>
  29. <entry>Description</entry>
  30. </row>
  31. </thead>
  32. <tbody>
  33. <row>
  34. <entry>close</entry>
  35. <entry>Allows you to close an already open connection;
  36. if no connection is open will simply default the
  37. state.</entry>
  38. </row>
  39. <row>
  40. <entry>connect</entry>
  41. <entry>Generally only utilized for APNS; however,
  42. assists in maintaining the connection state.</entry>
  43. </row>
  44. <row>
  45. <entry>isConnected</entry>
  46. <entry>Allows you to see if you are already connected.</entry>
  47. </row>
  48. <row>
  49. <entry>send</entry>
  50. <entry>Allows you to pass in a message to send. This
  51. will send the message to the corresponding system.
  52. Note that the send method for APNS will lazily connect
  53. if you are not already connected.</entry>
  54. </row>
  55. <row>
  56. <entry>setOptions</entry>
  57. <entry>Allows you to set options in bulk for the
  58. adapters.</entry>
  59. </row>
  60. </tbody>
  61. </tgroup>
  62. </table>
  63. <para>
  64. Each individual message varies in implementation; again like
  65. adapters there are some commonalities that have been addressed to
  66. ensure consistency between messages.
  67. </para>
  68. <table id="zend.mobile.push.common-functionality.messages">
  69. <title>Messages</title>
  70. <tgroup cols="2" align="left" colsep="1" rowsep="1">
  71. <thead>
  72. <row>
  73. <entry>Method</entry>
  74. <entry>Description</entry>
  75. </row>
  76. </thead>
  77. <tbody>
  78. <row>
  79. <entry>(set|get)Token</entry>
  80. <entry>Allows you to set or get the token or device id /
  81. unique id that is for any specific device. For APNS
  82. this is the device ID, for GCM it is the registration
  83. id and for MPNS it equates to the push url.</entry>
  84. </row>
  85. <row>
  86. <entry>(set|get)Id</entry>
  87. <entry>Sets the distict message id that you would give a
  88. message.</entry>
  89. </row>
  90. <row>
  91. <entry>setOptions</entry>
  92. <entry>Allows you to set a messages options in bulk.</entry>
  93. </row>
  94. <row>
  95. <entry>validate</entry>
  96. <entry>Does a <emphasis>very</emphasis> simple test on
  97. the message to ensure that it can be sent through
  98. the adapter.</entry>
  99. </row>
  100. </tbody>
  101. </tgroup>
  102. </table>
  103. </sect2>
  104. </sect1>