Post

Replies

Boosts

Views

Activity

Access original argc and argv from application delegate willFinishLaunchingWithOptions. How?
Hello all! Need to get access to the parameters of main function from application delegate method "willFinishLaunchingWithOptions". How it could be? Fond in ProcessInfo this functionality: NSArray* oArguments = [[NSProcessInfo processInfo] arguments]; But how to get original int argc and const char* argv[]? Or how to convert NSArray* to const char* argv[]?
1
0
871
Jul ’22
Get launch options at runtime. How?
Hello all! Is there any way to get launchOptions at runtime? When application already launched and working. It means not in the methods "willFinishLaunchingWithOptions" and "didFinishLaunchingWithOptions". Is this launchOptions, that passed into this application delegate methods, stored somewhere else? If yes - how to get them? My application is written on C++ and need to get independently when application is already running.
1
0
859
Jul ’22
iOS Geofence no launching app properly. Why?
Hello all! Right now developing application that should be starting by crossing geofence. Right now have strange problem. The application launching when some other application keeping CoreLocation active and gathering data on iOS 15, on iOS 13 all is working with delay, but working. The geofenge regions started for monitoring, there are presented icon on top bar. What is missed by me in this case? Is there working example?
0
0
442
Jul ’22
Keeping application in background after wake it up by Geofence event. How?
Hello all! My application required to be launched when Geofence event appeared. For now all is working - application launched by Geofence event, but only for 10-15 seconds. Is there any way to keep it working much longer? Is there any necessity to implement Background task object? For now in AppDelegate not defined background task, just actions that need for application functionality.
1
0
558
Jun ’22
Keep application always running. How?
Hello everyone! Got the question about how user might be prohibited of quitting application. The scenario is looking like company wants to see always where employee located. They need always monitoring GPS coordinates and avoid the situation when user killing application manually. Is there any way to disallow user ability to quit an application or restart it somehow automatically if it has quitted? Therefore some subquestions: How determine user killed application or it has killed by system? How to auto-run application at time of device start? Is there any way to run application like service/daemon? (previously there were no any such functionality maybe appeared now?) Or any other solution that might be simulating service behaviour? Is there any additional abilities for application developing if the app distributed under corporate account and not published for everyone via AppStore?
0
0
479
Jun ’22