解析:从应用程序发送推送通知

6

我想知道如何从我的Android应用程序直接向使用我的应用程序的其他所有人发送Parse推送通知。这可能吗?


您可以使用GCM推送通知来实现此功能。[http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/] - AnAndroid
请使用以下链接:http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/,了解如何使用Google云消息传递(GCM)、PHP和MySQL实现Android推送通知。 - Harshit Rathi
2个回答

13

如果您想使用Parse,请前往Parse控制台,在那里您将看到推送设置,其中包括客户端推送设置。

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

正是我所需要的。谢谢! - Aashir
你能否在应用内安排时间表? - johnrao07

1

链接已损坏。 - Hudi Ilfeld

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接