- Worked on Subscriptions tabs
- Problems Facing:
- The subscription data in flutter is coming a form of stream and needs to directly rendered with a
builder
function in flutter. - I'm trying to find the most optimal way to do this.
- The subscription data in flutter is coming a form of stream and needs to directly rendered with a
- Adding the socket listeners on the talawa Mobile web version which is deployed on the 'url::talawa-admin.com/user' path
- It would be toggling the UI of the navbar based on the plugin status.
- Target Cliets: Church, Temple, Mosques, (Holy places in genral)
- Such orgs run on donation basis
- Adding Ads would allow 2 types of benefits:
- Earning revenue for the org.
- Companies having products related to such orgs they can directly target those customers.
- The ads would be on mobile app in 2 ways:
- The ads would be soley managed by the admin
- Admin would be responsible for the content that is promoted
- Admin have to bring his own advertisements
- For ex. In Buffalo, New York, USA there's a Church named "ABC" managed by John doe.
- If John doe want to earn revenue via the ads he have to reach out for it's own local adverstiers. _Palisadoes foundation is not involved in managing promotions.
- He can charge his client on his own terms like $30/week for 150+ Users and Palisadoes foundation is also not involved with the transactions
- I suggest to show 1 times a day default and not adding any option change that (resulting in stable user retention in future).
- Admin would be having an option in navbar regarding promotions:
- Adverstiment document Schema:
advertisement:
{
_id: ID,
orgID: ID,
name: String,
link: String,
type: POPUP | MENU | BANNER,
startDate: Date, # Day when the ads would be shown to user (Default 1/day)
endDate: Date, # Last date to show ads.
createdAt: Date,
updatedAt: Date
}
There are 2 ways to resolve this: 1. Keeping them in DB 2. Deleting the document by Adding a TTL (Link) to mongoDB doc and it would be automatically deleted.
-
createAdverstisement()
- The created doc with the given provided schema data values and stores in the database.
-
deleteAdvertisement()
- To be used if user accidentaly created that document and he wants to delete that
getAdvertisement()
- Used by the mobile app to fetch all the ads to show
- The would be filtered by the dates
3 ways to handle this:
-
Popup ads:
- The would show only after opening the app once for the user.
-
Promoted Posts:
- Separate component on the mobile app would be created and users would be shown promoted post on the top.
-
Banner ads: - Banner component to be displayed on top of web pages.
- Removing banner type of ads ?
- What to do after ads duration ?