NSBundleDidLoadNotification: iTunes File Sharing feature - objective-c

How do I get to trigger the NSBundleDidLoadNotification notification?
The app, i'm working on, uses iTunes File Sharing feature. The app shares only .bundle files. The bundle contains some kind of xml and movie files.
The goal is to get notified after the bundle is completely uploaded.
see my earlier post iTunes File Sharing app: realtime monitoring for incoming datas

Related

How to download the translation modules while installing the app from play store?

I am using Flutter and I want to download the translation modules while the app is installed from play store.
Right now the app only downloads the file when a translation is called but I want them to be downloaded with the app to make it offline.
This is currently not possible but please do file an enhancement request with details of your use-case (the latter can help the product management team prioritise the request).

Download .ipa build via App Store Connect API

Due to some unique quality and regulatory requirements in our organisation, we need to be able to download a .ipa build from App Store Connect, in order to be able to compare it against a locally built binary. I appreciate this is an unusual requirement, but it is non-negotiable.
Clearly there is no way to do this via the App Store Connect web interface, so I've been looking at the App Store Connect API. However it is ambiguous from the documentation, whether it is possible to use this to download an .ipa build.
Does anyone know if this is possible, and how one might go about doing it if so please?
Apple does not provide any way of retrieving an upload app/IPA. It's neither possible through App Store Connect nor the App Store Connect API.
You can only check entitlements and additional build information in the App Store Connect interface. For that go to App Store Connect > My Apps > Activity > All Builds > Click on the build
(Fastlane does also not provide any way, because Apple does not expose the data. It uses the "web API", i.e. has access to more information than the "standard" App Store Connect API)
We can download IPA file with the help of Apple Configurator. Follow below steps to download IPA file.
Download Apple Configurator 2 app on your MAC.
Connect your iPhone with MAC and Apple ID should be same in apple Configurator and iPhone.
New window will display with app count badge in All Devices Tab.
Right click on your connected device in Apple Configurator and select Add and then Apps.
Process will complete and Popup will show with options, no need to click any option and go to this path
~/Library/Group Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets/TemporaryItems/MobileApps/
Save IPA file in your directory
-Now stop Apple Configurator
EDIT: I know this question is aimed at Downloading Appstore/Testflight builds, specifically, but wanted to provide this answer for others who find your question while looking for it from anywhere.
You can download iOS .ipa from Firebase distribution, as well as for Android .apks. But you do need to have the right permissions.
I just did it 5 minutes ago. See ☝️?
Go into App Distribution > find your app scheme/variant > expand build number > see if you have a Download button. If you don't, your company needs to bump your permissions up a bit higher.
Keep in mind that firebase apps can experience limitations when interacting with Apple SDK features, though, like SIWA. You'd need to use Testflight to test things like that if they don't work for you (we have decent devs and never could get it working on Firebase builds).
If the file gets deleted before you can copy it, you can use this command:
watch -n 0.1 find "~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator" -iname "*.ipa" -exec 'cp -r {} ~/Downloads \;'
When it's downloaded it will copy it to the Downloads folder. You're welcome.
Part of the credits to my colleague Daniël.

Does Google Drive Android API help my application to work in background?

I have read Google Drive API documentation but I'm not able to understand the following:
Can files and folder be created and modified on drive in background of app?
My application needs working of drive in background.
For Files:
If you will check "Working with File Contents":
Lifecycle of a Drive file
The Drive Android API lets your app access files even if the device is offline. To support offline cases, the API implements a sync engine, which runs in the background to upstream and downstream changes as network access is available and to resolve conflicts.
Check this image from the document.
The lifecycle of a DriveFile object:
Perform an initial download request if the file is not yet synced to the local context but the user wants to open the file. The API handles this automatically when a file is requested.
Open the contents of a file. This creates a temporary duplicate of the file's binary stream which is only available to your application.
Read or modify the file contents, making changes to the temporary duplicate.
Commit or discard any file content changes that have been made.
If there are changes, the file contents are queued for upload to sync them back to the server.
Google API does support running in background. For folders there is no documentation regarding creating of folder can be done in background, but I think same implementation can be done.
I hope this helps.

Monitoring if File is currently open Mac App

My app create a file on the FS and opens the file in other application(s). I want to monitor the file for changes which I already have in place, but I also want to know when the other application has closed the file. Is there some API that currently exists on mac, and it's an API that will not get my app rejected from the app store ?
I believe the thing you're looking for is in FSEvents (File System Events), specifically the FSEventStreamCreate function with the FSEventStreamEventFlag kFSEventStreamEventFlagItemModified.
As long as it's a file within the user's sandbox (or one that the user has given permission to use), I would think you should be okay for the app store.
More information can be found in this related question.

Is there any chance for .ipa file size expansion

Any one please help me....In our project, we have lot of videos may be 84 videos(its compressed zip folder size is 2 GB). We can put it in web services....
But we found, In android, there is an option called .apk file expansion. ie., we can put your app + compressed zipped video folder file into google play. when user play any video in app, it will be downloaded to mobile memory. We have to write code to play video from mobile memory....
something like this is in .ipa file?
iOS 6 introduced hosted content, but only for In-App-Purchases: "Host In-App Purchase content on Apple’s servers, so you can easily add, manage, and deliver In-App Purchase content for your app."