Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by Whelandrew · Oct 15, 2015 at 07:04 PM · androidparseiconspush notification

Changing icon for Android Push Notifications on Server-side

We are using UTNotifications for our local push notifications. Using Android standard, we have put in a replacement icon to appear on devices when receiving a push.

The issue is that the same function is not working for our server-side pushes from Parse. We added this line to our manifest

 <meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/noti_icon"/>

And added an icon to the "/drawable/"folder, but it only retrieves the icon for local pushes. Using Unity and Parse, what am I missing that gets this to work correctly?

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 Yuriy-Ivanov · Oct 16, 2015 at 02:38 AM

Hi @Whelandrew,

Please correct me if I'm wrong, but as far as I understand you use UTNotifications at client side for both local and push notifications, don't you? Because if yes, you don't need that <meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/noti_icon"/> block in the manifest, UTNotifications manage icons in a different way. If no then, first, I recommend you to use UTNotifications for push notifications as well. Second, I can't say much about the Parse-related issues, but possible problem is a location of the "drawable" folder: Unity since the version 5.2 ignores Assets/Plugins/Android/res folder, you have to put your drawables into one of the native plugins' folder, f.e. UTNotifications use Assets/Plugins/Android/UTNotifications/res/drawable (but you don't have to do it manually with UTNotifications, everything is configured using its Unity editor extension).

And, yeah, if you use UTNotifications on the client side for push notifications, setting a custom icon is being done using notification profiles. You can find more about their usage in the UTNotifications' manual: Edit -> Project Settings -> UTNotifications -> Manual button, section "Using Notification Profiles (sounds & icons settings)".

Best regards,

Yuriy, Universal Tools team.

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 Whelandrew · Oct 16, 2015 at 07:25 PM

The upside is that UTNotifications is working just how we need it to. :)

We are now implementing a Prime31 plugin to help manage push notifications when they are received from the server-side of our game.

We are also still on Unity 4.5.6f so we must apply older techniques to most of our Unity problems. :p

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 · Oct 17, 2015 at 11:56 AM 0
Share

Of course it's up to you, but UTNotifications support Unity 4.5.

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

37 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 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

Android push notification white icon 0 Answers

Send push notification once in a week with Firebase 0 Answers

How to get Google cloud message after offline? 0 Answers

Error: Input string was not in the correct format - HELP! 0 Answers

pubnub push notifications 0 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