با سلام خدمت کاربران عزیز سایت یاهو ۹۸ YAHOO
اکثر دوستان مشکل نمایش نوتیفیکیشن در اندروید ۹ به بالا داشتن که با ساب زیر مشکلشون حل میشه
Dim NotificationInfo As NotificationBuilder NotificationInfo.Initialize NotificationInfo.SmallIcon = "icon" NotificationInfo.setActivity(Main) NotificationInfo.ContentTitle = "LuzHor" NotificationInfo.ContentText = Main.messagerecesive NotificationInfo.DefaultSound = True NotificationInfo.DefaultLight = True NotificationInfo.DefaultVibrate = True 'NotificationInfo.setProgress(100, 75, False) Dim P As Phone If P.SdkVersion >= 26 Then Dim Ctxt As JavaObject Ctxt.InitializeContext Dim Manager As JavaObject Manager.InitializeStatic("android.app.NotificationManager") Dim Channel As JavaObject Dim ChannelVisibleName As String = "My Channel" Channel.InitializeNewInstance("android.app.NotificationChannel", Array("MyChannelId1", ChannelVisibleName, Manager.GetField("IMPORTANCE_DEFAULT"))) Manager = Ctxt.RunMethod("getSystemService", Array("notification")) Manager.RunMethod("createNotificationChannel", Array(Channel)) Dim Jo As JavaObject = NotificationInfo Jo.RunMethod("setChannelId", Array("MyChannelId1")) End If NotificationInfo.Notify(1)
موفق باشید.