Code Monkey home page Code Monkey logo

backgroundtask's People

Contributors

amitmakhija30 avatar hiteshtrivedi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

backgroundtask's Issues

iOS 13 background task

Hello,

This is a question not an issue. is there any limit on how many times we can perform a task? or how soon we can make another call to perform same action again and again.

We have a project that stops after iOS 13 release we were using background location for that but it looks like it stops working in iOS 13.

I really appreciate your quick reply.

Thanks

Manual Background Refresh Failure

Received below error when manually running background refresh

No task request with identifier <decode: missing data> has been scheduled

Code used
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"com.SO.imagefetcher"]

Steps to recreate

  1. Run application on device
  2. Send application to background (triggers background tasks)
  3. Reopen application and pause application using debugger
  4. Enter code used above into debugger and hit Enter (simulates background task
  5. Resume application using debugger play button

It seems that both tasks are not being registered causing an error in manual call

BGTaskSchedulerErrorDomain Code=1

I am getting below error

Could not schedule app refresh: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)"
Could not schedule image featch: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)"
2019-10-23 18:01:35.963349+0530 SOBackgroundTask[52447:426458] Can't end BackgroundTask: no background task exists with identifier 10 (0xa), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

Any help would be appreciated. I am running on simulator.

When we enter in background our app getting error

Could not schedule app refresh: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)"
Could not schedule image featch: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)"
2020-01-11 17:54:07.821502+0530 SOBackgroundTask[6283:167953] Can't end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

BackgroundTask

Hi,

About your Demo, it's working fine when the iOs device is plugged but when it is powered on battery, strange thing happened. It will continue sending notifications more rarely but no updated reading on the count of photos! I'm running iOS 13.2.2 and I'm saw somewhere on the Web that the background task run less often when on battery (of course).
Did you experienced that behavior?

Thanks,

Marie-Louis Marcoux

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.