https://github.com/dimensionsoftware/shopify-push-notifications
Shopify Push Notifications Library with React Native / Expo Examples
https://github.com/dimensionsoftware/shopify-push-notifications
Last synced: 5 months ago
JSON representation
Shopify Push Notifications Library with React Native / Expo Examples
- Host: GitHub
- URL: https://github.com/dimensionsoftware/shopify-push-notifications
- Owner: DimensionSoftware
- License: mit
- Created: 2019-10-22T04:37:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T17:02:34.000Z (about 3 years ago)
- Last Synced: 2025-08-09T15:59:21.679Z (6 months ago)
- Language: TypeScript
- Homepage: https://dimensionsoftware.com
- Size: 291 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shopify Push Notifications
[![Dimension Software][html5-image]][ds-link]
[](https://github.com/DimensionSoftware/shopify-push-notifications/issues)
[](http://hits.dwyl.io/DimensionSoftware/shopify-push-notifications)
[][ds-link]
## Web + Native iOS + Android Support
[Push Notifications to Shopify and your native app, through our Passwordless Login App][pw-link] using this example React Native codebase, no native modules to link & [Expo friendly!][expo-link]
[![Shopify Push Notifications for Web and React Native Apps][ss-image]][pw-link]
## Quick Start
```
$ yarn add shopify-push-notifications
```
#### *Step 1* // Save Token
```
const { token, message } = push('YOUR-STORE.myshopify.com, 'YOUR-SECRET')
let res = await token('exponentpushtoken[xxxxxxxxxxxxxxxxxxxxxx]')
if (!res.success) console.warn(res.error)
// web or expo token saved
```
#### *Step 2* // Push Message
```
res = await message('TITLE', 'Message body...', {withJSON: 'Optional data'})
if (!res.success) console.warn(res.error)
// message broadcasted!
```
[![Fresh Software by Dimension][ds-image]][ds-link]
[pw-link]: https://login.dimensionsoftware.com
[ds-link]: https://dimensionsoftware.com
[expo-link]: https://expo.io
[ss-image]: ./examples/react-native/assets/screenshot.png
[html5-image]: http://img.shields.io/badge/HTML-5-blue.svg?style=flat
[ds-image]: https://dimensionsoftware.com/static/images/github/software_by.png