Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-1970] - Push primer for Android 13 #351

Merged
merged 67 commits into from
Nov 1, 2022
Merged

Conversation

william-ct
Copy link
Contributor

@william-ct william-ct commented Oct 28, 2022

  • Adds below new public APIs for supporting Android 13 notification runtime permission.
    • isPushPermissionGranted()
    • promptPushPrimer(JSONObject)
    • promptForPushPermission(boolean showFallbackSettings)
  • New callback PushPermissionResponseListener available which returns after the user Allows/Denies notification permission.
  • From 4.7.0+ existing callback InAppNotificationListener will now have onShow(CTInAppNotification) method which needs to implemented.
  • Minimum Android SDK version bumped to API 19 (Android 4.4)

william-ct and others added 30 commits August 29, 2022 10:15
…ST_NOTIFICATION permission, update targetSDK/compileSDK version for sample app
…va to directly call hard permission request dialog
…Primer

# Conflicts:
#	gradle/wrapper/gradle-wrapper.properties
#	versions.properties
…AppController to accept only jsonObj for creating local IAM
…ppBuilder`,navigation to settings dialog flow, Remove unused code in `CTInAppNotificationButton` and `CTInAppNotificationMedia`
…, refactor CleverTapAPI.java, AlertDialogPromptForSettings.kt and InAppController.java, Update sample,
….kt, refactor hard permission flow if permission is denied
…ask/SDK-1769/PushPrimer

# Conflicts:
#	clevertap-core/src/main/java/com/clevertap/android/sdk/InAppNotificationActivity.java
…Primer

# Conflicts:
#	clevertap-core/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java
buildSrc/src/main/kotlin/Libs.kt Show resolved Hide resolved
* `promptForPushPermission(boolean showFallbackSettings)`
*New callback `PushPermissionResponseListener` available which returns after user Allows/Denies notification permission.
* From 4.7.0+ existing callback `InAppNotificationListener` will now have `onShow(CTInAppNotification)` method which needs to implemented.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@william-ct Give a link to Usage.md in this changelog

docs/CTHUAWEIPUSHCHANGELOG.md Show resolved Hide resolved
docs/CTXIAOMIPUSHCHANGELOG.md Show resolved Hide resolved
docs/EXAMPLES.md Outdated Show resolved Hide resolved
Copy link
Contributor

@piyush-kukadiya piyush-kukadiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@piyush-kukadiya piyush-kukadiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

# Conflicts:
#	README.md
#	clevertap-core/src/main/java/com/clevertap/android/sdk/inbox/CTInboxActivity.java
#	docs/CTCORECHANGELOG.md
#	docs/CTGEOFENCE.md
#	docs/CTPUSHTEMPLATES.md
#	templates/CTCORECHANGELOG.md
#	versions.properties
@william-ct william-ct merged commit 50bf3cc into develop Nov 1, 2022
@piyush-kukadiya piyush-kukadiya deleted the task/SDK-1769/PushPrimer branch September 9, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants