iOS Question [Solved] Share data ActivityViewController iOS 14

angel_

Well-Known Member
Licensed User
Longtime User
To share data I use this:


But I have problems with iOS 14, it doesn't appear the window to send data. Any idea?
 

angel_

Well-Known Member
Licensed User
Longtime User
With pleroma the same error happens. Apparently it only happens on the iPad

Captura.JPG
 
Upvote 0

roumei

Active Member
Licensed User
The Show method of the ActivityViewController should point to a button (instead of a panel) to work properly on iPads. You can either use an existing button on your page or create a new one (I used a special button without text or function and with a transparent background color).
B4X:
    Dim avc As ActivityViewController
    Dim files As List
    files.Initialize
    files.Add(CreateFileUrl(tersShareDirectory, sFilenameGPX))
    files.Add(CreateFileUrl(tersShareDirectory, sFilenamePLFTER))
    avc.Initialize("avc", files)
    avc.Show(PageMapList, btnACV)

Just checked on an iPad with iOS 14.2 and it still works:
AVC.jpg
 
Upvote 0
Top