I submitted an update to my extension over a month ago. It's still pending approval process.The update itself wasn't quite significant IMO - just displays additional data in the same UI without altering the architecture of the extension. I have emailed Apple few times however, I received the standard non-specific responses (paraphrasing - we'll let you know when we finish reviewing your extension). In the meant time, I am almost ready to deploy some new cosmetic updates (& minor bug fixes) - but at this point I have no idea when these updates will reach my users.In light of all this, I want to know if there are any best practices that I can follow either in my code, the submission process, or while designing my web extension that will make approval process easier for Apple employees to review and faster for developers like me. To keep things simple, I follow the steps below:Smaller & simpler and non-minified code (except for libraries such as JQuery and bootstrap).No dynamic script injectionNo long re
Search results for
ASWebAuthenticationSession cookie
1,295 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello, please let me ask a question.I'm trying to use NSMutableURLRequest with WKWebView in order to manage cookies.I wrote the following code.-----// Client Application side (Objective-C) NSMutableURLRequest* mutableRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@http://xxx.xxx.xxx.xxx/]]; // add 2 cookies [mutableRequest addValue:@id1=AAA;id2=BBB; forHTTPHeaderField:@Cookie]; [webView loadRequest:mutableRequest];-----// Server side (PHP / Symfony framework) $timeout = strtotime( '2099-12-31' ); setcookie( 'id1', 'CCC', $timeout, '/' ); // change setcookie( 'id2', 'DDD', $timeout, '/' ); // change setcookie( 'id3', 'EEE', $timeout, '/' ); // add print_r( 'cookie[id1] = '.$_COOKIE['id1'].'<br>' ); print_r( 'cookie[id2] = '.$_COOKIE['id2'].'<br>' ); print_r( 'cookie[id3] = '.$_COOKIE['id3'].'<br>' ); [...] header( 'Location:'. $url ); // reload this page (once)-----However, I got the following results.-----(1st - before reload)cookie
Hi,I meet an error when my iOS enrollment finished over the air.And I could see the installed profile in my iOS (10.3.1)But I get the error message from the iOS log, and my iPhone could NOT receive the message which is sent by MDM server. There is no any error in my MDM server and I think the mdm message has been sent to APNs.Here is detail log message:++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++May 5 15:50:26 iPhone corecaptured(CoreCaptureDaemon)[2067] <Notice>: CCProfileMonitor::setStreamEventHandler Woken up by notifyd.May 5 15:50:26 iPhone mdmd[2068] <Notice>: MCJQ 1 Enqueueing jobBlock 5, calling function -[MCMDMServer connection:didReceivePublicToken:]_block_invokeMay 5 15:50:26 iPhone mdmd(libdispatch.dylib)[2068] <Notice>: Telling MDM Check-In Server about new device token.May 5 15:50:26 iPhone apsd(PersistentConnection)[81] <Notice>: 2017-05-05 15:50:26 +0800 apsd[81]: <APSCourier: 0x129e024f0&
I did some research, and I was able to get some cookies from the grabbing it from NSHTTPURLResponse object. this, however, does not contain all the cookies used by WKWebView.- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler{ NSHTTPURLResponse *response = (NSHTTPURLResponse *)navigationResponse.response; NSArray *cookies =[NSHTTPCookie cookiesWithResponseHeaderFields:[response allHeaderFields] forURL:response.URL]; for (NSHTTPCookie *cookie in cookies) { [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie:cookie]; } decisionHandler(WKNavigationResponsePolicyAllow);}I tried get cookies with WKUserScript like :http://stackoverflow.com/questions/26573137/can-i-set-the-cookies-to-be-used-by-a-wkwebviewbut not get all cookies, please support for me.Thanks,
How to get all cookies from WKWebViewThere isn’t a solution that works in all cases, alas. All the approaches I know of have issues:NSHTTPCookieStorage isn’t reliable because WKWebView does all of its networking in a separate process, so you can’t get at the NSHTTPCookieStorage object being used by the web view.JavaScript (like the WKUserScript example you referenced) doesn’t see any cookies tagged with HttpOnly.WKWebsiteDataStore lets you know of the existence of the cookie but doesn’t let you get the contents.The delegate approach you showed (which I’d not seen before, so brav{o,a} for your creativity!) won’t see all the cookies because not all responses are navigation responses.Under normal circumstances I’d recommend that you file an enhancement request requesting a better approach for this, but in this case I happen to know that WebKit Engineering is well aware of this issue (r. 31024691).Right now the only approach that works in all cases is to use UIWebView, which is
Topic:
Programming Languages
SubTopic:
General
Tags:
I am trying to release a build for test flight and have sent mails top apple for assistance, this is the communication I have had with them so far. The information they are giving me is not helping.I have uploaded a build that is marked as ready for release, but when I try and access the build for Test Flight I can see the build number but no file information is shown:Here is the communication I have had with apple so far, all of what they have suggested I have done and nothing is working so far:HiWhat do you mean by re-sign? Do I need to create a new IOS Certificate and an App ID and a Distribution provisioning profile?I followed the same process with another app of mine and I can see the builds in TestFlight, so it’s not a browser issue as you can see from the screen shots:But for this app I see the build 0.1.5 but no information underneath about the build as you can see from the below screen shot:Kind regards,Marc Rausch0842090330From:devitc@apple.com [mailto:devitc@apple.com] Sent: Thursday, 11 May 2017 1
Suppose I make some HTTP/s requests during the Evaluate or Authenticate phase of the Hotspot helper.I need to know if cookies are cached somewhere, and if the cookies are available to Safari for reuse.I am pretty sure 3rd party browsers will have zero access to these cookies set with the HotSpot Helper, but I need to confirm this as well.
I found the below description in https://developer.apple.com/reference/foundation/nsmutableurlrequest/1415485-httpshouldhandlecookies ... If your app sets the Cookie header on an NSMutableURLRequest object, then this method has no effect, and the cookie data you set in the header overrides all cookies from the cookie store.I understood that the behavior I wrote in this topic is correct.I'll look for an another way to manage both App-set Cookie and Server-set Cookie.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags:
//Global variables // //Note: using anything else than non-persistent will not work //////////////////////////////////////////////////////////////////////////////// let websiteDataStoreA = WKWebsiteDataStore.nonPersistent() let websiteDataStoreB = WKWebsiteDataStore.nonPersistent() let processPoolA = WKProcessPool() //May not be needed let processPoolB = WKProcessPool() //May not be needed let useWebsiteDataStoreA = true //Extend WKWebView : Maybe there is another way, but I have read that // websiteDataStore must be selected in the init() and // not after. //////////////////////////////////////////////////////////////////////////////// class myWeb: WKWebview { init() { let configuration = WKWebViewConfiguration() //Choose your cookie jar (and many other things) //////////////////////////////////////////////// if useWebsiteDataStoreA { configuration.websiteDataStore = websiteDataStoreA configuration.processPool = processPoolA //May not be needed } else { configuration.websiteDataStore = websiteDataSt
Topic:
Safari & Web
SubTopic:
General
Tags:
Observed Results: Safari Preferences - selecting Privacy - Cookies and Website data defaults as unchecked. Upon checking this option I COULD NOT logon to any secure Apple site. Developer, AppleID When turned off everything works normal.If you get on (when the box is /NOT checked) and then CHECKED the option while logged on to these sites selecting LOG OFF will NOT WORK any you stay at the same please as you were when you tried to log in.Then again unchecking the box allows for normal operations.Reported to AppleMANAGE WEBSITE DATA ,selecting ALL to erase does nothing.Reported to Apple
I could'n get the cookie which was created in Safari earlier from a SFSafariViewController in my app.Has anything changed about the feature of cookie sharing?
Dear Apple,The requirement of my application is that can delete cache/cookies in WKWebview. I tried somthing and it working as well in iOS 9 upwards. But there are no way to do it in iOS 8. Please let me know if there is a way to remove cache/cookies in iOS 8 or it can not remove?#Note: I want to remove cookies immediately, ie stay at WKWebview but click url to another site it will delete.Thanks,Phong Tran.
If you've already tried all the usual stuff (clear cookies/cache, restart Safari, restart computer, try on another computer, etc.), you might try contacting Apple directly: https://developer.apple.com/contact/
Topic:
Safari & Web
SubTopic:
General
Tags:
In our app we have one jsp page which we are loading in uiwebview.in jsp page after selecting some files ,clicking on save button application crashes using exc_bad_access.When i tried to debug the issue with zoombieenabled, i got this-[CALayerArray countByEnumeratingWithState:objects:count:]: message sent to deallocated instance 0x17564d9b0.below is the code which i am using,#import FormCreateViewController.h#import DCWiseURLManager.h#import AsiteUserDataManager.h#import NetworkAvailibilityManager.h#import EventConstants.hextern AsiteUserDataManager* gpUserDataManager;const int FCV_Offset = 15;@interface FormCreateViewController ()@property BOOL isLoaded;@property (retain) UIWebView *detailWebview;@property (retain) UIActivityIndicatorView *activityIndicatorView;@end@implementation FormCreateViewController@synthesize isLoaded;@synthesize createFormURL;@synthesize detailWebview;@synthesize titleLable;@synthesize activityIndicatorView;@synthesize detailDelegate;@synthesize pstrProjectId;@synthesize pstrFormType
Either I’ve completely misread this thread or you folks are working way too hard (-: My reading of this thread is that you’re trying to associate a Swift object with a C object via that C object’s ‘info’ pointer (info, cookie, refCon, whatever). If so, the correct approach is to use Unmanaged and OpaquePointer: You use Unmanaged.passRetained(_:) to get a retained Unmanaged reference to your Swift Object You convert that to OpaquePointer using toOpaque(), which you can then pass to the ‘info’ pointer of the C API You use Unmanaged.fromOpaque(_:) to get back to your Unmanaged reference from that ‘info’ pointer You use either takeRetainedValue() or takeUnretainedValue() to get back to the original Swift object, depending on whether you want to release your unmanaged reference or not If you use takeUnretainedValue(), you can later call release() to clean up You can see an end-to-end example of this technique in this thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let m
Topic:
Programming Languages
SubTopic:
Swift
Tags: