colinlemmehelp / NewCo-v2

0 stars 0 forks source link

Add integration with Shopify/wix/bigcommerce test tenants #1

Closed colinlemmehelp closed 3 years ago

colinlemmehelp commented 4 years ago

https://www.youtube.com/watch?v=PIXN032XJJ8 video on how to do this for shopify

https://github.com/firebase/quickstart-ios/blob/6811343971112dc3c963096fcfb030c0c12793e7/messaging/MessagingExampleSwift/ViewController.swift

colinlemmehelp commented 3 years ago

Figured out how to connect to shopify via ngrok

Need to figure out how to store this in firestore functions? and trigger it?

colinlemmehelp commented 3 years ago

Questions:

  1. how to store the "state" cookie from nonce when you make an auth request to shopify?
    • or, do you need to auth every time you make a request to an individual shopify store?
  2. how to get rid of ngrok when moving to production?
  3. how to run the function on firestoreFunctions when it's listening on port 3000?
colinlemmehelp commented 3 years ago

Note: https://stackoverflow.com/questions/52732201/post-request-firebase-cloud-functions-timing-out https://firebase.google.com/docs/hosting/custom-domain

Will need to own a domain and set up my own one in Firebase Hosting.. then I can copy what this guy did for his app

colinlemmehelp commented 3 years ago

How to handle authenticating when an agent makes a call from inside the iOS app? Should they just do it over HTTP, or should they call a function directly that hides the HTTP request? https://community.shopify.com/c/Shopify-APIs-SDKs/Authenticating-Shopify-app-with-Firebase/td-p/779799#

colinlemmehelp commented 3 years ago

Similar: https://stackoverflow.com/questions/60942332/call-external-api-with-cloud-function-and-create-document

colinlemmehelp commented 3 years ago

Overview of callable functions https://medium.com/@topeomot/why-you-should-be-using-firebase-http-callable-functions-a96c328f0600

colinlemmehelp commented 3 years ago

Closing for now as we're connected to Shopify