Encoding.com watch folders notifications - video-encoding

We are using Encoding.com's watch folders to process videos from our Amazon S3 bucket.
It works fine but we have problems with the notifications. We want it to run a script in our server to update the video status in our DB and delete the original video file from S3. In the watch folder notification field we insert the script URL (http://www.domain.com/autocomplete/encoding-confirm/) but it never runs. When using the URL in my browser it runs fine.
What could be the problem?

The notifications are most likely being sent in a POST request, but if it works when you hit the URL with your browser it probably means your script is listening for a GET request.

The script was actually running, but since the notification is a returning NULL the PHP script fails to run.
Opened a new thread to see if anyone knows why this could be returning NULL.
https://stackoverflow.com/questions/14739500/encoding-com-notifications-returning-null

Related

Download large files in iOS

I wish to download large file (about: 500MB) from server.
The server is implemented by us server with gRPC command that works as follows. The user request for file and then the app receives byte stream which added to file.
In Android I am using background persistent notification with service, and opening new thread on this service until the download completes. The user can exit the app and the OS will not kill persistent notification service.
What is the equivalent for background downloading for iOS. I checked the URLSessionDownloadTask but I do not think it will work with gRPC.
What is your solution for downloading big data with iOS?

Testing VoIP push messages - messages only arrive in-app

I have a very simple PHP test script that initially works, using the following server config:
$domain = "gateway.sandbox.push.apple.com";
$url = 'ssl://' . $domain . ':2195';
I'm receiving PushKit notifications every time I expect them including when the phone is locked. However testing it over and over while trying to implement the server side and convert it to HTTP/2, it just stops working reliably and only seems to trigger when I'm inside the application.
Inside the application: always works
Outside of the application including just backgrounded the app: works in the beginning, then stops working
It's very hard to get it to work if I don't know if even the most basic form of sending the message (through the PHP test script works). Also it worries me that my production application might suffer from the same kind of throttling if a user is sending too many messages (i.e. mom trying to call from the hospital 10x in a row).
I do always trigger CallKit in my PushKit code path every time so I think I'm good regarding to the changes in VoIP pushes in iOS 13.
What could be the cause of this different over time? How (if possible) can I prevent it? How can I detect it?
For that one person that upvoted my question but didn’t find a response:
Killing the app makes the OS think depriotitize it and it leads to the OS not forwarding the VoIP push anymore. To mitigate this problem as a developer you need to start the debugger without launching the app, so when you open the app from the push it can attach. Then kill the app only through the stop button in Xcode.
Testers need to be instructed about this problem. If you’re sure the code works for you and it stops working for the tester, they need to uninstall the app, restart the phone and install it again. If possible never kill the app manually. This sucks, I know it.

how to upload location data to server ios 7.1

Hi I am creating plugin which will detect get the location from user and upload it to the server.
when app is in the background it is working very well I am getting new location and it is getting uploaded to the server. But the problem comes after 20-25 mins. I get the new location update from the device but it is not getting uploaded to the server. I implemented local notification to know whether I am getting the new location or not even I create local notification when that data will get uploaded to the server. but after 25/30 mins I just get notification about new location not for the successful server update. I checked with the server database also.
Whenever I get new location I am storing that in to a local database and for server uploading I am taking that data from database.
I Read some of the post about beginBackgroundTaskWithExpirationHandler But it won't work in ios 7 or later. And my app is getting callback in the background so I don't think so background fetch also will work in this scenario.Can anyone have implemented something like this? anyone tested it after 25-30 mins? Help appreciated

XMPPFramework - How to receive more than one file at a time?

I am developing application using XMPPFFramework. In my application one to one messaging functionality and one to one file sharing functionality is working perfectly.
Now, when my application receive two file at a time, one file is received and another file can not be received. my application sends "not acceptable" error to sender of another file.
Now, How to accept receive that both file at a time.
Is it possible that another file can be placed in queue to receive at socket. If yes, how can I achieve this?
I am using XEP-0096 and XEP-0065 for file transfer.

ios newsstand behaviour when a remote nofication is received whilst on 3G (not wifi)

The newsstand framework will only handle downloads for you when you are on wifi, but it's not very clear what happens over a 3G cellular network.
Here is the scenario:
My app is running in the background when it receives a remote notification telling it that new content is available and is not connected to wifi at the time.
I create a new NKIssue and a NKAssetDownload for that issue (a zip file containing all I need for that issue).
I call [asset downloadWithDelegate:self];
From what I can tell, the asset does not get downloaded - even when I connect to wifi later on, the asset never gets downloaded and if I query the downloadingAssets of NKIssue, it is an empty array.
So it appears there is no way to get back my asset object to start the download again (assuming now on wifi).
I could keep a separate reference to the asset object around to restart its download, or could create a new NKAssetDownload object (where did the existing one go?) or could check whether I'm on 3G/wifi when the remote notification comes in and branch in my code accordingly or something else(?), but I feel like I'm missing something. The documentation seems incomplete here too.
Has anyone found a good way of dealing with this?

Resources