woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
298 stars 110 forks source link

[Blaze] Push notifications #13477

Open selanthiraiyan opened 1 month ago

selanthiraiyan commented 1 month ago

Internal - pe5sF9-331-p2

Iteration 1

Iteration 2

Iteration 3

Improvements

dangermattic commented 1 month ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.

irfano commented 1 month ago

30 days after the last active campaign ended, if no campaign is created in between.

See this comment for details on the logic from the Android side.

Analytics

Local notification events have already been implemented on Android. I used blaze_no_campaign_reminder for the type when this notification is tapped.

local_notification_tapped, Properties:{
  "type": "blaze_no_campaign_reminder",
  "blog_id": 111111111,
  "is_wpcom_store": true,
  "was_ecommerce_trial": false,
  "plan_product_slug": "business-bundle",
  "store_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "is_debug": true,
  "site_url": "https://irfanobusiness.wpcomstaging.com/"
}

local_notification_scheduled is tracked when the notification is scheduled. is tracked whenever a notification is scheduled. We track this multiple times for one notification because we update the scheduled notifications each time we fetch campaigns.

local_notification_scheduled, Properties: {
  "type": "blaze_no_campaign_reminder",
  "blog_id": 111111111,
  "is_wpcom_store": true,
  "was_ecommerce_trial": false,
  "plan_product_slug": "business-bundle",
  "store_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "is_debug": true,
  "site_url": "https://irfanobusiness.wpcomstaging.com"
}