Closed SolidTears closed 8 years ago
on different device, theres no error popup, but the notification didnt show up at all
got this error instead on the logcat : I/ActivityManager( 1020): Start proc BundleID for broadcast BundleID/net.agasper.unitynotification.UnityNotificationManager: pid=32729 uid=10283 gids={50283, 3003} D/HyLog (32729): I : /data/font/config/sfconfig.dat, No such file or directory (2) D/HyLog (32729): I : /data/font/config/dfactpre.dat, No such file or directory (2) D/HyLog (32729): I : /data/font/config/sfconfig.dat, No such file or directory (2) I/dalvikvm(32729): Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method net.agasper.unitynotification.UnityNotificationManager.SetNotification W/dalvikvm(32729): VFY: unable to resolve virtual method 92: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V D/dalvikvm(32729): VFY: replacing opcode 0x6e at 0x006f I/dalvikvm(32729): Could not find method android.app.Notification$Builder.setColor, referenced from method net.agasper.unitynotification.UnityNotificationManager.onReceive W/dalvikvm(32729): VFY: unable to resolve virtual method 218: Landroid/app/Notification$Builder;.setColor (I)Landroid/app/Notification$Builder; D/dalvikvm(32729): VFY: replacing opcode 0x6e at 0x00e5 D/dalvikvm(32729): Trying to load lib /data/app-lib/BundleID-1/libmain.so 0x41d8ada0 D/dalvikvm(32729): Added shared lib /data/app-lib/BundleID-1/libmain.so 0x41d8ada0 W/System.err(32729): java.lang.NullPointerException W/System.err(32729): at net.agasper.unitynotification.UnityNotificationManager.onReceive(UnityNotificationManager.java:89) W/System.err(32729): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2429) W/System.err(32729): at android.app.ActivityThread.access$1700(ActivityThread.java:142) W/System.err(32729): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1279) W/System.err(32729): at android.os.Handler.dispatchMessage(Handler.java:102) W/System.err(32729): at android.os.Looper.loop(Looper.java:136) W/System.err(32729): at android.app.ActivityThread.main(ActivityThread.java:5118) W/System.err(32729): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err(32729): at java.lang.reflect.Method.invoke(Method.java:515) W/System.err(32729): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) W/System.err(32729): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606) W/System.err(32729): at dalvik.system.NativeStart.main(Native Method) I/Process (32729): Sending signal. PID: 32729 SIG: 9 I/ActivityManager( 1020): Process BundleID (pid 32729) has died. D/ActivityManager( 1020): resumeTopActivityLocked: Top activity resumed ActivityRecord{4292f968 u0 com.lge.launcher2/.Launcher t1}
What's android version do u use ? Did you try example project on that device ?
I have same issue. Crash, when notification tries to show up while app is not running. I'm using 5.1.1 Android version on LG Nexus 4 phone. Example project crashes as well.
What's Unity version ?
Right now I'm using Unity version 5.2.3p1
Hi! Thx for great plugin! U mast modify AndroidManifest.xml. I think so. Pls fix that
Try new version, and open new issue if doens't fixed
Hi Agasper, I've updated latest plugin, and having issue opening the app from notification, can you help resolve this. Thanks, Tanveer
hey, i got a problem when try launching notif when the app is not active when i launch the app the notif can come out fine, but not when its off i use unity 5.2.3 , and the got the exact manifest like yours i only run the SendRepeatingNotification once on start function with 10 seconds delay
heres the logcat: --------- beginning of /dev/log/system W/BroadcastQueue( 478): Unable to launch app bundleIDhere/10183 for broadcast Intent { flg=0x14 cmp=bundleIDhere>/net.agasper.unitynotification.UnityNotificationManager (has extras) }: process is bad V/AlarmManager( 478): triggered: flg=0x14 V/AlarmManager( 478): Pkg: bundleIDhere W/BroadcastQueue( 478): Unable to launch app bundleIDhere/10183 for broadcast Intent { flg=0x14 cmp=bundleIDhere>/net.agasper.unitynotification.UnityNotificationManager (has extras) }: process is bad V/AlarmManager( 478): triggered: flg=0x14 V/AlarmManager( 478): Pkg: bundleIDhere W/BroadcastQueue( 478): Unable to launch app bundleIDhere/10183 for broadcast Intent { flg=0x14 cmp=bundleIDhere>/net.agasper.unitynotification.UnityNotificationManager (has extras) }: process is bad V/AlarmManager( 478): triggered: flg=0x14 V/AlarmManager( 478): Pkg: bundleIDhere
how do i fix it? thank you in advance