Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Push campaign not received #35

Open

Description

@DinaMMorad

when I send push campaign to test device token it works but when I start campaign I don't receive the notification

Activity

  1. poting-oath commented on May 16, 2023

    @poting-oath
    Collaborator

    @DinaMMorad Android 12 & 13 changed many Notification policies. These may be the reasons why you did not receive the notification on devices that run on newer Android platforms.

    Flurry SDK 14.2.0 resolved these issues on these newer Android platforms. Please upgrade Flurry SDK to see whether it resolves your issues or not.

    https://developer.yahoo.com/flurry/docs/releasenotes/android/
    Android SDK Release Notes
    Version 14.2.0 - 03/14/2023

    • Fix for Flurry Push notification not shown on the Android 13 and above devices.
    • Fix for clicking on Flurry Push notification does not bring back apps to foreground on the Android 12 and above devices.
    • A couple minor bug fixes.

    All add the post notification permission to the manifest file: (required by Android 13)
    uses-permission android:name=”android.permission.POST_NOTIFICATIONS”

  2. DinaMMorad commented on May 17, 2023

    @DinaMMorad
    Author

    @poting-oath I'm using version 14.2.0 and I've got POST_NOTIFICATIONS permission but didn't receive notification on android 13 device although I received it with android 10 device

  3. DinaMMorad commented on May 21, 2023

    @DinaMMorad
    Author

    @poting-oath also I added user property and sent notification to it but didn't receive that notification I wanted to target all users using english language with a notification I sent notification but all devices that has this userproperty didn't receive this notification

  4. poting-oath commented on May 24, 2023

    @poting-oath
    Collaborator

    @DinaMMorad 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:

    uses-permission android:name=”android.permission.POST_NOTIFICATIONS”
    

    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;
            }
        }
    
  5. raghuriyaz commented on Jul 26, 2023

    @raghuriyaz

    @DinaMMorad @poting-oath I'm seeing the same issue. push notification works with test device token but if I start a campaign, it is not received. Did you find any solution?

  6. poting-oath commented on Jul 27, 2023

    @poting-oath
    Collaborator

    @raghuriyaz Do you add permission ”android.permission.POST_NOTIFICATIONS” to your app? And ask users to allow the permission by ActivityCompat.requestPermissions?

  7. self-assigned this
    on Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions