Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by AndreasX12 · Jun 13, 2015 at 10:03 PM · androidiosremotepushnotifications

Android & iOS Push Notifications

Hi. I am developing an application in Unity 3D 5 for Android and iOS. I need the users to be able to sign up for push (remote) notifications. I also need to send the push message from a PHP file. Let's say 3 out of 5 users have created a Search. It could be something like "Cars for sale". The PHP file will then determine whether or not to send a push message.

In short: I know how to do the PHP stuff, but what I need to know is how to do the following:

Register device token to my hosted MySQL. Add Searches (values) next to the device token in the MySQL table. Send push notifications (to both platforms) from a hosted PHP script.

I have tried the following:

PushWoosh (not able to individually send push) ECPN (outdated, no response from developer) App42 (not able to individually send push, or at least I could not figure out how) Parse (Builded app crashes on all devices)

Best regards, Andreas.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Voxel-Busters · Aug 11, 2015 at 11:42 AM

@AndreasX12

For using notifications,

  1. GCM(Play Store targeted products) will be used on Android and APNS on iOS

  2. Once you launch your app, you will register for respective service and get a token after registration

  3. Once you get the token/RegistrationID , you will pass it to your server and here you need to save it to the players profile for easy access later.

  4. For sending a notification to an user, Get the token/registrationID assigned to the player profile and send the request with the payload to GCM , and APNS on Android, iOS respectively.

  5. Now GCM and APNS will contact the device and push the payload.

  6. On receiving payload, on Android you need to do handle on your own to display it where as on iOS its automated.

Hope it gave a clear idea on how it works.

Adding to this, We developed Cross Platform Native Plugins to simplify the whole process of handling local and remote notifications on iOS and Android with a unified API interface for iOS and Android(play store) platforms. It has many other features along with notifications and comes with a unified API for both iOS and Android.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Yuriy-Ivanov · Jun 14, 2015 at 02:03 PM

Hey Andreas,

You can try this new asset: http://forum.unity3d.com/threads/released-utnotifications-professional-cross-platform-push-notifications-and-more.333045/ It can do all you need and works fine with Unity 5. Its demo server is written in Java, but as it uses just native push notifications API for each supported platform (iOS, Google Play based Android devices and Amazon Android devices) you can use a number of PHP examples or ready solutions. I'm one of the UTNotifications developers and will be happy to help you with it.

Best regards, Yuriy.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by ajaybhojani · May 27, 2016 at 05:28 AM

Hi .. i have purhcased UTPush Notification.(https://www.assetstore.unity3d.com/en/#!/content/37767). And running in unity4.6.1f1 with c#. Want to integrate push notification for android and ios. I am following same step as per manual and read whole manual, but confused on server setup. "Demo server" is working in my local pc. Integrated for ios. when I am sending notification from ipad , it gives me output in demo server- Eclipse as "Notified client 1", and so On. Now I want to send notification to all ipad devices who has installed the app then how its possible ? Demo server is running on local machine. 1. So here question is how to setup these demo server file on my own server ? 2.Or if it is possible with any other third party server service , How it can be done ? 3. Should i have to need to write my own server code that manages all these server side stuff for push notification? If yes then give me some hint

Hope you will get my points. Thanks

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Yuriy-Ivanov · May 28, 2016 at 10:42 AM 0
Share

Hi ajaybhojani,

I already answered you both in the forum and by email. Once more, just to clarify. DemoServer is not supposed to be used as a production server solution. You can use one of many libraries (a list of server libraries you can use I already sent you by email) or services (f.e. https://www.pushwoosh.com/, https://www.pubnub.com/, https://onesignal.com, https://parse.com/products/push or https://pushover.net/) to send push notifications. It's up to you to implement server side (using libraries/services documentation and DemoServer just as an example), as it's absolutely project specific thing.

Feel free to ask any specific questions by email to get support as fast as possible.

Best regards, Yuriy, Universal Tools $$anonymous$$m.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Push Notifications iOS & Android Vuforia & UrbanAirship 0 Answers

Push Notifications (to Specific devices) 1 Answer

Remote Settings Unity 2017.2.1f1 Platform Segmentation always return All Current Users 1 Answer

Reading notifications from Unity or knowing if notifications are enabled 0 Answers

Local notification with closed app 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges