GithubHelp home page GithubHelp logo

Comments (8)

781flyingdutchman avatar 781flyingdutchman commented on August 12, 2024 1

Correct, per the documentation you need to urlEncode the URL and query parameters

from background_downloader.

781flyingdutchman avatar 781flyingdutchman commented on August 12, 2024

Can you filter the console log for Downloader and share what you get? And can you try to run the example app on your simulator to confirm that that works? It would be helpful to test on a real device.

from background_downloader.

DevelopersCourt avatar DevelopersCourt commented on August 12, 2024

Hi. I already posted to you the logs filtered by Runner and Downloader. Where I can find the example app? Is in the repo?

Logs
From flutter don't have any error or warning log, only the path that I'm printing where the zip should be download: flutter: /Users/Edwin/Library/Developer/CoreSimulator/Devices/083C7FC4-3D89-4B61-89C7-5F0E4CD1AAF2/data/Containers/Data/Application/63C11E8C-92D8-42E2-AD2A-CC16ADBB2A79/Documents

From Console log if I filter using Runner shows:

default	10:15:08.900664-0700	Runner	UIBackgroundTaskIdentifier _UIApplicationBeginBackgroundTaskWithExpirationHandler(void (^__strong _Nullable)(void), NSString *__strong _Nullable): Will add backgroundTask with taskName: GDTCCTUploader-upload, expirationHandler: <__NSMallocBlock__: 0x60000177ad80>
default	10:15:08.900774-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Creating new assertion because there is no existing background assertion.
default	10:15:08.900811-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Creating new background assertion
default	10:15:08.900895-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Created new background assertion <BKSProcessAssertion: 0x600002129220>
default	10:15:08.901884-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Incrementing reference count for background assertion <BKSProcessAssertion: 0x600002129220>
default	10:15:08.902023-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL): Created background task <_UIBackgroundTaskInfo: 0x60000174f4c0>: taskID = 80, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0).
default	10:15:08.903383-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending background task with UIBackgroundTaskIdentifier: 80
default	10:15:08.903500-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending task with identifier 80 and description: <_UIBackgroundTaskInfo: 0x60000174f4c0>: taskID = 80, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0), _expireHandler: <__NSMallocBlock__: 0x60000174fec0>
default	10:15:08.903618-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier)_block_invoke: Decrementing reference count for assertion <BKSProcessAssertion: 0x600002129220> (used by background task with identifier 80: <_UIBackgroundTaskInfo: 0x60000174f4c0>: taskID = 80, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0))
default	10:15:08.903630-0700	Runner	UIBackgroundTaskIdentifier _UIApplicationBeginBackgroundTaskWithExpirationHandler(void (^__strong _Nullable)(void), NSString *__strong _Nullable): Will add backgroundTask with taskName: GDTCCTUploader-upload, expirationHandler: <__NSMallocBlock__: 0x600001778a00>
default	10:15:08.903707-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier)_block_invoke: Will invalidate assertion: <BKSProcessAssertion: 0x600002129220> for task identifier: 80
default	10:15:08.903964-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Creating new assertion because there is no existing background assertion.
default	10:15:08.904041-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Creating new background assertion
default	10:15:08.904145-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Created new background assertion <BKSProcessAssertion: 0x60000213d630>
default	10:15:08.905742-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Incrementing reference count for background assertion <BKSProcessAssertion: 0x60000213d630>
default	10:15:08.905846-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL): Created background task <_UIBackgroundTaskInfo: 0x60000177bb40>: taskID = 81, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0).
default	10:15:08.906755-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending background task with UIBackgroundTaskIdentifier: 81
default	10:15:08.906836-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending task with identifier 81 and description: <_UIBackgroundTaskInfo: 0x60000177bb40>: taskID = 81, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0), _expireHandler: <__NSMallocBlock__: 0x6000017796c0>
default	10:15:08.906940-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier)_block_invoke: Decrementing reference count for assertion <BKSProcessAssertion: 0x60000213d630> (used by background task with identifier 81: <_UIBackgroundTaskInfo: 0x60000177bb40>: taskID = 81, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0))
default	10:15:08.907002-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier)_block_invoke: Will invalidate assertion: <BKSProcessAssertion: 0x60000213d630> for task identifier: 81
default	10:15:08.906948-0700	Runner	UIBackgroundTaskIdentifier _UIApplicationBeginBackgroundTaskWithExpirationHandler(void (^__strong _Nullable)(void), NSString *__strong _Nullable): Will add backgroundTask with taskName: GDTCCTUploader-upload, expirationHandler: <__NSMallocBlock__: 0x600001712640>
default	10:15:08.907903-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Creating new assertion because there is no existing background assertion.
default	10:15:08.908495-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Creating new background assertion
default	10:15:08.909012-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Created new background assertion <BKSProcessAssertion: 0x600002146080>
default	10:15:08.911175-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Incrementing reference count for background assertion <BKSProcessAssertion: 0x600002146080>
default	10:15:08.911303-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL): Created background task <_UIBackgroundTaskInfo: 0x600001713140>: taskID = 82, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0).
default	10:15:08.912391-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending background task with UIBackgroundTaskIdentifier: 82
default	10:15:08.912513-0700	Runner	UIBackgroundTaskIdentifier _UIApplicationBeginBackgroundTaskWithExpirationHandler(void (^__strong _Nullable)(void), NSString *__strong _Nullable): Will add backgroundTask with taskName: GDTCCTUploader-upload, expirationHandler: <__NSMallocBlock__: 0x60000177b940>
default	10:15:08.912718-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Reusing background assertion <BKSProcessAssertion: 0x600002146080>
default	10:15:08.912518-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending task with identifier 82 and description: <_UIBackgroundTaskInfo: 0x600001713140>: taskID = 82, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0), _expireHandler: <__NSMallocBlock__: 0x600001712a80>
default	10:15:08.912786-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL)_block_invoke: Incrementing reference count for background assertion <BKSProcessAssertion: 0x600002146080>
default	10:15:08.913680-0700	Runner	_UIBackgroundTaskInfo *_doAddBackgroundTask(NSString *__strong, void (^__strong)(void), BOOL): Created background task <_UIBackgroundTaskInfo: 0x600001706480>: taskID = 83, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0).
default	10:15:08.913737-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier)_block_invoke: Decrementing reference count for assertion <BKSProcessAssertion: 0x600002146080> (used by background task with identifier 82: <_UIBackgroundTaskInfo: 0x600001713140>: taskID = 82, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0))
default	10:15:08.915429-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending background task with UIBackgroundTaskIdentifier: 83
default	10:15:08.915541-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier): Ending task with identifier 83 and description: <_UIBackgroundTaskInfo: 0x600001706480>: taskID = 83, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0), _expireHandler: <__NSMallocBlock__: 0x6000017070c0>
default	10:15:08.915642-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier)_block_invoke: Decrementing reference count for assertion <BKSProcessAssertion: 0x600002146080> (used by background task with identifier 83: <_UIBackgroundTaskInfo: 0x600001706480>: taskID = 83, taskName = GDTCCTUploader-upload, creationTime = 695601 (elapsed = 0))
default	10:15:08.915946-0700	Runner	BOOL _UIApplicationEndBackgroundTask(UIBackgroundTaskIdentifier)_block_invoke: Will invalidate assertion: <BKSProcessAssertion: 0x600002146080> for task identifier: 83
default	10:20:54.065627-0700	Runner	Evaluating dispatch of UIEvent: 0x600003b05880; type: 0; subtype: 0; backing type: 11; shouldSend: 1; ignoreInteractionEvents: 0, systemGestureStateChange: 0
default	10:20:54.065764-0700	Runner	Sending UIEvent type: 0; subtype: 0; to windows: 1
default	10:20:54.065834-0700	Runner	Sending UIEvent type: 0; subtype: 0; to window: <UIWindow: 0x111e0abe0>; contextId: 0x1367EA84
default	10:20:54.113920-0700	Runner	Evaluating dispatch of UIEvent: 0x600003b05880; type: 0; subtype: 0; backing type: 11; shouldSend: 1; ignoreInteractionEvents: 0, systemGestureStateChange: 0
default	10:20:54.114221-0700	Runner	Sending UIEvent type: 0; subtype: 0; to windows: 1
default	10:20:54.114296-0700	Runner	Sending UIEvent type: 0; subtype: 0; to window: <UIWindow: 0x111e0abe0>; contextId: 0x1367EA84
default	10:20:54.117341-0700	Runner	Evaluating dispatch of UIEvent: 0x600003b05880; type: 0; subtype: 0; backing type: 11; shouldSend: 1; ignoreInteractionEvents: 0, systemGestureStateChange: 0
default	10:20:54.117444-0700	Runner	Sending UIEvent type: 0; subtype: 0; to windows: 1
default	10:20:54.117507-0700	Runner	Sending UIEvent type: 0; subtype: 0; to window: <UIWindow: 0x111e0abe0>; contextId: 0x1367EA84
default	10:20:54.122049-0700	Runner	<0x111c06b30> Gesture: Failed to receive system gesture state notification before next touch
default	10:20:54.122575-0700	Runner	Evaluating dispatch of UIEvent: 0x600003b05880; type: 0; subtype: 0; backing type: 11; shouldSend: 0; ignoreInteractionEvents: 0, systemGestureStateChange: 1
default	10:20:54.123455-0700	Runner	Evaluating dispatch of UIEvent: 0x600003b05880; type: 0; subtype: 0; backing type: 11; shouldSend: 1; ignoreInteractionEvents: 0, systemGestureStateChange: 0
default	10:20:54.123899-0700	Runner	Sending UIEvent type: 0; subtype: 0; to windows: 1
default	10:20:54.124309-0700	Runner	Sending UIEvent type: 0; subtype: 0; to window: <UIWindow: 0x111e0abe0>; contextId: 0x1367EA84

From Console log if I filter using Downloader shows:

default	10:40:43.724392-0700	Runner	BackgroundSession <B69433D1-43A2-4B9F-B85F-DA0FF60A4511> background session setup will wait for reply: session <__NSURLBackgroundSession: 0x10f23e5c0> with identifier com.bbflight.background_downloader.Downloader
default	10:40:43.819390-0700	nsurlsessiond	Creating session with identifier: com.bbflight.background_downloader.Downloader for bundle id: com.developerscourt.santillana
default	10:40:43.853014-0700	nsurlsessiond	NDSession <B69433D1-43A2-4B9F-B85F-DA0FF60A4511> Session <B69433D1-43A2-4B9F-B85F-DA0FF60A4511> is for <com.developerscourt.santillana>.<com.bbflight.background_downloader.Downloader> using resource timeout: 14400.000000, request timeout: 60.000000 allowsCellularAccess: 1, allowsExpensiveAccess: 1, _sourceApplicationBundleIdentifier: (null), _sourceApplicationSecondaryIdentifier: (null), hasSqliteSupport: 1
default	10:40:43.853101-0700	nsurlsessiond	NDSession <B69433D1-43A2-4B9F-B85F-DA0FF60A4511>.<com.developerscourt.santillana>.<com.bbflight.background_downloader.Downloader>: created successfully
default	10:40:43.854315-0700	nsurlsessiond	NDSession <B69433D1-43A2-4B9F-B85F-DA0FF60A4511> Using XPC connection <NSXPCConnection: 0x60000330c280> connection from pid 87073 on mach service named com.apple.nsurlsessiond for client com.developerscourt.santillana with identifier com.bbflight.background_downloader.Downloader and PID 87073
default	10:40:43.855392-0700	Runner	BackgroundSession <B69433D1-43A2-4B9F-B85F-DA0FF60A4511> background session setup reply received: session <__NSURLBackgroundSession: 0x10f23e5c0> with identifier com.bbflight.background_downloader.Downloader

from background_downloader.

DevelopersCourt avatar DevelopersCourt commented on August 12, 2024

I found the example app. Tomorrow I'll try to run it in the simulator.

from background_downloader.

781flyingdutchman avatar 781flyingdutchman commented on August 12, 2024

In the Console log, please filter on "Category" Downloader (that is the way to get only logs generated by the downloader)

from background_downloader.

DevelopersCourt avatar DevelopersCourt commented on August 12, 2024

Hi.

You mean this:
Screenshot_2
image
image
image

If I filter by Category no logs shown in console. The only way I can see logs related to Downloader is filtering by Any and thouse logs are the ones that I already shared to you. If I'm doing something wrong filtering in console please let me know.

from background_downloader.

DevelopersCourt avatar DevelopersCourt commented on August 12, 2024

Hi.

I ran the example app and all goes well until I change the url from 'https://storage.googleapis.com/approachcharts/test/5MB-test.ZIP' to 'https://digital.santillana.com.pr/webadmin/storage/app/public/31/1 ¡Un enlace para compartir!.zip'. The same with my app. The problem is the url but only in IOs 'cause this problem not occure on Android.

If I paste my url in the mac's Safari or Google woks well.

No idea why on ios is not working...

from background_downloader.

DevelopersCourt avatar DevelopersCourt commented on August 12, 2024

I found that in Android not take in condideration if the url have spaces and other things like ¡!. But in IOs not works like that. An URL like this works perfect 'https://developerscourt.com/1Unenlaceparacompartir.zip' but an URL like this not 'https://developerscourt.com/Un enlace para compartir.zip'.

from background_downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.