Post not yet marked as solved
Post marked as unsolved with 1 replies, 275 views
Using this method from iOS 8 to iOS 15, no matter whether the team identifier of the share source and the share target are the same, the share source can get the bundle identifier of the share target, so there is a risk of leakage, and it is recommended to fix it.
It has been found that many apps use this method to obtain private information, such as ShareExtension in WeChat
#ifdef HIDE_POST_DIALOG
- ( void ) willMoveToParentViewController: ( UIViewController * ) parent
{
// This is called at the point where the Post dialog is about to be shown.
NSString * hostBundleID = [parent valueForKey:(@"_hostBundleID")];
NSLog( @"**** parent bundle id is %@" ,hostBundleID);
}
#endif
https://stackoverflow.com/questions/28453044/how-to-get-bundleid-of-the-source-app-when-using-share-extension-in-ios8/38262999#38262999