Closed suitable-hero closed 7 years ago
I have encountered the same issue ... The problem seems to be with the call setColor in the class CreateNotificationTask causing:
java.lang.NoSuchMethodError: No virtual method setColor(I)Landroid/support/v4/app/NotificationCompat$Builder; in class Landroid/support
/v4/app/NotificationCompat$Builder
After commenting the line it seems to be working fine
// Create notification
NotificationCompat.Builder builder = new NotificationCompat.Builder(_context)
.setContentTitle(contentTitle)
.setContentText(contentText)
.setTicker(tickerText)
.setSmallIcon(smallIconId)
.setLargeIcon(largeIcon)
.setSound(soundUri, AudioManager.STREAM_NOTIFICATION)
.setWhen(System.currentTimeMillis())
.setAutoCancel(true)
// .setColor(0xFF2DA9F9)
.setContentIntent(contentIntent);
I hope this helps!
Could you please give me a download link for your ANE file?
Have you read the readme? https://github.com/freshplanet/ANE-Push-Notification#installation It most likely won't work our of the box (in my case it didn't) ...
I can' unfortunately, the ane is modified and compiled for my environment. :( You have to compile it to match yours.
How can I compile ane ?
I just tested the new ANE updated 17 hours ago. Android 4.0.4 and the app still gives me the "Unfortunately, App has stopped" error message.
I got the token from GCM server, and after I send a push notification to my device, the app dies :(
Also, can you please add vibration and sound to this ANE? I managed to get vibration and sound working by using another ANE for GCM + adobe vibration ANE + default Flash sound. I can't get the WAKE_LOCK working. Notifications show on the device only if the app is in foreground or background, but if the app is closed from the background, I get zero notifications. Is this some limitation in the Adobe Air platform or the ANE? This is the ANE I'm talking about: https://www.as3gamegears.com/air-native-extension/android-gcm/
I need both iOS and Android ANE so if you could please fix this one, I will be happy to help with testing.