ForemWebView-ios icon indicating copy to clipboard operation
ForemWebView-ios copied to clipboard

Podcasts should communicate to web code

Open rt4914 opened this issue 3 years ago • 0 comments

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.

rt4914 avatar Aug 12 '22 14:08 rt4914