Request internet permission before connect for iOS (#794)
* Attempt to fix API error 1100 * NSURLSession fake call to exec iOS network settings dialog * use http://captive.apple.com/generate_204 for requesting internet permission * moved MobileUtils to IosController * replaced callbacks with signal-slots in apiController
This commit is contained in:
parent
abb3c918e3
commit
33d1518fd2
20 changed files with 274 additions and 264 deletions
|
|
@ -15,7 +15,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef Q_OS_IOS
|
||||
#include "platforms/ios/MobileUtils.h"
|
||||
#include "platforms/ios/ios_controller.h"
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -46,9 +46,8 @@ void SystemController::saveFile(QString fileName, const QString &data)
|
|||
#ifdef Q_OS_IOS
|
||||
QStringList filesToSend;
|
||||
filesToSend.append(fileUrl.toString());
|
||||
MobileUtils mobileUtils;
|
||||
// todo check if save successful
|
||||
mobileUtils.shareText(filesToSend);
|
||||
IosController::Instance()->shareText(filesToSend);
|
||||
return;
|
||||
#else
|
||||
QFileInfo fi(fileName);
|
||||
|
|
@ -67,8 +66,7 @@ QString SystemController::getFileName(const QString &acceptLabel, const QString
|
|||
|
||||
#ifdef Q_OS_IOS
|
||||
|
||||
MobileUtils mobileUtils;
|
||||
fileName = mobileUtils.openFile();
|
||||
fileName = IosController::Instance()->openFile();
|
||||
if (fileName.isEmpty()) {
|
||||
return fileName;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue