Access Active Screen Time in React Native (for IOS) - ios

I'm working on an Application where I need to Access the Active Screen Time of the IOS device
Is there anyone who knows the solution?

Related

iOS asking for bluetooth permission even before the package is used

I'm using react-native-beacons-manager (https://github.com/MacKentoch/react-native-beacons-manager to scan beacons nearby using my react native app. It works perfectly but the issue is in iOS, it asks for bluetooth permission right when the app launches. But i only use this package in a screen where it's not loaded on app launch. In Android however it works as expected. It asks for permission only when i visit that screen.
What could be the reason for this and how can i fix this issue?

Is there a way to prompt a user to turn on/off WiFi in iOS from an Alert?

I have this problem where when I go out my iPhone 6s on iOS 9.3.4 tries to connect to every hotspot I pass. Then when it is trying to connect I can't get emails/texts/alerts etc. My solution has been to turn off WiFi. But then I get home again and forget to turn it back on and I wonder why my internet is so slow until I remember to turn WiFi back on. I got the idea for an app to build a geofence around my house and turn off WiFi when I leave that area. I know I can't do this automatically because of the iOS sandboxing restriction, but can I pop an alert when I cross the geofence boarder that asks if I want to turn WiFi on/off?
I haven't found anything current that allows me to do this. I have searched extensively and only found "Stumbler" but it appears to be from 2007. I only know C# and do all my app development in Xamarin so C# code would be best or if you know of any libraries/components/plugins.
Also, I just want this app for myself so no need to submit to app store.
Thanks,

Cordova camera support in iOS app conflicting with the ios location service

We have implemented a hybrid application. Our application is having the function like Quick Receipts, it does when user click on the quick receipts icon, camera get opens, user can take the img and use it.
its working fine with android devices, but when same thing suppose to do with iOS devices, it's not working. The problem is in iOS is, camera get opens and when take the img, the control automatically moves to the dashboard without any actions. This happens when location services is ON.
(iOS devices setting/privacy/location service enable).
if location service is disabled, then there is no issue with quick receipts function, it works fine. Please suggest how we can fix this issue without concern location services enable or disable.

Force user to migrate from iphone or ipad application to universal

We have separate application for iphone and ipad. Now customer expecting make a universal application. After universal application successful release how do we force the both user (iphone and ipad) to migrate universal application? Is it possible?
There's little you can do to force them to move. Gentle pushing is your only real option.
You could issue an update with a suggestion that they switch. If you control the server-side (if there is one) you could start refusing to serve the non-universal app as long as you give a suitable error message.

iOS web app: prevent screen dimming/locking

How do I prevent iOS from dimming and/or locking the screen of my WEB app?
This is for a WEB app, so any native code suggestion would not apply.
The WEB app would run without user input and I'd like to avoid iOS automatically dimming/locking the screen (without turning the setting off in the global settings).
Is there a way for a WEB app to tell iOS not to dimm/lock the screen?
If the above is not available, is there any third party app that would monitor the system and turn off screen locking/dimming when a given web app is running?
Thanks.
No you can not turn off the autolock from a WebApp. Also there is no way for any thirdparty app to detect this, since apps can not really run in the background.

Resources