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 DijkeMark · Nov 26, 2012 at 09:46 AM · androidpushnotifications

Unity3d game does not receive push notifications

I am building a game using Unity3d, that is going to use the GCM service (which I wrote into a custom library). But here is my problem. This custom library works, as long as it is in a native android application.

The moment I put it in the Unity3d game and send a push notification, the device does not receive the push notification. I know the library is accessable, because I can read the debug logs in the logcat, that are from the library.

I think Unity3d somehow prevents the GCM service from running, thus preventing the device from receiving push notifications.

Is there anything I should know about Unity3d, that causes this problem? Or did someone had a similiar problem? Any help would be appriciated!

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by vishnu24 · Feb 27, 2015 at 12:38 PM

For Push Notification in Unity you have to write native plugin that will communication to native and send push Message when received in device.

ShepHertz also provide Unity Push plugin that will work on iOS and Android both. You can download ShepHertz Unity Plugin, and follow easy steps for Push Notification integration on iOS and Android device.

You can go through with ShepHertz Push Notification API, provides various API's for Push Notification across multiple platform.

Comment
Add comment · Show 2 · 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 Paulius-Liekis · Feb 27, 2015 at 12:46 PM 0
Share

The person who is asking has written a plugin, so he knows that he needs native plugin, so your answer doesn't help.

Your post is just an ad for the product.

avatar image vishnu24 · Feb 27, 2015 at 02:34 PM 0
Share

You can refer this as a reference and check where you are working wrong.

while changing Bundle Identifier may be you forget to change Android$$anonymous$$anfest.xml file in Android Plugin.

avatar image
0

Answer by Paulius-Liekis · Nov 26, 2012 at 04:19 PM

No, Unity should not do anything like that. We're using GCM in our project with Unity and it runs just fine. Are you sure you set up activities/AndroidManifest correctly?

Comment
Add comment · Show 2 · 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 elixir-bash · Feb 21, 2013 at 11:17 AM 0
Share

Hi is there a tutorial or any sample showing how this integration is doable ? Pls do let me know if there are ny other solutions for push notification in android -unity3d app

avatar image vishnu24 · Feb 27, 2015 at 02:35 PM 0
Share

Yes I have shared the tutorial with you in above step

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

13 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

Related Questions

Push Notifications iOS & Android Vuforia & UrbanAirship 0 Answers

Unity Android Push notification 1 Answer

Android & iOS Push Notifications 3 Answers

Mobile Notifications Icons on Android. 1 Answer

How to send local notification same hour everyday on Android ans iOS? 1 Answer


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