Skip to content

DimensionSoftware/shopify-push-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopify Push Notifications

Dimension Software contributions welcome HitCount TypeScript

Web + Native iOS + Android Support

Push Notifications to Shopify and your native app, through our Passwordless Login App using this example React Native codebase, no native modules to link & Expo friendly!

Shopify Push Notifications for Web and React Native Apps

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

About

Shopify Push Notifications Library with React Native / Expo Examples

Resources

License

Stars

Watchers

Forks

Packages

No packages published