Display iOS Compass Within iOS Native Web App Page - ios

I am trying to figure out how to display an iOS Compass directly onto a page I created from within my iOS Native Web App. I don't want to tap on an area and it bring me to the compass application.
Essentially, I am working on a project where the accelerometer can be tested with the rotation of the device by using the iOS compass directly on my page without having to go directly into the compass application.
(It's kind of hard to explain. My apologies for that.)
Img Ex.
http://i442.photobucket.com/albums/qq145/inmyeyesurpsycho/AVF%20Project/ScreenShot2013-04-14at65356PM_zpsa0ab43e8.png
(The Password Is: compass)
If someone has any advice on what I can do to make this happen, I would really appreciate it.
P.s.
It has to work as an iOS Native Feature.

As far as I can tell there's no way to access the Accelerometer through a safari web app. So, you'll need to use something like google GPS to figure out that info.

Related

How can you prevent users from taking screenshots in a React Native IOS app?

I am currently building an IOS app with React Native, and I am looking into how to prevent users from taking screenshots on certain parts of the app.
I read this article on this issue: https://www.netguru.com/blog/prevent-screenshots-react-native, and I learned that there are basically two options. I can either use the paid ScreenShieldKit SDK or I can create an invisible screen animation that somehow covers the content of the app in a screenshot.
I am not looking to pay for ScreenShieldKit, so how can I go about making this animation to cover screenshots on my app, and will it even work?
Any help is appreciated. Thanks!
The two options for preventing screenshots on a React Native IOS App
ScreenShieldKit's technology is patented. And more likely than not, it is based on the other solution which you yourself know of (invisible screen animation). So it may not be wise to post the exact code here, as it could very well infringe upon their patent.

How to make the webpage scroll automatically in an iOS app?

I'm doing my graduate project.
I'm making an simple view ios app that detects your lookat point using ARFaceAnchor and use this information to scroll the webpage.
BTW, the webpage is displayed by WKWebKit, not SafariServices.
I didn't find the relative functions to solve this problem.
Thanks very much!

Polymer Web apps Home screen for IOS

I have a polymer web app that can be easily added to the Home Screen of an Android device.But I am not getting any way to add home screen for ios.
In google developer blog I find one post where they told it's not possible for ios.This post is now backdated.I believe there have some way to add home screen for ios/iPhone in 2017 :)
https://developers.google.com/web/updates/2015/10/splashscreen
Any suggestion or help will be really appreciated.
This feature I am looking for ios
Apple does not support Progressive Web Application features yet....
They have supported an Add to Home Screen Experience since the iPhone was first released. You need the touch icons referenced in the previous answer.
You still need to manually prompt the user to add to the home screen. I have used Spinnelli's library to help, http://cubiq.org/add-to-home-screen

Suggestions for activating front facing camera within Safari on iPad

I'm trying to create a kiosk-style customer registration process with an iPad, but doing it an an entirely web-based environment, rather than a purpose-built app.
During the registration process, the user is required to take a photo of their own face using the iPad camera.
I have been experimenting with the HTML5 Media Capture tools, but unfortunately, this always defaults to the iPad's back camera, rather than the front-facing camera. This means the user must then switch to the front facing camera, which isn't ideal as part of the user experience.
I can't see any way of forcing the iPad to default to the front camera in the device settings, and my searches haven't revealed any way of doing this with HTML only.
I've had a look at apps such as "Picup", but they don't seem to offer much more than is already achievable with HTML5 with regard to camera control.
Can anyone offer any suggestions? Does anyone know of any other iOS apps (like Picup) that might give the ability to activate the camera for uploading images in a form, but can be configured to use the front facing camera as default?
Or am I going to have to go down the path of creating a purpose-built app to get the control I need?
Any suggestions would be welcomed, and thanks in advance for your reply.
The Media API currently doesn't allow you to distinguish between front and rear cameras, so there is currently no method (that I know of) that allows you to select the front camera.
However I would suggest perhaps building your app the way you are, but using PhoneGap Build (which can package your app into an iOS app) and the Camera Plugin (http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html) which does allow you to specify the front camera (see options->cameraDirection) apparently (I haven't tried it myself).

blackberry camera Application

I am implementing camera application using then example comes with blackberry plugin for eclipse named "CameraDemo" the problem is that when the screen loses focus It does not display the camera view istead of it shows like this
has anybody faced such problem whats the solution?
This way of taking picture (using the Player and VideoControl.getSnapshot()) does not work nice on all BB models. I'd even say it works nice only on a narrow set of BB models. So if you are going to use your app on a wide range of BB models, then this is not the right way to go.
Instead to take a picture use a built-in Camera app. Here is a starting point on how to do that.
Basically you invoke the built-in Camera app and listen for the file-system changes to detect a new image file path. Then you need to close the built-in Camera app somehow - it's possible to do that by simulating two 'Esc' button presses.
Yes, this sounds a bit hacky/over-complicated, but that's how BB engeneers arranged that for us. :) BTW, this is actually not so bad if compare with Android where different device manufactorers violate the common rules and implement the Camera app in their specific way so you are not able to write the code once covering all Androids.

Resources