What is causing these warnings in GRADLE ?
Warning:com.urbanairship.push.notifications.NotificationFactory: can't find referenced method 'android.app.NotificationChannel getNotificationChannel(java.lang.String)' in library class android.app.NotificationManager
Warning:com.urbanairship.push.notifications.NotificationFactory: can't find referenced class android.app.NotificationChannel
Warning:com.urbanairship.push.notifications.NotificationFactory: can't find referenced method 'void createNotificationChannel(android.app.NotificationChannel)' in library class android.app.NotificationManager
Warning:com.urbanairship.push.notifications.NotificationFactory: can't find referenced class android.app.NotificationChannel
Warning:there were 4 unresolved references to classes or interfaces.
Warning:there were 2 unresolved references to library class members.
I am using 8.8.4 sdk and gradle 3.4.1
Is this from me using something that is not in the library when I extend the NotificationFactory I get the method to override. What am I doing wrong ?
---
@Nullable
@Override
public Notification createNotification(@NonNull PushMessage message, int notificationId) {
//builds the notification
NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext())
.setContentTitle("TITLE") // TODO LOOK AT Current Design for messages .
.setContentText(message.getAlert())
.setAutoCancel(true)
.setSmallIcon(R.drawable.notification_icon);
// Notification Action buttons
builder.extend(new ActionsNotificationExtender(getContext(), message, notificationId));
return builder.build();
}
Comments
4 comments