I've written a small app where I want to open a web page (inside my content page using webview). The page needs the access to the camera of my phone. The issue is that there's only a message from the page that there's no access to the camera. Getting access through Xamarin.Essentials doesn't help. Opening the same page with Safari on the same device works, asking me if I want to give the permission to use the camera
Any ideas how to solve that?
Thank you in advance for your help!
Since this seems not to be possible due to lacking support of the base component of webview (webkit) I'll close this ..for now :)
If you're interested on this topic have a look on http://www.openradar.me/33571214 (3 years old but still true)
Related
I am looking for a way to launch Facebook Instant Games in the native mobile app from an external site. I have managed to launch the game in the desktop site simply by extracting from the built-in play button href's (e.g. https://www.facebook.com/instantgames/play/id_here). However I am having difficulty finding a way to launch the Messenger games from anywhere external.
Not sure if this is possible and far from my best Stack Overflow question, but the docs are helpless, so any help would be greatly appreciated, and also not to be crucified for the question as I don't have much more information to provide unfortunately.
As long as you have a page associated with your Instant Game you can use an m.me deeplink (e.g. m.me/everwinggame?game=everwing).
The format of these links is m.me/{page id}?game={game namespace}.
There's more information here, but appreciate the feedback on our documentation. Thanks!
I have already created an application which retrievs information through web service.
Now i thought about making the app read the titles and the user selected content.
Can I use any frameworks which would help me in making the text which I select to be in speech mode ie: It should read the content as similar as Windows speech Engine.
Check out the below link. It'll help you.
http://artofsystems.blogspot.com/2009/02/speech-synthesis-on-iphone-with-flite.html
I've been tasked with writing an iphone application that displays a set of images (think powerpoint slideshow). The content of these images need to be protected from forwarding
this task seems quite simple with one exception - I'd like to prevent the user from taking a screenshot
it's not like i'm protecting the crown jewels here, so I'm not looking for military grade super ninja protection. but on the iphone it's so common and easy to take a snapshot...
thoughts?
You cannot prevent a screenshot, and AFAIK you won't be notified that it is about to happen.
You have absolutely no control with the public SDK to prevent the user from taking a screenshot.
Just stick a copyright notice or warning on the display. Even if you could somehow protect against the double button screenshot, that would be of no help against someone taking a photo of one iPhone's display using another iPhone, etc.
I am working on an image editing app and therefore googled for it.
I have found some links which says that we can work with camera by ourselves, like here.
They say we can:
capture images from within our app (ColorSplash app)
using accelerometer with camera and some other features
So far my coding doing just opening camera and lets user do the rest.
But I want above listed features... at least the first one.
Can it be done?
i use code from this site to do what your first task do:
http://www.zimbio.com/iPhone/articles/1109/Picking+Images+iPhone+SDK+UIImagePickerController
http://trailsinthesand.com/picking-images-with-the-iphone-sdk-uiimagepickercontroller/
these both were links really helpful.
#Sawan yes you can do the things u want,capturing of image and its selection please take help from here and also u can use accelerometer in the same way we use in our apps
During the development of my iPhone app, I decided to integrate Google Maps by including a UIWebView with a URL I construct pointing to maps.google.com. The problem is that the website tries to get the user's location, displaying the "This app wants to use your location". This creates a number of issues for me, which I can explain if necessary.
Is there any way to disable the UIWebView / Mobile Safari from asking for the user's location. The only workaround I can think of is to use Google's Javascript v3 API to make my own map, but I would have to get a license and I'm not 100% certain I would be able to disable asking for location (although I think I can).
Does anyone have an alternate workaround or way of tackling this issue? Thanks!
I believe I found a suitable workaround for now. I remembered that you can embed maps from Google in your website using an iframe. I checked the url they construct to do this and noticed they appended an extra parameter, "output=embed". I appended the "output" variable in the url and pasted this into Mobile Safari on the simulator and it no longer asks me for my location.
The only drawback of this is that I can see so far is that there are some extra UI components on the page as it includes both the mobile controls and website embed controls on the page. Also, I have not tested this on an actual device yet.
Edit: Testing on the device showed that the embed controls don't work, but the mobile controls work as does every other aspect of the map.
Use an MKMapView instead.
(I'm assuming there's a reason you're not using MKMapView for this task and you're stuck with the UIWebView)
You might try asking for user location earlier in your application via CLLocationManager, i.e. right after launch. The permission alert will not be shown more than once. (whether the user chooses to allow or not, which you do not seem to care about)
Not entirely sure that this will work in your case though, UIWebView may still prompt for permission to share location data with the websites it shows.
Assuming it's done via JavaScript, you could try injecting some javascript in - (void)webViewDidStartLoad:(UIWebView *)webView using -[UIWebView stringByEvaluatingJavaScriptFromString:] (e.g. you could set the location-requesting function to null). I'm not entirely sure how well that works while the page is still loading, though...