Get phone usage stats on iOS - ios

I am building a mobile app for digital detox which requires tracking app usage by the user.
On android we have the Usage Stats Manager that provides events as well as aggregated stats and works well.
Apple announced ScreenTime and DeviceActivity recently which are synonymous is nature to UsageStatsManager but there is no documentation for the APIs of either.
A related question (Programmatically get application usage from Screen Time in iOS 12) suggests FamilyControl but it does not work without enrolling the device as a child device.
Any direction with the two APIs or method for screen time tracking on iOS will be much appreciated.

Related

We are currently investigating an issue impacting Source Type data for iOS 16.0 users. - Apple App Store Connect info banner

On one of my Flutter apps in the Apple App Store Connect web application, an information banner is displayed as follows:
The text "We are currently investigating an issue impacting Source Type data for iOS 16.0 users." seems to indicate that some reports or analytics cannot be retrieved for a yet unknown reason.
I can see that there are some downloads still for the iOS 16.0 platform. I cannot see any other activity for this platform. Probably because there are not that many users yet.
My question is whether this information may be an indication that an issue is affecting in any way the user experience when running on iOS 16.0 platform?
I don't have any mobile device using this platform at the moment. So, I cannot test myself.

Apple HealthKit Determine Between Watch and iPhone

Currently we are programming an application in Xamarin. The application pulls activity data from the apple health kit. We haven't found a class that can distinguish between the apple watch and the iphone data, when we pull from the Apple Healthkit. For example, when someone walks with their phone and watch it is logging steps for both devices. So we are having trouble getting an accurate count.
I know Swift has predicateForObjects & HKSourceQuery. However, is there a version of these classes for xamarin?

Change iBeacon UUID (or Major/Minor) with Custom iOS App?

Has anyone had success with configuring non-name brand iBeacons (eg. https://www.ebay.com/itm/NRF51822-2V-3-3V-bluetooth-4-0-wireless-module-for-ibeacon-base-stat-JF/254232206096?hash=item3b316b9b10:g:TT4AAOSwaMtcnXbr) with an iOS app?
I have an app running that can scan for these beacons just fine, but my target application involves modification of the beacon UUID which (as far as I understand) is fairly contingent on the SDK provided by the maker of the beacon. Things like Estimote are pretty clear about their SDK capabilities but the beacons are a bit too expensive and bulky.
Open to literally any input or recommendations, I'm hitting a wall here.
Thanks.
The provider of the beacons should have a configuration app available. Avoid providers without such an app.
Even though iBeacon is exactly specified, configuring such beacons is not, so apps are not interchangeable.
I've used Wellcore beacons successfully, that are quite competitive on price when ordered directly from China. I made a free configuration app for them, based on their SDK, as there was no such app in English: https://play.google.com/store/apps/details?id=com.abiro.cliqtagsbeaconwriter
I got bad reviews as Wellcore changed chipset without telling me, so the app stopped working, but that's fixed.

Does iOS 12.2 support GPS for PWA?

I'm about to build a PWA, but it requires a use of GPS. I know Android supports that, but have no clue if that will work for iOS users.
Does anyone know whether iOS 12.2(current last version) supports GPS for PWA?
100% sure you can use GPS in iOS PWA
Abilities of PWAs on iOS
With the Web Platform on iOS you can access:
Geolocation
Sensors (Magnetometer, Accelerometer, Gyroscope)
Camera
Audio output
Speech Synthesis (with headsets connected only)
Apple Pay
WebAssembly, WebRTC, WebGL as well as many other experimental
features under a flag.
Limitations
Compared with native iOS apps:
The app can store offline data and files only up to 50 Mb
If the user doesn’t use the app for a few weeks, iOS will free up the
app’s files.
No access to Bluetooth, serial, Beacons, Touch ID, Face ID, ARKit,
altimeter sensor, battery information
No background processing
No access to private information (contacts, background location) and
also no access to native social apps
No access to In App Payments
No Push Notifications, no icon badge or Siri integration
Progressive Web Apps on iOS are here - Medium
ref1
ref2
For anyone who wants a detailed review of PWAs on iOS 12.2, please check this article from Maximiliano Firtman on Medium (published on March, 26th - 2019). In short, Apple Web Kit team created a new framework for PWAs. It doesn't rely anymore on Safari. The main drawback I experienced is that updates through service worker seems not to work anymore as well as offline browsing when the page includes lazy loaded pictures.

Get time of usage of other apps (iOS) [duplicate]

I'm interested to know if it's possible to develop an similar app for iOS like this one that his just been release for android this week:
https://play.google.com/store/apps/details?id=com.appuccino.frequencyfree
the app track other apps usage tracking and show the user how much time he spend on each app.
thanks.
No this isn't possible, Apple will not allow this as every app works in a sandboxed mode so it doesn't know about other apps on the device and will be rejected under:
2.6 Apps that read or write data outside its designated container area will be rejected
Of the Apple Review guidelines

Resources