prepareNotificationIntent

Creates an Intent for displaying the snippet detail screen in response to a notification tap.

This function is intended to be used when handling push notification payloads (for example, from FCM). It extracts the required fields from the provided extras, parses them, and—if valid— constructs an Intent that opens TWSViewPopupActivity to display the requested snippet.

Return

An Intent to open the snippet detail screen, or null if the payload is invalid or missing required data.

Parameters

context

The context used to construct the intent.

extras

The push notification payload, usually from FCM. Must include "projectId", "snippetId", and "type" keys.