iOS WKWebView won't access iPhone XR camera - xcode

I created an iOS WebView app and wanted to display the following website: https://qrcodescan.in/ within this app through WkWebView in fullscreen. Opening it up on safari works perfectly fine and before I can use it I get the message regarding granting camera access.
Opening the same URL up on my app though won't give me any pop up asking for camera permission and therefore the app is not usable. The console show this message: Connection to daemon was invalidated.
I even asked someone to look for the problem and he deployed the same project without any configuration on his iPhone 8 running iOS 13.5.1 and it works perfectly fine. I use an iPhone XR and iOS 13.5.1 as well but it seems. like that I can't get any camera access.
Is there anyone who eventually knows how to fix this problem?

Try asking for camera permission before the web view is created in your app. Request these permissions as if your app was using the camera, not the web view. The web view should then be able to request permission.

Related

deploy to firebase hosting with problems

My app is an Ionic capacitor angular project. It is very simple, just to read QR codes. Testing on android studio works without problem, the app open the camera, read the QR and present the correct results. When I deployed to Firebase, the process finish without any problem and the app is on the screen of my device (tablet), when i tried to begin to scan, the camera is not open, no error messages..nothing, what could be the error? this also happened in other device(my phone), exactly the same behavoir, camera is not open. I would appreciate your comments.
Tried in different devices and same problem. Why in android studio it works and not after deploy in firebase?

Xamarin.Auth doesn't persist data after closing the app - ios

I have built an application through Xamarin.Forms, I am using xamarin.auth to save sensitive (login) data on each platform, Android app works correctly, I login to the app, save the data, close the app, re-open it and no need to login, the app goes directly to the home page, but in ios every time I open the app I need to login, and after that I close it and re-open it again I need to login again, I think there is something missed, I am debugging on a real iPhone 7 plus device, any help please?

Xcode iOs Simulator - native websites check before going online

I am downloading the Xcode from the app store to check how my websites will look on different devices. I know how to use the iOS simulator but for websites that are already online. Is there a way to check how a website looks like when i have it native on my mac? I mean when i am at the development stage of the website before put it online, is there a way to check it on the iOs simulator?
Thanks
The simulator contains a version of Safari that can access the outside world via your Mac's network connection. So you don't have to do anything — just type in the address as with any other browser.
You can also drag and drop local HTML content (or anything else the simulator's miniaturised suite of apps can handle) directly onto the simulator to preview without uploading anywhere.

Cloudkit error when querying public database from simulator

I'm working on an app where I recently decided to go with CloudKit and am now at the point where I need to implement the backend functionality. In a nutshell, this app will use a collectionview to display images retrieved from a CK database. Up until now, I just dumped some images in a folder on my desktop and retrieved/parsed the images from there to render the collectionview. I then used the CK dashboard to create some records and wrote an initialization method to try and retrieve them. I was getting various CKErrors, such as network failure, error completion without receiving a response from the server, could not send a valid signature, etc. I immediately assumed the issue was with my code since it was my first attempt with CloudKit. However, I ran the latest code on my device before posting on SO and it worked! I got a successful response with the number of records in the results array that I was expecting.
So now I know longer need help with fetching CKRecords like I initially thought. But how do I resolve this issue with the simulator? I saw some other post about making sure you're signed into iCloud on the simulator. I believe I am, but do not know how to check to be sure. Also, I'm running Yosemite and Xcode 6.1.
Any help is appreciated!
on the simulator go to the settings app. You can do that with menu hardware, home and then open the settings app, select iCloud and make sure that you are logged in.
To use your Apple ID on iCloud on the iPhone Simulator, make sure you turn off Two-way authentication. It should then work on the simulator.

Local Notification only appearing in Notification Center when app is open on iPhone

I'm having a strange issue. My UILocalNotifications are only appearing in the Notification Center when the app is open. If I have the iPhone at the launch screen they don't appear. The icon badge numbers from the notifications do appear though. The exact same code works perfectly on the iPad version of the app. I've verified that the body text is getting set correctly. The app is enabled in Notification Center with all options on as well.
If I have the app open and then tap home to leave the it, the notification disappears from Notification Center as well.
Has anyone else seen this?
Thanks,
Jason
My bad, missed one piece of code when merging from the iPad version.
Jason

Resources