Post not yet marked as solved
I've created a test project in which I can successfully receive the FamilyControl authorization for the child device.
Then on the parent device(where the parent account is logged in as the iCloud account), I basically used the following test code as provided in the documentation FamilyActivityPicker
struct ExampleView: View {
@State var selection = FamilyActivitySelection()
@State var isPresented = false
var body: some View {
Button("Present FamilyActivityPicker") { isPresented = true }
.sheet(isPresented: $isPresented) {
FamilyActivityPicker(selection: $selection)
}
.onChange(of: selection) { newSelection in
let applications = selection.applications
let categories = selection.categories
let webDomains = selection.webDomains
}
}
}
I get the following error on the view :
The operation couldn't be completed. (FamilyControls.ActivityPickerRemoteViewError error 1)
For authorization errors I was able to look into the FamilyControlsError enum in the FamilyControls framework, but I can't find an enum for ActivityPickerRemoteViewError.
Any idea as to why it's failing to load?
I believe I am using the right setup in terms of the account that I am logged in to. I do have the FamilyControl capability, and I was able to successfully provide authorization for the child.
Is there any other prerequisite that needs to be done to load the FamilyActivityPicker?
Also, Do you know where I can find the error codes corresponding to ActivityPickerRemoteViewError ?
What does error 1 indicate?
I do see the following in the console logs :
2021-06-09 16:42:38.430112-0400 NN Family Control[849:38700] [lifecycle] [u 9F1F2B94-76F6-4D8F-ADE3-6D1C14EE5074:m (null)] [com.apple.FamilyControls.ActivityPickerExtension(1)] Connection to plugin interrupted while in use.
2021-06-09 16:42:38.476929-0400 NN Family Control[849:38704] [lifecycle] [u 9F1F2B94-76F6-4D8F-ADE3-6D1C14EE5074:m (null)] [com.apple.FamilyControls.ActivityPickerExtension(1)] Connection to plugin invalidated while in use.
Post not yet marked as solved
Apple introduces MDM to subscribe to certain events in Apple business manager Apps and Books through specifying the URL in "notificationUrl" filed during client context command.
What the best way to design it for a closed network MDM Server
How does it work for MDM with a self-signed certificate or enterprise certificate? Will it cause any SSL issues?
Post not yet marked as solved
Just wondering where we can download the new version of configurator for iphone? The WWDC keynote says it’ll be available for download in appleseed for IT. Just can’t seem to find it.
want to start testing using it to add some macbooks to apple business manager
Post not yet marked as solved
I was able to start the device activity monitor. I was able to see the Device Activity Monitor Extension as a process, and was able to attach to it via Xcode.
Now I am trying block a specific 3rd party application, via the Shield.
I am using this piece of code for intervalDidStart :
override func intervalDidStart(for activity: DeviceActivityName) {
NSLog("Interval started for Device Activity")
let blockedApps : Set<Application> = [Application(bundleIdentifier: "com.facebook.Facebook")]
store.application.blockedApplications = blockedApps
super.intervalDidStart(for: activity)
}
I've declared store in the DeviceActivityMonitor class as follows :
let store = ManagedSettingsStore()
This is the error I see in the Console:
Error Domain=UsageTrackingErrorDomain Code=1 "Something without a application-identifier entitlement tried to manage usage budgets" UserInfo={NSLocalizedDescription=Something without a application-identifier entitlement tried to manage usage budgets}
The above use case should work right? I should be able to apply the settings inside DeviceActivityMonitorExtension?
What does the application-identifier entitlement look like?
How do I use it?
Post not yet marked as solved
WWDC21 session 10123 shows a screen that implies the guardian instance of your app is able to select apps on your child's device to encourage or to control. In my experience with the API so far I can't see a way to do this. The API only seems to work on the child's phone. Here are my questions:
Is there a suggested way to determine whether the app is running on a guardian device? The only way I can see is to attempt AuthorizationCenter.shared.requestAuthorization and check for an error value of .invalidAccountType. But it seems you could get that error for other reasons too.
Is there a way to present FamilyActivityPicker on the guardian device but have it show apps on the child's phone? I don't see any thing in the API for selecting a child account to access with `FamilyActivityPicker', it seems to only show the phone's user's apps (or no apps if it's the guardian's phone).
After retrieving app tokens from 'FamilyActivityPicker' is there a recommended way to present to the user in the UI? The WWDC session shows an app icon and app name (i.e. "Books" and "Solar System"), but my understanding is that info is hidden from the developer for privacy reasons. So I'm wondering if the example in the session is really feasible.
Post not yet marked as solved
we are getting error in selection.
Post not yet marked as solved
Hi all, I have a sample app which I created in my local development env. I added the Family Controls capability and the simulator is logged-in to a child account on iCloud that is part of a family group. When I request authorization I keep getting Error Domain=FamilyControls.FamilyControlsError Code=3 "(null)" in the error object returned with the failure result. I am thinking Code 3 represents the enum case for FamilyControlsError which would be invalidArgument. What does that mean and how do I fix it? Also is there a way to map the error object into an FamilyControlsError rather than guess which enum case it is?
Here is my code:
import SwiftUI
import FamilyControls
@main
struct TestScreentimeAPIApp: App {
@UIApplicationDelegateAdaptor private var appDelegate: AppDelegate
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
if #available(iOS 15.0, *) {
let center = AuthorizationCenter.shared
center.requestAuthorization { result in
switch result {
case .success():
break
case .failure(let error):
print("error for screentime is \(error)")
}
}
}
}
Post not yet marked as solved
Hi,
It's been multiple times our app got refused. We first enabled the "Made for kids" checkbox. Then they told us we could not have analytics in our app if it was in this category. We chose to keep our analytics and not to be in this kids category anymore so I unchecked this option. I submited again the same build but the review team keeps telling us our app is not complient with their guidelines for app made for kids. Though our app is not in this category anymore so I don't know why we still have this issue... our app have never been validated even once by the review team so our app should be able not to be in this category.
We are considering removing our app and recreate it again without ever checking this "made for kids" checkbox. We are just short in time and are afraid it could last a very long time. But after all these refusals We are losing a lot of time so it could be a solution.
What do you think please?
Thanks for your help,
Hello, I am wondering how to designate my DeviceActivityMonitor extension as the principal class on Xcode 13 beta 5
Documentation: https://developer.apple.com/documentation/deviceactivity/deviceactivitymonitor
Post not yet marked as solved
Is there a way to tell if Screentime is ON and the user has set a Downtime or App Limit and my app was NOT on the Always Allowed list?
Is there a Screentime exemption for a medical app that must always be accessible for the safety of the user?
Post not yet marked as solved
Dear Friends,
We are developing an application for IOS, but we are challenging in a situation. We want to track usage time of other apps such as Duolingo, Tandem etc. in our application. We don't want to track application, we only aim to track usage time. Related to this, we found an API called Screen Time API, nevertheless we couldn't be sure that we are allowed to take such information. In this manner, we need your recommendations and comments about this idea and API.
The app will support users to reach their aims by tracking their usage of some specific apps that are related to their targets. For instance, if a person needs to practice some language in Tandem, he or she can see Tandem usage on our app.
Can we import their usage time information of the users' apps?
Can we use Screen Time API to realize this target?
Will we need to create a document like proposal for the AppStore team to express our aim and method?
Post not yet marked as solved
I have a kids / education app in the store. My app is free with limited functionality and users need to buy in-app purchase option for upgrade.
Recently I got some emails from school / institutions asking if they could get the upgrade version app via School Manager. It seems like it's impossible to buy in-app purchase in bulk via School Manager. (Please correct me if I'm wrong about this.)
So I built and submitted a separate paid version of my app with "School Edition" added to the name and no in-app purchase. But this app got rejected with the following message.
"This app duplicates the content and functionality of other apps submitted by you or another developer to the App Store, which is considered a form of spam."
I replied that many other developers are doing the same approach and they are live on the app store. They gave me a short answer saying that they can't provide feedback on app concept and I need to review the guidelines.
I know there have been many apps that had both Lite (free) and Pro (paid) version. And there are still many apps that have the same approach such as MathTango.
MathTango
https://apps.apple.com/us/app/mathtango/id1234698308
https://apps.apple.com/us/app/mathtango-school-edition/id1333842226
Is there anyone else who had the similar issue or who could give some advice on this?
Hello! I am just starting to learn development of applications for IOS, I have already studied the section of training from Apple "Intro to App Development with Swift". Please tell me in what direction should I go further in the study of developing applications for IOS?
Post not yet marked as solved
I managed to achieve the list of children's applications on the parent device. But I can't manage restrictions for these applications.
Is it only available from the child's device or there is a solution for the app management from the parent's app?
Post not yet marked as solved
Our unity gaming apps were very stable on OS versions before 14.7.1, since this version release we are observing an increase in crashes due to memory availability or access file storage.
We went through release notes of 14.7.1 & other latest iOS version and didn't found any thing which can cause these issues.
The unusual thing is, the same app which was excellently performing on 14.6 started to give crashes on 14.7.1 and later versions.
Is there anything i am missing with respect to any changes to make apps compatible with iOS version 14.7.1 and above.
We use Unity to create gaming applications and apps group capabilities too.
Post not yet marked as solved
Hi, recently we purchased an additional 100 ipads for our school. Unfortunately, they were purchased without my involvement under a apple business account. I need to move them to my apple school manager account so I can manage them with the current mdm and ipads in apple school manager.
Post not yet marked as solved
Hey, my son is 10 years old an developed a small app and now he wants to test your app on his iphone.
How can we manage this?
We should support our kids which wants to learn.
I would recommend an kids developer Account like you provide for the student program.
Thx
Sebastian
Post not yet marked as solved
How do I get my market place accepted into the Kids Category?
I have submitted my app Kids Help Kids twice and it is live in the app store now, but with 17+. Both times I have submitted my app their response to the Kids Category is "Specifically, it is a marketplace".
I am following all the necessary laws and my app features are similar if not the same as Vinted (also a marketplace, but is 4+).
Can anyone give me any advice?
Post not yet marked as solved
The event threshold callbacks are inconsistent. We receive the callback 30mins to 1hour late after scheduling or it stops coming suddenly. Is there any limit how many callbacks will be coming per hour or day? Sometimes I don't get the callback at all. Sometimes it works properly for the whole day(Same code without any change).
Additional note: Sometimes I don't receive the schedule start call-back but the event threshold.