Skip to content

Added getAppLaunchNotification method Add launchNotification support to CleverTapPlugin#364

Open
akashvercetti wants to merge 3 commits into
developfrom
getAppLaunchNotification-for-ios
Open

Added getAppLaunchNotification method Add launchNotification support to CleverTapPlugin#364
akashvercetti wants to merge 3 commits into
developfrom
getAppLaunchNotification-for-ios

Conversation

@akashvercetti

@akashvercetti akashvercetti commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai

Summary by CodeRabbit

  • New Features

    • Added support for detecting whether the app was launched from a notification.
    • Exposed launch notification details to the app, including the full payload when available.
  • Bug Fixes

    • Improved launch handling so notification-based app starts can be identified more reliably.

@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@shubhambjadhavar

shubhambjadhavar commented Jul 9, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@akashvercetti akashvercetti changed the base branch from master to develop July 9, 2026 17:47
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch getAppLaunchNotification-for-ios

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 142d1d32-bd4f-441e-94bc-9ca86501a6eb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a launchNotification property to CleverTapPlugin and captures the launch notification payload during applicationDidLaunchWithOptions: when it is a CleverTap notification. A new native method getAppLaunchNotification:withResult: is added and routed via handleMethodCall:result: to return launch notification status and payload.

Changes

App Launch Notification Feature

Layer / File(s) Summary
Capture and expose launch notification payload
ios/Classes/CleverTapPlugin.h, ios/Classes/CleverTapPlugin.m
Adds launchNotification property, stores the notification payload at launch when identified as a CleverTap notification, routes new "getAppLaunchNotification" method call, and implements getAppLaunchNotification:withResult: returning notificationLaunchedApp and notificationPayload.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant iOSApp as iOS App
  participant CleverTapPlugin
  participant CleverTapSDK
  participant FlutterApp

  iOSApp->>CleverTapPlugin: applicationDidLaunchWithOptions
  CleverTapPlugin->>CleverTapSDK: isCleverTapNotification(payload)
  CleverTapSDK-->>CleverTapPlugin: true/false
  CleverTapPlugin->>CleverTapPlugin: store payload in launchNotification

  FlutterApp->>CleverTapPlugin: getAppLaunchNotification
  CleverTapPlugin-->>FlutterApp: notificationLaunchedApp, notificationPayload
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title Check ✅ Passed Title check skipped as CodeRabbit has written the PR title.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch getAppLaunchNotification-for-ios

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot changed the title Added getAppLaunchNotification method @coderabbitai Added getAppLaunchNotification method Add launchNotification support to CleverTapPlugin Jul 9, 2026
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

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.

2 participants