I added some advertise sections on react webpage.
Of course it works well on Chrome browser.
But it didn't work on safari (Macbook + iPhone).
I noticed that 3rd party cookies were blocked by default on Mac.
I want to write script to ask users to allow 3rd party cookies on browser or system.
How can I do it?
FYI, I used react-cookie-consent, but it didn't work.
Thanks in advance.
Safari does not allow third-party cookies at all.
https://javascript.info/cookie#appendix-third-party-cookies
Related
Trying to update my old-styled Safari extension with background HTML page according to native app extension. The extension should perform HTTP requests in a background mode, and the earlier version used the same cookies that Safari did. But after migrating to native code, NSURLSessionDataTask can't access cookies that Safari has anymore.
Can anyone suggest how can I manage this case? Unfortunately, I can't pass cookies via messages to 'native' code (they are httponly).
I am not sure whether it is an issue of FireBreath or an ActiveX specific thing or I have just forgotten something.
I want to a download a file in my plugin using a derivative of FB::DefaultBrowserStreamHandler, and FB::BrowserHost::createStream(). The file is only accessable if my http request is authenticated by a cookie.
The built FireBreath plugin is working under Chrome and FF, but not under IE. The thing is that under IE no session cookie is sent when analyzing the requests with Fiddler.
Thanks in advance.
This is a feature that isn't supported the way you need it to be in FireBreath's activex implementation of browserstreams. You'd have to go into the code and find a way to add support for setting the cookie manually, I'm afraid. The reason it works in npapi browsers is that the browser itself provides an API for making the request, which means it will provide proxy info and cookies. In IE we have to emulate that, and that emulation doesn't get the cookies.
Our iOS app displays our website in a UIWebView. The webview contains an iframe to a 3rd party site. The 3rd party site requires the ability to set a cookie to store session information. This seems to work properly in iOS 5, but not in iOS 6
Does anyone know of a workaround to or correct way to handle the setting of 3rd party cookies via a webview in iOS 6?
I had a similar problem but it turned out that it looked like the default cookieAcceptPolicy has changed. This fixed it for me:
[NSHTTPCookieStorage sharedHTTPCookieStorage].cookieAcceptPolicy = NSHTTPCookieAcceptPolicyAlways;
I have recently found those two look-alike solutions/IDE for cross-mobile development: Appcelerator and Rhomobile (I know there are more) and I have questions regarding those two platform:
1) I believe the only way to build the view is using HTML, which I like alot the ideas. But, does that mean the application itself isn't available if the mobile is offline?
2) Do you guys know if it's possible to publish the application to the App Store and Google Store?
3) Are there any simulator for different mobile and do they support all those slide/tab events?
4) And finally, are there a way to transfert the App on your mobile phone without having to publish it anywhere.
Please note that I have no knowledge at all about mobile app dev and those two solutions (Appcelerator, Rhomobile) would be perfect for me as I am familiar with Javascript and HTML.
Thank you!
Ok I have only used appcelerator but:
1) a webview is like a browser without the address bar, it simply parses HTML, where it gets it from is up to you. If you write the HTML and pass in a file well then yes it can be offline, if it is used to parse a response from a webpage well then no as it needs to send a http request to the webpage.
As many people seem to mistake (for a reason unknown to me as all the documentation states other wise), appcelerator is not the same as phonegap, appcelerator uses its own javascript based API to allow developers to make native apps, it is NOT a webview wrapper. It is offline by default and allows you to send http requests if you need something online.
2) yes you can publish to the app store and the google store from appcelerator, the documentation walks you through the process.
3) Appcelerator requires you to download either the IOS sdk or Android SDK which come with simulators, appcelerator / the emulators support the standard events found on these devices.
4) With Android to can build a .apk file and distribute however you wish, with IOS the only way is to publish to the app store. the only other way is to make a mobile website instead of an application
I have an old application that I'd like to get running again. I've updated the Facebook PHP-sdk to the latest version (I think) and everything is working for most users. Except those using secure browsing.
My app simply tell me that:
This application does not yet support secure browsing (HTTPS).
How do I fix this? I've looked though all the settings in the app-page and I can't figure it out.
You need to purchase and setup an SSL certificate and then plug your https url into your app's settings page. See their migration guide where it says this is now required.