We are developing iOS application and going to distribute it in Enterprise account. Want to integrate AirWatch and have several questions about this service:
Can we deliver some content to our App (Documents folder inside our
App) using AirWatch and how? *
Can we schedule the update of new version of our app on devices?
Can we manage bluetooth and WiFi on
devices (turn on/off)?
for example load new photos to Apps Documents folder - to all, or some devices. If yes, how? - Does exist some UI interface for it?
Thank you!
1 No. You can deliver key-value data, not content. You could use push notifications to notify the app, and embed into your app an offline content manager to download new data
2 Yes. When a new version is ready you can push that to the devices. A notification will be sent and once they're online they'll and try to download the app. User will also be able to download apps manually, browsing a catalog of your enterprise-distributed apps
3 Yes and no. You can set policies to restart automatically the wifi and bluetooth after 1 hour, not completely turn them on/off
Related
I want to know is there any way to turn on or off the iPhone wifi or switch the device to offline mode in codes in swift 4 or not
I know that apple may not allow the app can do such things to be distributed in App Store But it's Not important I just want to know is there any codes to do that or not (Just in swift 4)
5 Solutions Collect From Internet About “How to turn off internet connection, bluetooth and WIFI programmatically?”
Ans
You can’t. Apple does not allow 3rd party apps to change global system settings like that.
There is no API available to control cellular data,wi-fi,bluetooth within in an app , User have to go to settings to enable or disable cellular data,wi-fi and bluetooth.
This is not possible in iOS unless you jailbroke your device. Apple is not allowing any apps developer to access wifi/bluetooth. You can only check wifi/tooth is connected or not.
You can’t do that using the iOS application. Apple not allowing it.
Legally there is no way to do it. Even somehow if you are manage to do it, Apple will reject your app while submitting to AppStore.
update
I am not sure the following code will work or not, try once, initially add the header file to your project folder and create the bridging header to your code ,then use the below code where you need , for ref purpose I taken the answer from here
var tempSBWifiManager: SBWiFiManager = objc_getClass("SBWiFiManager")
// Steal a class from SpringBoard
tempSBWifiManager.sharedInstance().isWiFiEnabled = false
I am trying to build an app that will allow users to see all pdf files that are on the device (in some kind of a list with a preview) [Regardless of which app it belongs to on the device, all should be shown]. Is there anyway to achieve this?
Sorry but this is not possible on an iOS device because of a feature called sandboxing. Apple does not allow an app to access the sandbox of another app. Each app sits inside a sandbox of its own. This is iOS's security feature. There is no way to go around this feature.
Reference - About App Sandbox
I have an iPad app and I don't want to publish on app store.
I want to reconfigure the app from server i.e. if the flow of the app was:
Page 1 -> Page 2 -> Page 3
And I change data in the database to:
Page 1 -> Page 3 -> Page 2
My app should be reconfigured. I would also like new pages to be added in my app.
How to download the Swift files in user's app, compile it on the fly and update the app without user's intervention or through app store?
This is a private app and won't be published on app store.
How to download the Swift files in user's app, compile it on the fly and update the app without user's intervention or through app store?
You can't.
You can, however, design your app to have UI not hardcoded in the app, but defined in some configuration file (i.e. in JSON format) which you would download at app launch. You would need to implement functions to create UI elements from their JSON definitions, etc.
No, This is not how it works on iOS. You can't achieve this requirement through Native iOS development. You have to create a web app. You can build the app using React-Native or PhoneGap cross platform environments. Again there, without publishing app store you can't share iOS .ipa file like the .apk file in android. In that case, you have to buy Enterprise developer account and share.
Another option like building a UI using JSON is very tricky and takes lots of efforts. In case if you really want to do like this go for it.
Experts,
Recently I've used PhoneGAP Build service for my iOS App (HTML5 App built using Sencha Touch), and when i submit to app store, they rejected my app with this reason
in particular, we found that on launch and/or content download, your
app stores non user-generated content in iCloud backup directories. To
check how much data your app is storing:
Install and launch your app
Go to Settings > iCloud > Storage & Backup > Manage Storage
If necessary, tap "Show all apps"
Check your app's storage
Is there any solution?
please help
I already have this app published in BB and Android with out any issues.
https://play.google.com/store/apps/details?id=com.pavan.cinetalk
http://appworld.blackberry.com/webstore/content/32189889/
I think PhoneGap Build might be setting BackupWebStorage by default to iCloud, if you set up PhoneGap locally this setting can be changed in the Cordova.plist file see the below link:
http://docs.phonegap.com/en/2.2.0/guide_project-settings_ios_index.md.html
If im not wrong the message is quite clear, they just don't want you to upload to their cloud data that is not generated by the user.
I don't know your app, but sounds like are you backing up things like images or media used by the application itself instead of user's data ¿?
#Brett Bailey: Thanks for your input, finally this parameter worked and iTunes approved my app now
https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=687594497&mt=8
I want to build an iCloud based app that runs on both the Apple platforms, iOS and Mac. The app will use UIDocument on iOS and NSDocument on Mac to have a document based synchronization model - documents created on iOS will be available on Mac and vice versa.
The particular problem I'm facing is that I want the same iCloud container on both the apps. XCode creates a default container for the app based on the App ID, which has to be different on both the apps because this seems to be an Apple requirement - no two apps can have the same app id even if they are on different platforms.
So I left the default created container alone and added another container on both the Mac app as well as the iOS app. The app seems to work fine, I can create a new file package in both the apps in the correct place, but I'm having 2 issues:
The container does not appear properly in the iCloud settings management screen. In the entitlements section in XCode, I named the container as com.mycompany.myapp.mycontainer in both the apps. In the settings screen in iOS (Settings -> General -> Usage -> Manage Storage -> Show All) my app is listed as "mycontainer" instead of the App's actual name as I expected. Is it possible to supply a name and icon in the App's Info.plist to make it list properly?
My NSMetadataQuery is not working properly. I had made the iOS app with the Empty Application template, so the Info.plist was not properly setup with the CFBundleDocumentTypes key but I figured that out and fixed it. For firing my NSMetadataQuery in the iOS app, I'm using:
[self.queryCloud setPredicate:[NSPredicate predicateWithFormat:#"%K like '*.myextension*'",NSMetadataItemFSNameKey]];
with the search scope set like this:
[self.queryCloud setSearchScopes:[NSArray arrayWithObjects:NSMetadataQueryUbiquitousDocumentsScope, NSMetadataQueryUbiquitousDataScope, nil]];
I run the query after establishing the container's URL, I get the started and finished gathering notifications, but never the update notification from the NSMetadataQuery. Unless I go ahead and create a new document. If I create the document then I get notifications for Update, but only in that session. Next time I start up the app, the same settings don't give me any update notifications from NSMetadataQuery.
What am I doing wrong? Any pointers to articles on creating an iCloud document app targeting both Mac and iOS would be much appreciated! Suggestions, thoughts are most welcome.
I don't know about your NSMetadataQuery issues, but adding a shared iCloud container is easy, as long as you get the gotcha:
Pick one app ID that will be your shared cloud container. Doesn't matter if iOS or Mac OS X, you need to publish this app and it must be approved from the Apple Review Team* before your iCloud container will be available to any other app. e.g.
com.company.myawesomeapp
Note that you must not use a container name after your app ID (com.company.myawesomeapp.cloudcontainer), just use your appID!
Pick a second app ID (doesn't really matter), and create your second app. Open up Xcode and enable iCloud in the Capabilites Pane. Then under "iCloud Container Identifiers", add the identifier of your first (published and approved!) app
com.company.myawesomeapp
That's it!
There's just this one catch and that's the bottom line:
In order to use a container, an app must be available and approved. Before approval no other app may access your container, because technically it only exists as soon as your app is approved. Actually, it doesn't have to be available in the AppStore, it just needs to be approved (can be on developer held release).
You can only use a (shared) iCloud container if your app is published and has been approved.