iOS Question background fetch

le_toubib

Active Member
Licensed User
Longtime User
hi all
i ' m using the following code :

but the sub fetch_download is never reached ... what am i missing?
 

le_toubib

Active Member
Licensed User
Longtime User
i updated the above code to actually do something
but the application_FetchDownload event is still never reached. in both debug and release mode ..
i replaced the internal main.m file as instructed
 
Last edited:
Upvote 0

le_toubib

Active Member
Licensed User
Longtime User
i get this error from the ireleaselogger output once the screen go off
** -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:] ** unhandled action -> <FBSSceneSnapshotAction: 0x15741750> {
handler = remote;
info = <BSSettings: 0x15644490> {
(1) = 5;
};
}
 
Upvote 0

le_toubib

Active Member
Licensed User
Longtime User
allright
after a while , i turned on the screen , only then i received the following msg from the logger :

which is the expected result
BUT
it only arrived when i turned the screen on , nothing even showed up on the logger while the screen was off ...

i stumbled upon this online , is it related ? or am i doing something wrong ?:
 
Last edited:
Upvote 0

le_toubib

Active Member
Licensed User
Longtime User
so it's actually foreground fetch ?
Ok, is there anyway to this in a better controlled way, I.e at least to "know" when the Godly System will decide download.
Is it still the same in case of push notifications. I.e only when the screen is on that the device wake - download - notify ?
- for logistic reasons I cannot do it with a push server , it's there any work around to do it without ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
so it's actually foreground fetch ?
No. If it was a foreground fetch then it only would have worked when your app is in the foreground.

Is it still the same in case of push notifications. I.e only when the screen is on that the device wake - download - notify ?
No. The message will arrive even if the device is sleeping.
it's there any work around to do it without ?
Probably no. Why do you need to download anything while the device is sleeping?
 
Upvote 0

le_toubib

Active Member
Licensed User
Longtime User
There is random (and frequent) updation of a Google spreadsheet , that I read a small part of it from a php file located online , so in the abscence of a push server , I have to download this php output every 10 minutes and check if it's changed , if yes -> notify promptly.
It's there a better way to do that without a push server active 24/7 ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…