I’m working on a mobile app built with Cordova that connects to our Shopify-powered online store. I want to add push notification features so customers get alerts when important things happen like order confirmations, shipping updates, and other purchase-related events.
I’m trying to figure out the most effective approach for creating personalized push notifications that work with our Shopify backend. Should I be looking into Shopify’s webhook system to trigger these notifications?
I’ve been searching around but haven’t found much guidance on this specific setup. Has anyone successfully implemented something similar? What tools or services work best for this kind of integration?
yep, totally agree! the registration flow is tricky, especially on ios. make sure to ask for permissions at the right moment. also, don’t forget to test push notifications in all states of your app—foreground, background, and closed. and yeah, webhooks can be hit-or-miss; be ready to implement retry logic or risk missing orders!
Dealt with this exact setup last year. Webhooks work great, but you’ve gotta validate those payloads properly. Bad actors love hammering Shopify webhooks, so verify the signatures or you’ll send notifications for fake orders.
Here’s the real pain point - customer unsubscribes are a nightmare. Shopify won’t sync when users opt out in your app, so you need a separate endpoint for preferences. We stored everything in Shopify’s customer metafields to keep it all in sync.
Performance tip: batch your database updates during webhook bursts. Don’t process each one individually or your notification service will choke when orders spike during sales.
Been running Cordova-Shopify push notifications for two years. Webhooks work great, but don’t sleep on the scheduling part. Shopify fires webhooks instantly when stuff happens, but customers hate getting spammed with every little update. We send order confirmations right away but delay shipping notifications by 30 minutes to batch tracking updates together. Heads up - Shopify’s webhooks aren’t bulletproof. You’ll miss events during traffic spikes. Keep a backup polling system for critical stuff like payment failures. Also, cordova-plugin-firebase-messaging beats phonegap-plugin-push hands down, especially when the app’s completely closed.
Yeah, webhooks work but managing Firebase, servers, certificates, and device tokens becomes a nightmare quickly.
I’ve been using Latenode for this stuff - way cleaner. Connect Shopify webhooks straight to push notifications without any backend coding. The visual builder handles order data mapping, customer segments, and delivery logic in one spot.
Best part? Test everything right in the platform. No staging servers or deployment headaches. Just hook up Shopify, set your triggers, and connect to your Cordova app’s push service.
That customer ID to device token mapping Emma mentioned? Latenode does it automatically when you set up the workflow right. Built-in retry and error handling too.
Saves weeks versus building custom middleware. Check it out at https://latenode.com
Been there - skip building your own middleware server. Just use OneSignal or Pusher instead. They’ve got Shopify integrations that do the heavy lifting, and their webhook processing is already built in. You’ll only need to set up the Cordova push plugin on your end. For Cordova, go with phonegap-plugin-push. It’s well maintained and works consistently across Android and iOS. The annoying part? Handling subscriptions for guests vs logged-in users. Store device tokens locally, then sync them with customer data once they authenticate. One tip - testing push notifications during dev is a pain. Set up staging early or you’ll hate yourself later.
the Cordova stuff is actually pretty straightforward - shopify’s webhook delivery is where things get messy. we started storing backup timestamps in local storage and poll every few minutes just in case. pro tip: timezone issues will bite you with delayed notifications since shopify timestamps change based on store settings.
Having implemented a similar functionality recently, I can confirm that utilizing webhooks is essential for timely notifications. Since Cordova cannot directly handle webhooks, it’s wise to set up a middleware service. I recommend using Firebase Cloud Messaging in conjunction with a small Node.js server that you can host on platforms like Heroku. The process usually involves linking Shopify webhooks to your server, allowing it to determine which customers should receive notifications based on the data processed. Keep in mind the crucial step of mapping your customer IDs with their respective device tokens in your database when users log in. Additionally, be prepared for the additional complexity of configuring iOS certificates through the Apple Developer Console, which can be time-consuming. This solution not only improves the control over notification content but also avoids the inefficiencies of polling Shopify’s API.