CleverTap / clevertap-android-sdk

CleverTap Android SDK
MIT License
78 stars 74 forks source link

PendingIntent for Action Button Click is failing because the device has another app with the same intent filter #12

Closed okmanideep closed 5 years ago

okmanideep commented 5 years ago

My Android Manifest

<service
    android:name=".notification.NotificationCTAService"
    android:exported="false">
    <intent-filter>
        <action android:name="com.clevertap.PUSH_EVENT" />
    </intent-filter>
</service>

When an action button of a clevertap notification in my app is clicked. It does nothing.

Error Log from the System:

W/ActivityManager: Permission Denial: Accessing service ComponentInfo{com.sonyliv/com.clevertap.android.sdk.CTNotificationIntentService} from pid=-1, uid=10154 that is not exported from uid 10149
1

Since all the apps which use clevertap have the same intent filter registered for com.clevertap.PUSH_EVENT, and their services are not exported. The Action Button Click does nothing.

If the service of another app is exported, then the service of the other app is triggered etc.

darshanclevertap commented 5 years ago

Hi @okmanideep, Thank you very much for the fix you have provided. We are reviewing your pull request currently and will be merging it soon. Once your pull request is merged, we will be releasing a new version of the CleverTap Android SDK for everyone to use.