Comments (5)
I have the same issue.
from appsales-mobile.
I fixed this locally a few months ago. You just need 3 changes to make it save when the day/week was downloaded instead of when the app exits. Here are the changes to ReportManager.m:
1: In the init function at the top, remove the call to [[NSNotificationCenter defaultCenter] addObserver
2: At the end of successfullyDownloadedDays function, add this line before the line starting with NSNotificationCenter:
[self saveData];
3: At the end of successfullyDownloadedWeeks function, add this line before the line starting with NSNotificationCenter:
[self saveData];
from appsales-mobile.
Another option, if you are using iOS 4 only, simply replace the notification type with UIApplicationWillResignActiveNotification The saveData method will be called whenever you enter the background. (I also added all four methods to the appDelegate, not sure if you need to though.)
If you still need iOS 3.x or iPad support you can add this BOOL to the Info.plist to prevent multitasking: UIApplicationExitsOnSuspend (set to TRUE) and then the app will terminate instead of backgrounding and of course call saveData
:-]
from appsales-mobile.
For multitasking support, you can just change the notification that blackfrog mentions above to listen to UIApplicationDidEnterBackgroundNotification
from appsales-mobile.
^^^ sure that's fine if you don't care about saving your "reviews" data. Personally I do care and want to save my "reviews" data and the UIApplicationWillResignActiveNotification fix properly saves all data, not just the sales info when entering the background. :-]
from appsales-mobile.
Related Issues (20)
- fiscal months not handled for 2016 and + HOT 7
- Display wrong figure on monthly report HOT 2
- iOS 10 - App event doesn't Open HOT 2
- Report not Load
- App is Not Working Now - iOS 10.1 HOT 7
- Doesn't support 64-bit HOT 1
- The Autoingestion tool is no longer available HOT 1
- Reports from Nov 20 to Jan 2017 are displaying under Fiscal Month December 2016 HOT 1
- Reporter auth moving to tokens
- Can not use for several days HOT 7
- NSURLConnection finished with error - code -1022 HOT 4
- Can not Load Reports from last 15 days HOT 2
- Lots of $NaN in Sales
- Broken again - Downloaded report has incorrect date, ignoring HOT 11
- crash "export reports"
- Can't generate CSRF token
- pythonista
- accept
- ok
- https://www.instagram.com/ismail.ozcetin.33?igsh=OHZ1ZHRmY21rMTVl&utm_source=qr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appsales-mobile.