简体   繁体   English

解析:从app发送推送通知

[英]Parse: send push notifications from app

I am wondering how to send a parse push notification directly from my android app to evryone else using my app. 我想知道如何使用我的应用程序直接从我的Android应用程序发送解析推送通知到evryone别人。 Is it possible to do this? 是否有可能做到这一点?

If you want to use Parse , Go to parse dashboard and there you will see the settings for push where you will find this client-side push setting. 如果你想使用Parse ,转到解析仪表板 ,那里你会看到push的设置,你会在那里找到这个客户端推送设置。

ParsePush push = new ParsePush();
String message = "Client message" + Integer.toString(i++);
push.setChannel("Channel Name");
push.setMessage(message);
push.sendInBackground();

You can send push notification from client side as metioned by @Dmitry 如@Dmitry所述,您可以从客户端发送推送通知

However parse strongly recommend not to use that feature [Security vulnerabilites issues] 但是解析强烈建议不要使用该功能[安全漏洞问题]

Parse developers recommend " Cloud code " to send push notification to other users from your app. Parse开发人员建议使用“ 云代码 ”从您的应用程序向其他用户发送推送通知。

Please read this http://blog.parse.com/learn/engineering/the-dangerous-world-of-client-push/ 请阅读http://blog.parse.com/learn/engineering/the-dangerous-world-of-client-push/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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