angel_ Well-Known Member Licensed User Longtime User Dec 13, 2020 #1 To share data I use this: Share data from your app with ActivityViewController ActivityViewController allows the user to share data from your app using the standard share dialog. It was added in iPhone library v2.00. Using it is simple. You need to initialize AVC with one or more items that you want to share and call show: Sub Page1_Click Dim avc As... www.b4x.com But I have problems with iOS 14, it doesn't appear the window to send data. Any idea?
To share data I use this: Share data from your app with ActivityViewController ActivityViewController allows the user to share data from your app using the standard share dialog. It was added in iPhone library v2.00. Using it is simple. You need to initialize AVC with one or more items that you want to share and call show: Sub Page1_Click Dim avc As... www.b4x.com But I have problems with iOS 14, it doesn't appear the window to send data. Any idea?
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2020 #2 All that I can say is that ActivityViewController does work with iOS 14. You can see the B4X Pleroma client app for an example. It is available in the store. Upvote 0
All that I can say is that ActivityViewController does work with iOS 14. You can see the B4X Pleroma client app for an example. It is available in the store.
angel_ Well-Known Member Licensed User Longtime User Dec 14, 2020 #3 With pleroma the same error happens. Apparently it only happens on the iPad Upvote 0
Alexander Stolte Expert Licensed User Longtime User Dec 14, 2020 #4 angel_ said: With pleroma the same error happens. Apparently it only happens on the iPad Click to expand... I have the same issue in B4XPleroma with my IPad, on the iphone it works. Upvote 0
angel_ said: With pleroma the same error happens. Apparently it only happens on the iPad Click to expand... I have the same issue in B4XPleroma with my IPad, on the iphone it works.
roumei Active Member Licensed User Dec 14, 2020 #5 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: Upvote 0
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:
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2020 #6 angel_ said: With pleroma the same error happens. Apparently it only happens on the iPad Click to expand... Will check it... Upvote 0
angel_ said: With pleroma the same error happens. Apparently it only happens on the iPad Click to expand... Will check it...
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2020 #7 It is fixed in the pleroma app (not released yet). It is indeed a mistake to pass the root panel. Upvote 0
angel_ Well-Known Member Licensed User Longtime User Dec 16, 2020 #8 Then I can't use Label or Panel? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 16, 2020 #9 You can use a label or panel, but not one in the background. Upvote 0