Skip to content

Instantly share code, notes, and snippets.

@SiddheshKukade
Last active September 15, 2023 19:00
Show Gist options
  • Save SiddheshKukade/4384e87df856f2cefcb45439f755348f to your computer and use it in GitHub Desktop.
Save SiddheshKukade/4384e87df856f2cefcb45439f755348f to your computer and use it in GitHub Desktop.
Palisadoes foundation Work Report - 10th Oct

Mobile App:

  • 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.

Talawa-Admin:

  • 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.

Advertisements:

Why Advertisements:

  • 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.

How it would be implemented:

  • The ads would be on mobile app in 2 ways:
    1. As a promoted post on the feed of Talawa User app: image
    2. Like a banner adverstisement: image
    3. A Pop-Up notification type advertisement: image

How they would be managed ?

  • 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

How much ads would be shown and how they would be controlled ?

  • 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:
  • image

Technical Details:

  1. 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
}

What would happen after end date of adverstisements:

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.

APIs Required:

  1. createAdverstisement()

    • The created doc with the given provided schema data values and stores in the database.
  2. deleteAdvertisement()

  • To be used if user accidentaly created that document and he wants to delete that
  1. getAdvertisement()
  • Used by the mobile app to fetch all the ads to show
  • The would be filtered by the dates

How it would be utilized in mobile:

3 ways to handle this:

  1. Popup ads:

    • The would show only after opening the app once for the user.
  2. Promoted Posts:

    • Separate component on the mobile app would be created and users would be shown promoted post on the top.
  3. Banner ads: - Banner component to be displayed on top of web pages.

Extra Notes:

  1. Removing banner type of ads ?
  2. What to do after ads duration ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment