Can We do a Broadcast-based system? #211
JordanTreDaniel
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I find the implementation of the onPaid listener to be a bit complex, and don't particularly like the idea of adding extra content scripts to be able to respond to an event.
Would it be possible to just export some message types that represent some change in the state of the user/subscription? i.e.
EXT_PAY_USER_PAID
,EXT_PAY_USER_CANCELLED
,EXT_PAY_USER_STARTED_TRIAL
That way, adding functionality to respond to these changes would be as simple as adding
I would think that the background script of ExtPay would be able to broadcast the events. Now that I think of it more, this could be a simple change. Maybe I can look into and update.
Beta Was this translation helpful? Give feedback.
All reactions