How to create custom Push Notification for my Own App?

前端 未结 3 1090
后悔当初
后悔当初 2021-02-02 16:59

I want to make my own Push Notification that works for my Own App. I know that i have to manage all that threw the Web-Service. But i am wonder about how to make that push Notif

3条回答
  •  离开以前
    2021-02-02 17:59

    The easiest way to do it is using Urban Airship - http://urbanairship.com/

    Check all the guides/docs on their site, as they explain everything very well, you'll need to register with Google for a C2DM auth token, and set up a free account with Urban Airship. Then it's just a case of configuring you manifest and a few other classes. Dig around in both the API docs and the guide. The urban airship jars have very good support for logging too, so if you can't get it working, check logcat and this will usually give you a good description of why it's failing.

    You can also do some other cool stuff like use the notification to trigger running some code etc.

    The notifications can be sent from Urban Airships site/UI, or via a JSON payload via a HTTP POST request from your web server to Urban Airship.

    Without Urban airship, your stuck creating loads of server infrastructure, Urban Airship has a very generous free package (1000000 free notifications!) and also supports cross platform, so you could send notifications to the Android, BB and iOS versions of your apps from one place.

提交回复
热议问题