Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"app has stopped" pushing notif when the app already quit #10

Closed
Solid-Metal opened this issue Dec 1, 2015 · 8 comments
Closed

"app has stopped" pushing notif when the app already quit #10

Solid-Metal opened this issue Dec 1, 2015 · 8 comments

Comments

@Solid-Metal
Copy link

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

@Solid-Metal
Copy link
Author

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}

@Agasper
Copy link
Owner

Agasper commented Dec 2, 2015

What's android version do u use ?
Did you try example project on that device ?

@zory
Copy link

zory commented Dec 4, 2015

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.

@Agasper
Copy link
Owner

Agasper commented Dec 4, 2015

What's Unity version ?

@zory
Copy link

zory commented Dec 4, 2015

Right now I'm using Unity version 5.2.3p1

@JaroslavL
Copy link

Hi! Thx for great plugin! U mast modify AndroidManifest.xml. I think so. Pls fix that

@Agasper Agasper closed this as completed in 7eae001 Dec 9, 2015
@Agasper
Copy link
Owner

Agasper commented Dec 9, 2015

Try new version, and open new issue if doens't fixed

@TanveerakaRocker
Copy link

Hi Agasper,
I've updated latest plugin, and having issue opening the app from notification, can you help resolve this.
Thanks,
Tanveer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants