Flutter (Screen recorder) Securing Music stream App, IOS & Android

Viewed 222

Is there a flutter solution to securing music app from screen recorder (Even the app runs in the background), like apple music app did, stop the music when you start screen recorder. We have tried windowmanager package & secure application but no one works in IOS. We have a mobile app to stream music, the app implement in-app purchase, every song should be bought before listening, and the content is exclusive for the app. that's why we need to secure the app, we have searched a lot for flutter packages and native implementations but we haven’t find a solution for IOS specific .

1 Answers

You should implement this natively for iOS.

Use isCaptured property in UIScreen to know if screen recording is happening (you can do this for iOS 11+)

You can use Key-Value Observing to know when isCaptured changes

Apple says:

To prevent the system from recording the audio portion, observe the isCaptured property and take appropriate action in your app as described...

see the documentation

EDIT:

I've found this library flutter_forbidshot it is helpful, and I think it is suitable for this problem.

Related