[wordpress插件] All push notification for WPWP的所有推送通知

wordpress 插件 文章 2020-02-16 06:40 594 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

All push notifications for WP is useful plugin to send push notification to iOS and Android devices using WordPress integration.User can send push notifications to iOS and Android with custom Editor from wp-admin and even When admin publish a new post/page

所有WP的推送通知都是有用的插件,可以使用WordPress集成将推送通知发送到iOS和Android设备。用户可以使用wp-admin中的自定义编辑器甚至在admin发布新帖子/页面时将推送通知发送到iOS和Android设备。

and even new comment is added to any post.

甚至新评论都会添加到任何帖子中。

Key Features

主要功能

All push notifications for WP supports following environments:

所有WP的推送通知都支持以下环境:

    • Apple Push Notification service (APNs)
    • Apple推送通知服务(APN)

    • Google Cloud Messaging (GCM)
    • Google Cloud Messaging(GCM)

    • Firebase Cloud Messaging (FCM)
    • Firebase云消息传递(FCM)

    By using this plugin you can:

    使用此插件,您可以:

      1. Send push notification to WordPress users selectively.
      2. 选择性地向WordPress用户发送推送通知。

      3. Send push notification to users when new post is published or when new comment is added to the post (administrator user)
      4. 发布新帖子或向帖子添加新评论时(管理员用户)向用户发送推送通知

      Important note

      重要提示

      To send push notification to android devices, you will need API Key from Google GCM platform.

      要将推送通知发送到android设备,您将需要Google GCM平台的API密钥。

      To send push notification to ios devices, you will need pem certification file from Apple APNs.

      要将推送通知发送到ios设备,您将需要Apple APN中的pem认证文件。

      For registering any device / user for push noficiation, it is required to integrate ‘register’ api in mobile application.

      要注册任何设备/用户以进行推送,需要在移动应用程序中集成“ register” api。

      Register API is part of the plugin only i.e. it is not third party API.

      注册API仅是插件的一部分,即不是第三方API。

      It also means that all device token data is maintained in your wordpress application database only.

      这也意味着所有设备令牌数据仅在您的wordpress应用程序数据库中维护。

      Its basic use is to gather device token of respective iOS and Android devices so that push notifications can be sent from wordpress.

      它的基本用途是收集各个iOS和Android设备的设备令牌,以便可以从wordpress发送推送通知。

      More details about the same has been given in FAQ section.

      常见问题部分中提供了有关此内容的更多详细信息。

      From the device app, it is required to send additional headers information so that device is recognized by Google Cloud Messaging (GCM) and Apple Push Notification service (APNs)

      需要从设备应用发送其他标头信息,以便Google Cloud Messaging(GCM)和Apple Push Notification Service(APN)识别设备

      Following headers are required:

      以下标头是必需的:

        1. device_token: It will be the unique identifier provided by operating system to device.
        2. device_token :它将是操作系统提供给设备的唯一标识符。

        3. os_type: The type of device os – Use android for Android and ios for iOS devices.
        4. os_type :设备操作系统的类型–对于Android使用 android ,对于iOS设备使用 ios

        Arbitrary section

        任意部分

        Que) How to implement the device token and os type.

        Que)如何实现设备令牌和os类型。

        Is it in the web header source code OR in the app source code?

        是在网页标题源代码中还是在应用程序源代码中?

        .

        Need example API URL?S and parameters to register the device_token.

        需要示例API URL?S和参数来注册device_token。

        Ans -Please follow the below steps to achieve the pushnotificaiton in your mobile devices successfully

        答案-请按照以下步骤成功在您的移动设备中实现推送通知

        - Activate Push Notifications for WP through the Plugins menu in WordPress.when you active the plugin the plugin will add 2 new tables in your wordpress database like 'all_pushnotification_logs' , 'all_pushnotification_token' .

         -通过WordPress中的Plugins菜单激活WP的推送通知。当您激活插件时,该插件将在您的wordpress数据库中添加2个新表,例如'all_pushnotification_logs','all_pushnotification_token'。

        Please make sure that those tables are exist in your current activated Database.

        请确保这些表存在于当前激活的数据库中。

        - Set the settings as per your requirement through wp-admin part of plugin.

        -通过插件的wp-admin部分根据您的要求设置设置。

        - please add FCM/GCM key if you want to pushnotification for android and Please upload the .pem certificate if you want pushnotifcaiton for ios.plese refer http://stackoverflow.com/questions/21250510/generate-pem-file-used-

        -如果要为Android进行pushnotification,请添加FCM / GCM密钥;如果要为iOS进行pushnotifcaiton,请上载.pem证书。请参考http://stackoverflow.com/questions/21250510/generate-pem-file-used-

        to-setup-apple-push-notification for .pem file.

        .pem文件的to-setup-apple-push-notification。

        Now ,

        现在,

        - There are two main aspects first - wordpress website which run on desktop / laptop which have a wp-admin.

        -首先有两个主要方面-可以在具有wp-admin的台式机/笔记本电脑上运行的wordpress网站。

        Second - the application which you created for mobile devices with ios/android. 

        其次-您使用ios / android为移动设备创建的应用程序。 

        - To send a push notification to a device, we must need to know its token (or Device ID) which has to be provided by the app through this API.

        -要向设备发送推送通知,我们必须知道其令牌(或设备ID),该令牌必须由应用通过此API提供。

        And the type of operating sytem which mobile is useing . 

        以及手机使用的操作系统的类型。 

        - For Registering a device you need to follow steps. 

        -要注册设备,您需要执行以下步骤。 

        - First of all you have to insert the mobile device type and mobile device token of each devices in this table.

        -首先,您必须在此表中插入每个设备的移动设备类型和移动设备令牌。

        For that you need to pass the device type and devices token in parameters from your application services like login , register service to the URL " http://yourwordpresssite/apnwpegister " .

        为此,您需要在应用程序服务(例如,登录名)中的参数中传递设备类型和设备令牌,将服务注册到URL“ http:// yourwordpresssite / apnwp / register”。

        It means whenever user register or login from your application you need to pass that particular mobile's token and mobile operation system type android / ios. 

        这意味着每当用户从您的应用程序注册或登录时,您都需要传递该特定移动设备的令牌,并且移动操作系统类型为android / ios。 

        - 'wp-json' or 'WordPress REST API' that shipped as part of WordPress core from version 4.4 Later.

        -'wp-json'或'WordPress REST API',它是4.4版以后的WordPress核心的一部分。

        URL structure:

        网址结构:

        http://yourwordpresssite/wp-json/apnwpegister

        http:// yourwordpresssite / wp-json / apnwp / register

        Method: GET

        方法:GET

        Parameters:

        参数:

        device_token (string): token given by APNs or FCM identifying the device, often called device ID.

        device_token(字符串):由APN或FCM给出的用于标识设备的令牌,通常称为设备ID。

        os_type (string): operating system.

        os_type(字符串):操作系统。

        It must be ios or android (case sensitive).

        它必须是ios或android(区分大小写)。

        user_email_id (string, optional): the user email address which is login from your mobile app.

        user_email_id(字符串,可选):从移动应用程序登录的用户电子邮件地址。

        Examples:

        例子:

        http://yourwordpresssite/wp-json/apnwpegister?os_type=android&user_email_id=androidmobile@40test.com&device_token=1234567890

        http:// yourwordpresssite / wp-json / apnwp / register?os_type=android&user_email_id=androidmobile@40test.com&device_token=1234567890

        Refere Document:

        参考文件:

        - more details how to pass the parameters in Android - https://www.codementor.io/flame3/tutorials/send-push-notifications-to-android-with-firebase-du10860kb

        -更多详细信息如何在Android中传递参数-https://www.codementor.io/flame3/tutorials/send-push-notifications-to-android-with-firebase-du10860kb

        - more details how to pass the parameters in ios - https://www.raywenderlich.com/123862/push-notifications-tutorial

        -更多详细信息如何在ios中传递参数-https://www.raywenderlich.com/123862/push-notifications-tutorial

        - After passing the parameters when user successfully register or login please check the database table `all_pushnotification_token` and check the token and OS type is inserted successfully or not.

        Translations

        -在用户成功注册或登录后传递参数后,请检查数据库表“ all_pushnotification_token”,并检查令牌和OS类型是否成功插入。

        翻译

        * English – default, always included

        *英文-默认,始终包含

安装步骤

Minimum Requirements

最低要求

    • WordPress 4.4 or greater
    • WordPress 4.4或更高版本

    • PHP version 5.2.4 or greater
    • PHP版本5.2.4或更高版本

    • MySQL version 5.0 or greater
    • MySQL 5.0或更高版本

      1. Download “All push notification for WP” as zip file from the plugin download link.
      2. 从插件下载链接中以zip文件下载“ WP的所有推送通知”。

      3. Extract the zip file and upload ‘all-push-notifications-for-wp’ to /wp-content/plugins/ directory
      4. 解压缩zip文件,然后将“ all-push-notifications-for-wp”上传到 / wp-content / plugins / 目录

      5. Activate the plugin from admin panel plugin listing screen.
      6. 从管理面板插件列表屏幕激活插件。

      7. You can now configure plugin from setting screen which appears in admin menu.
      8. 您现在可以从管理菜单中显示的设置屏幕配置插件。

下载地址

https://downloads.wordpress.org/plugin/all-push-notification.1.5.3.zip

https://downloads.wordpress.org/plugin/all-push-notification.1.5.3.zip

-EOF-

AI助手支持GPT4.0