Comments (2)
I found the issue - program can't find program icon for notification.
You're using unity 5.2 so you must seen this
"OBSOLETE - Providing Android resources in Assets/Plugins/Android/res is deprecated, please move your resources to an Android Library"
So that's why the plugin doesn't work.
In Java source code you could see
builder.setSmallIcon(res.getIdentifier(s_icon, "drawable", context.getPackageName()));
That's the reason.
For more information about this piece of code please visit the website below, you'll understand what I'm talking about.
http://answers.unity3d.com/questions/398209/android-notification-in-a-plugin.html
If you provide a static int here such as "0x7f020000"
builder.setSmallIcon(0x7f020000);
You'll notice the plugin worked.
I'm trying to find a new way to get game icon now....
update:
try this:
builder.setSmallIcon(res.getIdentifier("app_icon", "drawable", context.getPackageName()));
from unity-android-notifications.
You can build plugin with you own icons, or still get obsolete warning
from unity-android-notifications.
Related Issues (20)
- BigIcon HOT 1
- Assets/Plugins/Android/res is deprecated
- Passing string containing Emoji crashes Android
- Null Pointer Exception - Crash HOT 3
- apilevel 19 not find class HOT 3
- Not working for me!!! HOT 6
- It works perfectly, It just need too fixes
- BigTextStyle HOT 3
- How to import this plugin properly into my existing complex project? HOT 3
- Can I use android support 25.2.0 for it?
- App is not opening on notification action
- Actions HOT 2
- iOS default sound HOT 2
- iOS crash on scheduleNotification OnApplicationFocus
- Android Exception:java.lang.IllegalArgumentException
- Dont work in unity3d 64bit HOT 2
- AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='SetNotification' HOT 1
- java.lang.ClassNotFoundException: net.agasper.unitynotification.UnityNotificationManager
- Deprecated? HOT 2
- Resources$NotFound exception on start (Android 7.0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-android-notifications.