You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're having the problem that the notifications always gets delivered for both iOS and Android but on Android there is no sound/display/vibration when the notification is received. Oddly enough it is working on a very old Android phone we are testing with but with newer phones the notification just gets "silently" delivered i.e. shows up in the Android navbar but the user doesn't see/hear it unless opening the screen.
Could somebody somebody who has Android notifications working (with sound/vibration/screen popup) share payload/snippet of what is being sent to make this work? We're using .NET Framework 4.8
The text was updated successfully, but these errors were encountered:
Hi, just a guess - don't forget to grant notification permission for newer androids.
Checking code in Java:
public static boolean CheckIfHaveNotificationPermission()
{
// This is only necessary for API level >= 33 (TIRAMISU)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
{
if (ContextCompat.checkSelfPermission(MyApplication.getContext(), Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED)
return false;
}
return true;
}
We're having the problem that the notifications always gets delivered for both iOS and Android but on Android there is no sound/display/vibration when the notification is received. Oddly enough it is working on a very old Android phone we are testing with but with newer phones the notification just gets "silently" delivered i.e. shows up in the Android navbar but the user doesn't see/hear it unless opening the screen.
Could somebody somebody who has Android notifications working (with sound/vibration/screen popup) share payload/snippet of what is being sent to make this work? We're using .NET Framework 4.8
The text was updated successfully, but these errors were encountered: