Skip to content

Podcasts should communicate to web code #51

Open
@rt4914

Description

@rt4914

Describe the bug
Currently we have sort of a bridge between web codebase and iOS-native code. This bridge helps us in controlling some very specific cases. For example:

  • if user plays a podcast, from the bridge we will get the information in iOS, and then iOS native code will play the podcast using notification manager instead of playing it in website-webview.
  • if user plays a video, the bridge passes the information to iOS, and then iOS native code will play the video in new full-screen activity.

Now currently for podcast the information can be sent from web-code to iOS native but we cannot send information from iOS native to web-code.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any podcast
  2. Play the podcast
  3. Once the podcast plays in iOS it will be visible in notifications section of the iOS os.
  4. Pause the podcast in notification.
  5. Notice that the app still shows pause icon in website.

Expected behavior
As soon as we pause the podcast in notification, the change should be reflected correctly in web-code base too.

Similar Issues

  • If we remove the podcast by clearing the notification, the website still shows as if the podcast is playing, the bottom podcast bar in website should get terminated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions