Does iOS 12.2 support GPS for PWA? - ios

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.

Related

Get phone usage stats on 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.

App tracking transparency iOS 14.5 with newrelic

From iOS 14.5 it is mandatory to use ATT framework if we are sharing user info to the third party or using advertising in the app. Does it require to use of ATT if we are only using newrelic framework in our code.
As the following link points, "if the data is not linked with Third-Party Data for advertising or advertising measurement purposes", you don't need to implement AAT.
Our app was observed by Apple because we were tracking to third-party advertising libraries without implementing AAT. After removing this tracking (we didn't need it anymore) we were able to publish new versions of the app. We don't have issues for tracking to New Relic.

Track iOS App’s Mobile data and WiFi usage

I am working on a mini project to track iOS app’s mobile data and WiFi data. I saw some apps doing that through VPN , but I had no luck with NSExtentions.
Any reference is appreciated. I would like to collect device level data which includes all apps . Similar to the stats available in
Settings-> Mobile data
Apart from native iOS client , other apps listed here also achieve this. I know its possible through VPN but i could not find any development documents related to it. Is there any other method apart from VPN?

watch OS 2 beacon monitoring and ranging

has anybody found any information about interacting (ranging and monitoring) with Beacons in native Watch OS 2 applications?
I would like to give the user the possibility to range one in an home environment without having the phone in their pocket.
I can't find any docs anywhere and I am wondering if it's actually feasible - and obviously if there is any kind of example around.
Thanks
Core Location on watchOS is stripped of all the iBeacon functionality. There are no startRangingBeaconsInRegion: and startMonitoringForRegion: methods, as can be seen in the CLLocationManager reference documentation:
https://developer.apple.com/library/watchos/documentation/CoreLocation/Reference/CLLocationManager_Class/
The only option for now is to do the ranging/monitoring on the iPhone, and pass the results to the Watch app via the Watch Connectivity Framework.
UPDATE for watchOS 4: still no iBeacon in Core Location, but there's now Core Bluetooth available for the watchOS apps, which means your app can detect non-iBeacon packets, such as Eddystone, or Estimote's Nearable/Telemetry.
Only if your app is in the foreground or has execution time though. The latter meaning that, for example, if your app is already running in the background because you're using the new "location updates" background mode for turn-by-turn navigation, or you're tracking workouts in the background, then you can at the same time scan for beacons. In and on itself, detecting Bluetooth beacons won't keep your app alive in the background, it will get suspended.
directly use watch to monitor/ranging with watchOS is prohibited by Apple (it detailed in developer document). It mean you can not turn bluetooth on watch and start monitoring directly! But there're another way, you can integrate app with watchOS, I gave a tried before with our app and it work pretty good. We're using Estimote, you can refer right here: Estimote Watch SDK Integration
It can be transport notification from iOS device to watch. They provide several helpers support that. Good luck!

Is there a way to access Bluetooth 4.0 Low Energy devices in iOS?

The new iPhone 4S has support for Bluetooth 4.0 Low Energy devices. Is there an API for communicating with these devices in iOS?
It is part of the iOS 5.0 SDK. You can download the SDK and check it out.
As someone has mentioned, the APIs are available in the iOS 5.0 SDK. However, bear in mind that those APIs only provide support for ATT client, if you want to add services and act as a server you're out of luck for now. I truly hope Apple will add server support at some point, since some profiles (Alert Notification or Proximity) would benefit enormously: being able to be notified when you receive a new SMS/email or being able to "ping" your phone to find it would be great.
TI has a nice development package that includes a BLE peripheral, programmer, sample code, and sample iOS App. This is a great place to start and shows off most aspects of the Core Bluetooth API in iOS
http://processors.wiki.ti.com/index.php/Category:BluetoothLE

Resources