Comments (5)
Please read the F.A.Q. Generate a new unique id for every new notification
from unity-android-notifications.
You probably did't understand me. I don't create here a few notifications. I create one. But instead of it getting crash. For the test run application and exit. After 10 seconds, instead of the notification get crash. If you delete this line LocalNotification.CancelNotification(1); that all is well.
Ie, can not be called:
LocalNotification.CancelNotification(1);
LocalNotification.SendNotification(1, ...)
May be need check for pending intent is already running before cancel?
Intent checkIntent = new Intent(currentActivity, UnityNotificationManager.class);
alarmUp = (PendingIntent.getBroadcast(currentActivity, id, checkIntent, PendingIntent.FLAG_NO_CREATE) != null);
from unity-android-notifications.
Comment CancelNotification and try again
from unity-android-notifications.
It seems that you don't want understand me, because you don't know how to fix this error. I found a way around this problem. Had to modify the LocalNotification class.
Your plugin there is no way to cancel all notifications. If you store all unique notifications identifiers, and cancel only scheduled notification then cancelAllNotifications method is easy to write and this fatal exception will not occur!
from unity-android-notifications.
You can write any method what you want, it's open source project
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.