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
{{ message }}
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
I am using Unity 2022.1.14f1 with flurry 6.0.0 version. I have followed the steps as per github docs.
I am receiving FCM message, but notification is not shown.
@sahilpma Have you resolved your issues? Besides the above solutions, please also try the latest version 6.2.0 which fixed several notification migrations (Android 12/13 changed many notification requirements). Thanks!
@sahilpma Besides, though the Android developer docs say "recommended" to add POST_NOTIFICATIONS permission for Android 13 and above devices. As I found, it is actually "required" to add this permission! Please do add the following post notification permission to the manifest file:
And in your app, do use ActivityCompat.requestPermissions to request the permission if ContextCompat.checkSelfPermission returns PackageManager.PERMISSION_DENIED.
Examples codes,
private static List<String> PERMISSIONS;
static {
PERMISSIONS = new ArrayList<>();
PERMISSIONS.add(Manifest.permission.ACCESS_FINE_LOCATION);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
PERMISSIONS.add(Manifest.permission.POST_NOTIFICATIONS);
}
}
...
for (String permission : PERMISSIONS) {
if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_DENIED) {
// Simply request permissions if one of them is missing
ActivityCompat.requestPermissions(this, PERMISSIONS.toArray(new String[0]), PERMISSION_REQUEST);
break;
}
}
Activity
poting-oath commentedon Nov 28, 2022
In the github docs, you need to remove the Firebase sections. It overrides Flurry's settings.
I.e., replace/remove the following 2 sections.
com.unity3d.player.UnityPlayerActivityinstead ofcom.google.firebase.MessagingUnityPlayerActivity.poting-oath commentedon Apr 12, 2023
@sahilpma Have you resolved your issues? Besides the above solutions, please also try the latest version 6.2.0 which fixed several notification migrations (Android 12/13 changed many notification requirements). Thanks!
poting-oath commentedon May 30, 2023
@sahilpma Besides, though the Android developer docs say "recommended" to add
POST_NOTIFICATIONSpermission for Android 13 and above devices. As I found, it is actually "required" to add this permission! Please do add the following post notification permission to the manifest file:And in your app, do use
ActivityCompat.requestPermissionsto request the permission ifContextCompat.checkSelfPermissionreturnsPackageManager.PERMISSION_DENIED.Examples codes,