Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMediaStream() cannot listen on iOS #338

Open
rieull0225 opened this issue Nov 12, 2024 · 4 comments
Open

getMediaStream() cannot listen on iOS #338

rieull0225 opened this issue Nov 12, 2024 · 4 comments

Comments

@rieull0225
Copy link

rieull0225 commented Nov 12, 2024

I tested my code and example code.
almost cases work fine, but only getMediaStream() on iOS doesn't work

on my logs, stream is started without error. but cannot listen anything.

Detailed description of the situation

  • The stream starts.

  • when i share some (or an) Image outside the app, then the app opens.

  • Nothing happens.

  • getInitialMedia() works fine if the app is not in the background.

  • On Android, getInitialMedia() and getMedialStream() both work well.

how can i solve this problem?

my test devices are iphone 16 pro real and virtual devices, iOS 18
package version ^1.8.1

@tomasvalererealms
Copy link

Agree, it does not work in IOS, same environment like the previous commenter. The library is broken.

@tomasvalererealms
Copy link

My fault! Yes, it works, I was not setting correctly the group name for the CUSTOM_GROUP_ID variables in Xcode.

@xaatw0
Copy link

xaatw0 commented Nov 15, 2024

Thank you for the wonderful package.
However, there are also some file types that do not work on iOS.

  • File types that work:
    zip, mp3, jpeg, heif, pdf

  • File types that do not work
    txt, csv, mp4,

What is the difference between these? How can I fix it so that I can also receive “file types that do not work”?

Do we need to set the following?
https://developer.apple.com/documentation/uniformtypeidentifiers/defining-file-and-data-types-for-your-app

@ThanhDat-Vo
Copy link

I got the same issue: the application was brought up from background but the getMediaStream() function was not triggered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants