Uygulamamı kısa bir süre önce API 26'ya güncelledim ve bildirimler artık kod değiştirilmeden çalışmıyor.Android Bildirimi API'da Gösterilmiyor 26
val notification = NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_notification)
.setContentTitle("Title")
.setContentText("Text")
.build()
(getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).notify(1, notification)
Neden çalışmıyor? Farkında olmadığım API'da bir değişiklik oldu mu? the documentation itibaren
'targetSdkVersion' nedir? – CommonsWare
@CommonsWare 'targetSdkVersion' 26,' minSdkVersion' 21, 'compileSdkVersion' 26 ve' buildToolsVersion' 26.0.0. Ben de Android O DP3 çalıştıran bir telefonda çalıştırıyorum. – Aaron