简体   繁体   中英

How to send push notifications from wordpress to android app?

I am using OneSignal to receive a notification, But I can't find out from the WordPress site to the android app. The app can receive notification from the dashboard to the android app it works great but I want a WordPress site to mobile app for every post.

OneSignal has a pretty good api and php SDK ( https://documentation.onesignal.com/reference/create-notification ) so you could just send the notification within the wp_insert_post hook. Make sure you only fire it when the post is created.

You can use the following WordPress plugin to send push notification to the android app when a new post is published on your WordPress site

https://github.com/dream-space/wp-fcm/

This plugin also helps you to send a custom notification to your android app users

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM