-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callbacks don't seem to work on iOS 10 beta 7 #36
Comments
After my vacation, I will look into the matter. But be reassured that Android and iOS support is a priority for us. So, we will definitely plan on adding iOS 10 support. I will leave this issue open until the support is added. |
@GillesC Confirming this. It seems like the plugin does not initialize on iOS10 Beta 8. This plugin is likely to increase in popularity on iOS10, as tests so far reveal that LocalStorage in a WkWebview no longer persists between app launches. Also, this plugin fails to compile on Cordova iOS < 4.0.0 due to int conversion. |
Thanks for the conformation. For compiling with Cordova ios < 4 see issue #29. |
@GillesC Cheers, thanks for the tip – I was about to do that same Int conversion myself. Not to pressure you, but do you have any idea when you'll start looking at iOS 10 support? I'm currently torn between waiting on you to fix this (which is preferable), or going for an alternative option such as webSQL (which is rather overkill for our needs) to make sure we can support iOS10 when it launches. |
I'm currently on a holiday. But tomorrow I can take a look why the plugin isn't working in iOS 10. So by the end of this week the plugin should certainly work. When is iOS 10 be going officially released? |
@GillesC Thanks a lot! I'll wait for you then 👍 The new iPhones will be announced on the 7th, and looking at how Apple handled this before, iOS10 GM is likely to be released for developers right before that date, with a public launch some time within a week after the 7th. |
In iOS the console plugin is needed to use the console (https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-console/). Could you include this plugin in your project and put the output here? |
@GillesC Not quite sure I am following. The iOS console is working without the plugin. Also, this doesn't work either, so this doesn't seem like an issue with the console:
|
I thought maybe the "no output" was because the console plugin wasn't installed, and therefore no output was printed. |
@GillesC Ok, glad we sorted that out 👍 Let me know if you need any other information! |
@kristfal before I dive in this mess, would you please try the solution presented in this thread? If it works I don't need to go to the hashle of installing iOS 10 etc. :) |
@GillesC That actually fixed it! |
Haha that's just great!! :D Closing the issue now and adding this issue and solution to the "Problems" section. |
@GillesC Confirming that it is working as expected on iOS10. I must say, this plugin is now a godsend because iOS10 wipes LocalStorage on app exit. Thanks a lot for making it 👍 |
I think all tests are passing on the simulator beta. |
@kristfal wud it be possible for you to list what exactly you did so, I cud include it in the faq for others? |
In your
An example of a 'liberal' CSP which should enable pretty much all content (not really recommended) is:
Remove what you don't need, and specify |
Will this work for Ionic 2? Adding this to index.html does not fix the issue. |
I'm still facing the issue for ionic v1, any one got idea what to do? |
First I wanted to thank you for the awesome plugin 😄
On iOS 10 (beta 7) the global NativeStorage Object is accessible, along with all documented methods. Unfortunately none of the callbacks get executed.
This example code works in iOS 9 but gives no output whatsoever (web Inspector, xcode console) in iOS 10:
NativeStorage.setItem('sample', 'abc', function () {console.log(arguments)}, function () {console.log(arguments)})
I know it's still beta but do you plan on adding iOS 10 support?
The text was updated successfully, but these errors were encountered: